Allows for TTL function (#36235)

This commit is contained in:
Marois
2019-06-27 14:21:50 -04:00
committed by Benjamin Lichtman
parent 468ea3b927
commit 04b665f71a

View File

@@ -4,7 +4,11 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
export interface CachingConfig {
ttl: number;
ttl: number | TtlFunction;
}
export interface TtlFunction {
(result: any): number;
}
export interface StoreConfig extends CachingConfig {