Skip to content

Commit 36a1fe4

Browse files
committed
Fixing code example
1 parent 2bfeaf2 commit 36a1fe4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const cacheManager = require('cache-manager')
4646
const memStoreCache = cacheManager.caching({
4747
store: sqliteStore,
4848
options: {
49-
serializer: 'cbor', // default is 'json'
49+
serializer: 'json', // default is 'cbor'
5050
ttl: 20 // TTL in seconds
5151
}
5252
})
@@ -55,10 +55,7 @@ const memStoreCache = cacheManager.caching({
5555
const cache = cacheManager.caching({
5656
store: sqliteStore,
5757
name: 'employees',
58-
path: '/tmp/cache.db',
59-
options: {
60-
serializer: 'cbor'
61-
}
58+
path: '/tmp/cache.db'
6259
})
6360

6461

0 commit comments

Comments
 (0)