File size: 251 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// @flow
import TagCache from 'redis-tag-cache';

const DEFAULT_REDIS_OPTIONS = {
  keyPrefix: 'query-cache',
};

const queryCache = new TagCache({
  defaultTimeout: 86400,
  redis: {
    ...DEFAULT_REDIS_OPTIONS,
  },
});

export default queryCache;