@linkedmink/multilevel-aging-cache
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

Multilevel Aging Cache

Build State npm version

This library aims to provide an interface for storing and retrieving data from a hierarchy of commonly used persistence mechanisms. In a storage hierarchy, different storage systems are faster than others. Specify a hierarchy and allow the system to manage reading/writing to each layer.

Feature Summary (Some Planned)

  • A cache designed for distributed systems
    • Support for multiple levels (Memory -> Distribuited Cache -> Persistence Layer)
    • Publish writes to other nodes
  • Plugin storage providers
    • Memory (Built-in)
    • ioredis
    • mongodb
    • mongoose
  • Varied replacement algorithms
    • None (Distributed synchronization only)
    • FIFO
    • LRU
  • Persistence control
    • Cache only with no persistence
    • Require top level persistence on write
  • Consistency control
    • No writes to newer values
    • Overwrite as needed

Usage

See the demo program for an example of how to use the library.

TODO add more detail

Documentation

Package Sidebar

Install

npm i @linkedmink/multilevel-aging-cache

Weekly Downloads

0

Version

0.6.0

License

MIT

Unpacked Size

844 kB

Total Files

248

Last publish

Collaborators

  • linkedmink