You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

@deboxsoft/module-core

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deboxsoft/module-core - npm Package Compare versions

Comparing version

to
2.4.6

{
"name": "@deboxsoft/module-core",
"version": "2.4.5",
"version": "2.4.6",
"license": "SEE LICENSE IN LICENSE",

@@ -5,0 +5,0 @@ "maintainers": [

@@ -55,18 +55,3 @@ export interface CachingConfig {

}
export interface MultiCache {
set<T>(key: string, value: T, options?: CachingConfig): Promise<T>;
set<T>(key: string, value: T, ttl: number): Promise<T>;
set<T>(key: string, value: T, options: CachingConfig, callback: (error: any) => void): void;
set<T>(key: string, value: T, ttl: number, callback: (error: any) => void): void;
mset<T>(...args: any[]): Promise<T>;
wrap<T>(...args: WrapArgsType<T>[]): Promise<T>;
get<T>(key: string, callback: (error: any, result: T | undefined) => void): void;
get<T>(key: string): Promise<T | undefined>;
mget<T>(...keys: (string | ((error: any, result: T | undefined) => void))[]): void;
mget<T>(...keys: string[]): Promise<T | undefined>;
del(key: string, callback: (error: any) => void): void;
del(key: string): Promise<any>;
reset(cb: () => void): void;
}
export declare type Caching = (IConfig: StoreConfig & CacheOptions) => Cache;
export declare type MultiCaching = (Caches: Cache[], options?: CacheOptions) => MultiCache;
export declare type MultiCaching = (Caches: Cache[], options?: CacheOptions) => Cache;