jscpd
Version:
Copy/paste detector for programming code, support JavaScript, CoffeeScript, PHP, Ruby, Python, Less, Go, Java, Yaml, C#, C++, C, Puppet, Twig languages
24 lines (23 loc) • 730 B
TypeScript
import { IStoreValue } from '../interfaces/store/store-value.interface';
import { IStore } from '../interfaces/store/store.interface';
export declare class MemoryStore<TValue extends IStoreValue> implements IStore<TValue> {
protected values: {
[key: string]: TValue;
};
get(key: string): TValue;
getAll(): {
[key: string]: TValue;
};
getAllByKeys(keys: string[]): TValue[];
set(key: string, value: TValue): void;
init(values: {
[p: string]: TValue;
}): void;
has(key: string): boolean;
hasKeys(keys: string[]): boolean[];
count(): number;
connect(): void;
delete(key: string): void;
update(key: string, value: TValue): void;
close(): void;
}