[Pkg-javascript-devel] Bug#1138078: ITP: node-pixl-cache -- simple but fast LRU cache module for Node.js

joe at nahmias.net joe at nahmias.net
Thu May 28 04:31:01 BST 2026


Package: wnpp
Severity: wishlist
Owner: Joseph Nahmias <jello at debian.org>
Control: block 1137734 by -1
X-Debbugs-CC: Joseph Huckaby <jhuckaby at gmail.com>, Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>, debian-devel at lists.debian.org

* Package name    : node-pixl-cache
  Version         : 1.1.1
  Upstream Author : Joseph Huckaby <jhuckaby at gmail.com>
* URL             : https://github.com/jhuckaby/pixl-cache
* License         : Expat
  Programming Lang: JavaScript
  Description     : simple but fast LRU cache module for Node.js

 pixl-cache is a very simple LRU (Least Recently Used) cache module for
 Node.js. It works like a hash map with set() and get() methods, but when
 it detects an overflow (configurable by total keys or total bytes) it
 automatically expunges the least recently accessed objects from the
 cache. It is fast, stable, and has no dependencies.
 .
 Internally the cache is implemented as a combination of a hash map and a
 double-linked list. When items are accessed (added, replaced or fetched)
 they are promoted to the front of the linked list. When the max size
 (keys or bytes) is exceeded, items are dropped from the back of the list.
 Items can also have an optional max age (i.e. expiration date).
 .
 Features:
 .
  - Simple and straightforward API
  - Fast and stable
  - Low memory overhead
  - Predictable results on overflow
  - Can expire based on key count or byte count
  - Optional expiration date for items
  - Event listener for ejecting expired items
  - Can store custom metadata along with cache objects
  - No dependencies
 .
 Node.js is an event-based server-side JavaScript engine.

dep for cronicle
i plan to maintain this under the js-team



More information about the Pkg-javascript-devel mailing list