import { IEntityCacheAdapterProvider , EntityConfiguration , EntityCacheAdapter } from '@expo/entity' ; import RedisCacheAdapter , { RedisCacheAdapterContext } from './RedisCacheAdapter' ; export default class RedisCacheAdapterProvider implements IEntityCacheAdapterProvider { constructor ( private readonly context ) { } getCacheAdapter < TFields > ( entityConfiguration ) { return new RedisCacheAdapter ( entityConfiguration , this . context ) ; } }