0.1.0 • Published 7 months ago

effective-cache v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Cache

Key Benefits:

How to Install

npm install --save effective-cache

How to Use

s3-fifo cache example

Based on this paper

import { S3FifoCache } from 'effective-cache';

const cache = new S3FifoCache(100);
cache.set("key", "value");
cache.set("key2", "value");
cache.get("key") // -> "value"

cache.has("key") // -> true

cache.delete("key");
cache.get("key") // -> undefined

cache.clear();

Features

TODO

0.1.0

7 months ago