UNPKG

@creditkarma/memcached

Version:

A fully featured Memcached API client, supporting both single and clustered Memcached servers through consistent hashing and failover/failure. Memcached is rewrite of nMemcached, which will be deprecated in the near future.

14 lines (13 loc) 805 B
import { IMemcachedCommand } from './commands'; import { IMemcachedConfig } from './types'; export declare function validateArg(args: IMemcachedCommand, config: IMemcachedConfig): boolean; export declare type EventHandler = (evt: any) => void; export interface IEventHandlerMap { [name: string]: EventHandler; } export declare function fuse(target: any, handlers: IEventHandlerMap): void; export declare function merge<A extends object, B extends object>(obj1: A, obj2: B): A & B; export declare function merge<A extends object, B extends object, C extends object>(obj1: A, obj2: B, obj3: C): A & B & C; export declare function escapeValue(value: string): string; export declare function unescapeValue(value: string): string; export declare function resultSetIsEmpty(resultSet?: Array<any>): boolean;