@type-cacheable/core v14.1.0
@type-cacheable/core
TypeScript-based caching decorators to assist with caching (and clearing cache for) async methods. Currently supports Redis (redis, ioredis), lru-cache, and node-cache. If you would like to see more adapters added, please open an issue or, better yet, a pull request with an implementation.
To learn how to set up an adapter for your cache of choice, view the full documentation.
Usage
Installation
npm install --save @type-cacheable/coreor
yarn add @type-cacheable/coreAdapter setup
You will need to set up the appropriate adapter for your cache of choice.
Redis:
redis-@type-cacheable/redis-adapter- https://github.com/joshuaslate/type-cacheable/tree/main/packages/redis-adapterioredis-@type-cacheable/ioredis-adapter- https://github.com/joshuaslate/type-cacheable/tree/main/packages/ioredis-adapter
LRU-Cache
lru-cache-@type-cacheable/lru-cache-adapter- https://github.com/joshuaslate/type-cacheable/tree/main/packages/lru-cache-adapter
Node-Cache:
node-cache-@type-cacheable/node-cache-adapterhttps://github.com/joshuaslate/type-cacheable/tree/main/packages/node-cache-adapter
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago