UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

22 lines (17 loc) 764 B
// Type definitions for memory-cache // Project: http://github.com/ptarjan/node-cache // Definitions by: Jeff Goddard <https://github.com/jedigo> // Definitions: https://github.com/DefinitelyTyped/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; }