Releases: Tirke/node-cache-manager-stores
Releases · Tirke/node-cache-manager-stores
@tirke/node-cache-manager-ioredis@3.3.0
Minor Changes
- Generate provenance status (
d3686c0
)
@tirke/node-cache-manager-mongodb@1.1.0
Minor Changes
- Publish mongodb package with ESM and CJS files (
5a6ff50
)
@tirke/node-cache-manager-ioredis@3.2.0
Minor Changes
- Fix published package of ioredis (
802b538
)
@tirke/node-cache-manager-ioredis@3.1.0
Minor Changes
- IoRedis package is now bundled with ESM and CJS compatibility (#145)
@tirke/node-cache-manager-mongodb@1.0.1
@tirke/node-cache-manager-mongodb@1.0.0
@tirke/node-cache-manager-ioredis@3.0.1
@tirke/node-cache-manager-ioredis@3.0.0
Major Changes
-
40f233d
Thanks @Tirke! - node-cache-manager-ioredis is now compatible with new cache-manager@5 major versionThe new major version of
cache-manager
introduced breaking changes around the API to create a cache manager instance.
I also had to rewrite most code becausecache-manager
is now based on promises everywhere so I could ditch the callbacks.
Examples in the README have been updated to reflect the changes.For a before / after example:
// Before import { IoRedisStore } from '@tirke/node-cache-manager-ioredis' import { caching } from 'cache-manager' const redisCache = caching({ store: IoRedisStore, host: 'localhost', // default value port: 6379, // default value password: 'XXXXX', ttl: 600, })
// After import { ioRedisStore, RedisCache } from '@tirke/node-cache-manager-ioredis' import { caching } from 'cache-manager' const redisCache: RedisCache = caching(ioRedisStore, { host: 'localhost', // default value port: 6379, // default value password: 'XXXXX', ttl: 600, })