UNPKG

jscpd

Version:

Copy/paste detector for programming code, support JavaScript, CoffeeScript, PHP, Ruby, Python, Less, Go, Java, Yaml, C#, C++, C, Puppet, Twig languages

20 lines (19 loc) 555 B
import { IStoreValue } from './store-value.interface'; export interface IStore<TValue extends IStoreValue> { connect(): void; init(values: { [key: string]: TValue; }): void; get(key: string): TValue; set(key: string, value: TValue): void; update(key: string, value: TValue): void; delete(key: string): void; has(key: string): boolean; count(): number; hasKeys(keys: string[]): boolean[]; getAll(): { [key: string]: TValue; }; getAllByKeys(keys: string[]): TValue[]; close(): void; }