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 = {
9
9
deserialize : parse ,
10
10
} ;
11
11
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
14
18
15
19
export const redisCache : ACDCache = createCache ( {
16
20
transformer,
Original file line number Diff line number Diff line change 1
1
import { clients , Cluster } from "." ;
2
- import { memoryOnlyCache } from "../../cache" ;
2
+ // import { memoryOnlyCache } from "../../cache";
3
3
4
- const getPythMetadata = async ( cluster : Cluster ) => {
4
+ export const getPythMetadata = async ( cluster : Cluster ) => {
5
5
return clients [ cluster ] . getData ( ) ;
6
6
} ;
7
7
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