forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory-cache.d.ts
More file actions
21 lines (17 loc) · 760 Bytes
/
memory-cache.d.ts
File metadata and controls
21 lines (17 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Type definitions for memory-cache
// Project: http://github.com/ptarjan/node-cache
// Definitions by: Jeff Goddard <https://github.com/jedigo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/memory-cache.d.ts
declare module "memory-cache" {
export function put(key: any, value: any, time?: number, timeoutCallback?: (key: any) => void): void;
export function get(key: any): any;
export function del(key: any): void;
export function clear(): void;
export function size(): number;
export function memsize(): number;
export function debug(bool: boolean): void;
export function hits(): number;
export function misses(): number;
export function keys() : any;
}