Feature/add error handling for redis connections (#2179)
* Add error handling * Update changelogpull/2183/head
parent
5fe07cb85f
commit
d9ced885e1
@ -0,0 +1,7 @@
|
||||
import { Cache } from 'cache-manager';
|
||||
|
||||
import type { RedisStore } from './redis-store.interface';
|
||||
|
||||
export interface RedisCache extends Cache {
|
||||
store: RedisStore;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
import { Store } from 'cache-manager';
|
||||
import Redis from 'redis';
|
||||
|
||||
export interface RedisStore extends Store {
|
||||
getClient: () => Redis.RedisClient;
|
||||
isCacheableValue: (value: any) => boolean;
|
||||
name: 'redis';
|
||||
}
|
Loading…
Reference in new issue