memcached-node
Version:
Node.js client for memcached
18 lines (17 loc) • 503 B
TypeScript
import * as Hashring from "hashring";
export interface ServerOptions {
basicAuth: BasicAuth;
}
export interface BasicAuth {
username: string;
password: string;
}
export declare class Server {
url: string;
host: string;
port: number;
private _options;
constructor(url: string, options?: Partial<ServerOptions>);
}
export declare type ServerConfigs = Record<string, number | ServerConfig>;
export declare type ServerConfig = Partial<Hashring.ServerConfig & ServerOptions>;