Skip to content

Commit

Permalink
fix: lru-cache breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zzau13 committed Feb 23, 2023
1 parent 2eae5ce commit 8398494
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -42,7 +42,7 @@
"license": "MIT",
"dependencies": {
"lodash.clonedeep": "^4.5.0",
"lru-cache": "^7.14.0"
"lru-cache": "^7.17.0"
},
"devDependencies": {
"@commitlint/cli": "17.4.4",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/stores/memory.ts
Expand Up @@ -45,7 +45,7 @@ export function memoryStore(args?: MemoryConfig): MemoryStore {
async del(key) {
lruCache.delete(key);
},
get: async <T>(key: string) => lruCache.get<T>(key),
get: async <T>(key: string) => lruCache.get(key) as T,
keys: async () => [...lruCache.keys()],
mget: async (...args) => args.map((x) => lruCache.get(x)),
async mset(args, ttl?) {
Expand Down

0 comments on commit 8398494

Please sign in to comment.