I only really needed ExpeditiousEngine, here are typings:
declare module 'expeditious' {
export abstract class ExpeditiousEngine {
public getNamespaceFromKey(key: string): string;
public getKeyWithoutNamespace(key: string): string;
public set(key: string, val: string, expire: number, callback: Function): void;
public get(key: string, callback: Function): void;
public del(key: string, callback: Function): void;
public ttl(key: string, callback: Function): void
public flush(ns: string, callback: Function): void;
}
}
Also you might want to look into starting to use classes.
I only really needed
ExpeditiousEngine, here are typings:Also you might want to look into starting to use classes.