refactor: lru-cache maxAge to ttl (#8039)
This commit is contained in:
@@ -19,7 +19,7 @@ class SessionTokenCache {
|
||||
constructor(timeout: number = 30 * 24 * 60 * 60 * 1000, maxSize: number = 10000) {
|
||||
this.cache = new LRU({
|
||||
max: maxSize,
|
||||
maxAge: timeout,
|
||||
ttl: timeout,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user