Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / dist / cache / index.d.ts
Size: Mime:
import { RedisCache } from 'apollo-server-cache-redis';
import { KeyValueCacheType } from './typings';
export declare type RedisCacheType = RedisCache & {
    rehydrate(): void;
};
/**
 * @todo can rehydrate, integrate with sponge...
 */
export interface CacheConfigMap extends Map<string, any> {
    get(key: 'cache'): KeyValueCacheType;
    set(key: 'cache', value: KeyValueCacheType): this;
}
export declare const config: CacheConfigMap;
/**
 * @todo cleanup typings & conditional
 */
export declare function toCache(): KeyValueCacheType | RedisCacheType;