| 1 |
Source: node-pixl-cache |
| 2 |
Section: javascript |
| 3 |
Maintainer: Debian Javascript Maintainers <[email protected]> |
| 4 |
Uploaders: |
| 5 |
Joseph Nahmias <[email protected]>, |
| 6 |
Testsuite: autopkgtest-pkg-nodejs |
| 7 |
Build-Depends: |
| 8 |
debhelper-compat (= 13), |
| 9 |
dh-nodejs, |
| 10 |
dh-sequence-nodejs, |
| 11 |
node-pixl-unit <!nocheck>, |
| 12 |
Standards-Version: 4.7.4 |
| 13 |
Homepage: https://github.com/jhuckaby/pixl-cache |
| 14 |
Vcs-Git: https://salsa.debian.org/js-team/node-pixl-cache.git |
| 15 |
Vcs-Browser: https://salsa.debian.org/js-team/node-pixl-cache |
| 16 |
|
| 17 |
Package: node-pixl-cache |
| 18 |
Architecture: all |
| 19 |
Multi-Arch: foreign |
| 20 |
Depends: |
| 21 |
${misc:Depends}, |
| 22 |
Description: simple but fast LRU cache module for Node.js |
| 23 |
pixl-cache is a very simple LRU (Least Recently Used) cache module for |
| 24 |
Node.js. It works like a hash map with set() and get() methods, but when |
| 25 |
it detects an overflow (configurable by total keys or total bytes) it |
| 26 |
automatically expunges the least recently accessed objects from the |
| 27 |
cache. It is fast, stable, and has no dependencies. |
| 28 |
. |
| 29 |
Internally the cache is implemented as a combination of a hash map and a |
| 30 |
double-linked list. When items are accessed (added, replaced or fetched) |
| 31 |
they are promoted to the front of the linked list. When the max size |
| 32 |
(keys or bytes) is exceeded, items are dropped from the back of the list. |
| 33 |
Items can also have an optional max age (i.e. expiration date). |
| 34 |
. |
| 35 |
Features: |
| 36 |
. |
| 37 |
- Simple and straightforward API |
| 38 |
- Fast and stable |
| 39 |
- Low memory overhead |
| 40 |
- Predictable results on overflow |
| 41 |
- Can expire based on key count or byte count |
| 42 |
- Optional expiration date for items |
| 43 |
- Event listener for ejecting expired items |
| 44 |
- Can store custom metadata along with cache objects |
| 45 |
- No dependencies |
| 46 |
. |
| 47 |
Node.js is an event-based server-side JavaScript engine. |