Releases: Tirke/node-cache-manager-stores
Releases · Tirke/node-cache-manager-stores
@tirke/[email protected]
Minor Changes
- Generate provenance status (
d3686c0
)
@tirke/[email protected]
Minor Changes
- Publish mongodb package with ESM and CJS files (
5a6ff50
)
@tirke/[email protected]
Minor Changes
- Fix published package of ioredis (
802b538
)
@tirke/[email protected]
Minor Changes
- IoRedis package is now bundled with ESM and CJS compatibility (#145)
@tirke/[email protected]
@tirke/[email protected]
@tirke/[email protected]
@tirke/[email protected]
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, })