Skip to content

Commit 958d33a

Browse files
committed
Doc
1 parent 7bd8e6d commit 958d33a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ import cache from 'ts-cache-mongoose'
8484
const instance = cache.init(mongoose, {
8585
defaultTTL: '60 seconds',
8686
engine: 'memory',
87+
debug: true, // Debug mode enables hit/miss logs in console, not for production use
8788
})
8889

8990
// OR
@@ -96,6 +97,7 @@ const instance = cache.init(mongoose, {
9697
host: 'localhost',
9798
port: 6379,
9899
},
100+
debug: true, // Debug mode enables hit/miss logs in console, not for production use
99101
})
100102

101103
// Connect to your database

0 commit comments

Comments
 (0)