We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bfeaf2 commit 36a1fe4Copy full SHA for 36a1fe4
README.md
@@ -46,7 +46,7 @@ const cacheManager = require('cache-manager')
46
const memStoreCache = cacheManager.caching({
47
store: sqliteStore,
48
options: {
49
- serializer: 'cbor', // default is 'json'
+ serializer: 'json', // default is 'cbor'
50
ttl: 20 // TTL in seconds
51
}
52
})
@@ -55,10 +55,7 @@ const memStoreCache = cacheManager.caching({
55
const cache = cacheManager.caching({
56
57
name: 'employees',
58
- path: '/tmp/cache.db',
59
- options: {
60
- serializer: 'cbor'
61
- }
+ path: '/tmp/cache.db'
62
63
64
0 commit comments