11.7.2 • Published 11 months ago

lite-ts-cache v11.7.2

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
11 months ago

Version

代码

CacheBase - 缓存

const cache: CacheBase;

// 清理
await cache.flush('键');

// 获取
const res = await cache.get('键', async () => {
    // 加载数据
    return [];
});
// res = []

const res = await cache.getModifyOn('键');
// res = 缓存修改时间
  • MemoryCache - 内存缓存
const nowTime: NowTimeBase;
// 检测缓存是否变更的间隔区间, 默认: [5, 60]
const checkIntervalRange: [number, number];
const cache = new MemoryCache(nowTime, checkIntervalRange);
11.6.2

1 year ago

11.7.2

11 months ago

11.6.0

1 year ago

11.6.1

1 year ago

11.5.0

2 years ago

3.5.0

2 years ago

3.4.0

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago