@hokify/node-ts-cache-lru-storage
v2.0.1
Published
Simple and extensible caching module supporting decorators
Downloads
547
Maintainers
Readme
@hokify/node-ts-cache-lru-storage
LRU Storage module for node-ts-cache
wrapper for lru-cache
import { Cache, ExpirationStrategy } from "@hokify/node-ts-cache";
import LRUStorage from 'node-ts-cache-lru-storage';
const myStrategy = new ExpirationStrategy(new LRUStorage());
all timeout values are in SECONDS