🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@types/memory-cache

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/memory-cache - npm Package Compare versions

Comparing version
0.0.31
to
0.2.0
+29
-12
memory-cache/index.d.ts

@@ -1,20 +0,37 @@

// Type definitions for memory-cache
// Type definitions for memory-cache 0.2
// Project: https://github.com/ptarjan/node-cache
// Definitions by: Jeff Goddard <https://github.com/jedigo>
// Travis Thieman <https://github.com/thieman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/memory-cache.d.ts
// Originally imported from: https://github.com/soywiz/typescript-node-definitions/memory-cache.d.ts
export class CacheClass<K, V> {
put(key: K, value: V, time?: number, timeoutCallback?: (key: K, value: V) => void): V;
get(key: K): V;
del(key: K): void;
clear(): void;
export declare function put(key: any, value: any, time?: number, timeoutCallback?: (key: any, value: any) => void): void;
export declare function get(key: any): any;
export declare function del(key: any): void;
export declare function clear(): void;
size(): number;
memsize(): number;
export declare function size(): number;
export declare function memsize(): number;
debug(bool: boolean): void;
hits(): number;
misses(): number;
keys(): K[];
}
export declare function debug(bool: boolean): void;
export declare function hits(): number;
export declare function misses(): number;
export declare function keys(): any;
export const Cache: typeof CacheClass;
export function put<V>(key: any, value: V, time?: number, timeoutCallback?: (key: any, value: any) => void): V;
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[];
{
"name": "@types/memory-cache",
"version": "0.0.31",
"version": "0.2.0",
"description": "TypeScript definitions for memory-cache",

@@ -9,3 +9,9 @@ "license": "MIT",

"name": "Jeff Goddard",
"url": "https://github.com/jedigo"
"url": "https://github.com/jedigo",
"githubUsername": "jedigo"
},
{
"name": "Travis Thieman",
"url": "https://github.com/thieman",
"githubUsername": "thieman"
}

@@ -20,4 +26,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "b17a26350d3b40d4b989e096f2aee75f21bf0222c054fc413e8ee47dcea2c57b",
"typesPublisherContentHash": "82b93b66b1aedf87a6cb388042739ffb1afdbe1879c75c442623fa466758c28e",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 21 Aug 2017 21:55:03 GMT
* Last updated: Tue, 17 Oct 2017 00:14:44 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Jeff Goddard <https://github.com/jedigo>.
These definitions were written by Jeff Goddard <https://github.com/jedigo>, Travis Thieman <https://github.com/thieman>.