Skip to content

Commit

Permalink
fix: sizeCalculation key,value swap (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mojtaba-NA committed May 29, 2023
1 parent 1283ff2 commit 0dde805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/memory.ts
Expand Up @@ -17,7 +17,7 @@ type Pre = LRUCache.OptionsTTLLimit<string, any, unknown>;
type Options = Omit<Pre, 'ttlAutopurge'> & Partial<Pick<Pre, 'ttlAutopurge'>>;
export type MemoryConfig = {
max?: number;
sizeCalculation?: (key: string, value: unknown) => number;
sizeCalculation?: (value: unknown, key: string) => number;
shouldCloneBeforeSet?: boolean;
} & Options &
Config;
Expand Down

0 comments on commit 0dde805

Please sign in to comment.