Skip to content

Latest commit

 

History

History
 
 

lru

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@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