mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
							committed by
							
								
								GitHub
							
						
					
				
				 4 changed files with 30 additions and 4 deletions
			
			
		@ -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