File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,12 @@ const transformer = {
99 deserialize : parse ,
1010} ;
1111
12- export const DEFAULT_CACHE_TTL = 3600 ; // 1 hour
13- export const DEFAULT_CACHE_STALE = 86_400 ; // 24 hours
12+ // export const DEFAULT_CACHE_TTL = 3600; // 1 hour
13+ // export const DEFAULT_CACHE_STALE = 86_400; // 24 hours
14+
15+
16+ export const DEFAULT_CACHE_TTL = 60 ; // 1 minute
17+ export const DEFAULT_CACHE_STALE = 60 ; // 1 minute
1418
1519export const redisCache : ACDCache = createCache ( {
1620 transformer,
Original file line number Diff line number Diff line change 11import { clients , Cluster } from "." ;
2- import { memoryOnlyCache } from "../../cache" ;
2+ // import { memoryOnlyCache } from "../../cache";
33
4- const getPythMetadata = async ( cluster : Cluster ) => {
4+ export const getPythMetadata = async ( cluster : Cluster ) => {
55 return clients [ cluster ] . getData ( ) ;
66} ;
77
8- export const getPythMetadataCached = memoryOnlyCache . define (
9- "getPythMetadata" ,
10- getPythMetadata ,
11- ) . getPythMetadata ;
8+ // export const getPythMetadataCached = memoryOnlyCache.define(
9+ // "getPythMetadata",
10+ // getPythMetadata,
11+ // ).getPythMetadata;
You can’t perform that action at this time.
0 commit comments