Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Oct 7, 2022
1 parent 4f65285 commit 4249108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/redis/RedisCache.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Cache, CacheConfiguration, Loader } from '../DataSources'
import type Redis from 'ioredis'
import type { Redis } from 'ioredis'

export interface RedisCacheConfiguration extends CacheConfiguration {
json: boolean
Expand All @@ -11,12 +11,12 @@ const DefaultConfiguration: RedisCacheConfiguration = {
}

export class RedisCache<T> implements Cache<T>, Loader<T> {
private readonly redis: Redis.Redis
private readonly redis: Redis
private readonly config: RedisCacheConfiguration
name = 'Redis cache'
isCache = true

constructor(redis: Redis.Redis, config: RedisCacheConfiguration = DefaultConfiguration) {
constructor(redis: Redis, config: RedisCacheConfiguration = DefaultConfiguration) {
this.redis = redis
this.config = config
}
Expand Down

0 comments on commit 4249108

Please sign in to comment.