Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/graphql   js

Repository URL to install this package:

Version: 9.0.35-framework 

/ dist / cache / index.d.ts

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;