Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 365 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 365 Bytes

@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