File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Cache , CacheConfiguration , Loader } from '../DataSources'
2
- import type Redis from 'ioredis'
2
+ import type { Redis } from 'ioredis'
3
3
4
4
export interface RedisCacheConfiguration extends CacheConfiguration {
5
5
json : boolean
@@ -11,12 +11,12 @@ const DefaultConfiguration: RedisCacheConfiguration = {
11
11
}
12
12
13
13
export class RedisCache < T > implements Cache < T > , Loader < T > {
14
- private readonly redis : Redis . Redis
14
+ private readonly redis : Redis
15
15
private readonly config : RedisCacheConfiguration
16
16
name = 'Redis cache'
17
17
isCache = true
18
18
19
- constructor ( redis : Redis . Redis , config : RedisCacheConfiguration = DefaultConfiguration ) {
19
+ constructor ( redis : Redis , config : RedisCacheConfiguration = DefaultConfiguration ) {
20
20
this . redis = redis
21
21
this . config = config
22
22
}
You can’t perform that action at this time.
0 commit comments