v3.1.2
- feat: 支持单个实例缓存多种数据类型
get set mget mset getAll take 等实例方法支持泛型。
例如:
const myCache = new Cache();
myCache.get<string>(key1);
myCache.get<number>(key2);get set mget mset getAll take 等实例方法支持泛型。
例如:
const myCache = new Cache();
myCache.get<string>(key1);
myCache.get<number>(key2);