- persistentCache(options?: Partial<Opt>): {
delete: ((name: string, cb: {
(e: Error, ...args: any[]): any;
(err: ErrnoException): void;
}) => void);
deleteSync: ((name: any) => void);
get: ((name: string, cb?: ((e: Error) => any)) => any);
getSync: (<T>(name: string, fallback?: T) => T);
keys: ((cb: ((e: Error, ...args: any[]) => any)) => any);
keysSync: (() => any[]);
put: ((name: string, data: any, cb: {
(err: ErrnoException): void;
(e: Error, ...args: any[]): any;
}) => any);
putSync: ((name: string, data: any) => void);
set: ((name: string, data: any, cb: {
(err: ErrnoException): void;
(e: Error, ...args: any[]): any;
}) => any);
setSync: ((name: string, data: any) => void);
unlink: ((cb: {
(e: Error, ...args: any[]): any;
(e: Error, ...args: any[]): any;
}) => any);
valuesSync: (() => any[]);
}
-
Returns {
delete: ((name: string, cb: {
(e: Error, ...args: any[]): any;
(err: ErrnoException): void;
}) => void);
deleteSync: ((name: any) => void);
get: ((name: string, cb?: ((e: Error) => any)) => any);
getSync: (<T>(name: string, fallback?: T) => T);
keys: ((cb: ((e: Error, ...args: any[]) => any)) => any);
keysSync: (() => any[]);
put: ((name: string, data: any, cb: {
(err: ErrnoException): void;
(e: Error, ...args: any[]): any;
}) => any);
putSync: ((name: string, data: any) => void);
set: ((name: string, data: any, cb: {
(err: ErrnoException): void;
(e: Error, ...args: any[]): any;
}) => any);
setSync: ((name: string, data: any) => void);
unlink: ((cb: {
(e: Error, ...args: any[]): any;
(e: Error, ...args: any[]): any;
}) => any);
valuesSync: (() => any[]);
}
-
delete: ((name: string, cb: {
(e: Error, ...args: any[]): any;
(err: ErrnoException): void;
}) => void)
-
- (name: string, cb: {
(e: Error, ...args: any[]): any;
(err: ErrnoException): void;
}): void
-
Returns void
-
deleteSync: ((name: any) => void)
-
- (name: any): void
-
Returns void
-
get: ((name: string, cb?: ((e: Error) => any)) => any)
-
- (name: string, cb?: ((e: Error) => any)): any
-
Parameters
-
name: string
-
Optional
cb: ((e: Error) => any)
-
- (e: Error): any
-
Returns any
Returns any
-
getSync: (<T>(name: string, fallback?: T) => T)
-
- <T>(name: string, fallback?: T): T
-
Parameters
-
name: string
-
Optional
fallback: T
Returns T
-
keys: ((cb: ((e: Error, ...args: any[]) => any)) => any)
-
- (cb: ((e: Error, ...args: any[]) => any)): any
-
Parameters
-
cb: ((e: Error, ...args: any[]) => any)
-
- (e: Error, ...args: any[]): any
-
Returns any
Returns any
-
keysSync: (() => any[])
-
put: ((name: string, data: any, cb: {
(err: ErrnoException): void;
(e: Error, ...args: any[]): any;
}) => any)
-
- (name: string, data: any, cb: {
(err: ErrnoException): void;
(e: Error, ...args: any[]): any;
}): any
-
Returns any
-
putSync: ((name: string, data: any) => void)
-
- (name: string, data: any): void
-
Returns void
-
set: ((name: string, data: any, cb: {
(err: ErrnoException): void;
(e: Error, ...args: any[]): any;
}) => any)
-
- (name: string, data: any, cb: {
(err: ErrnoException): void;
(e: Error, ...args: any[]): any;
}): any
-
Returns any
-
setSync: ((name: string, data: any) => void)
-
- (name: string, data: any): void
-
Returns void
-
unlink: ((cb: {
(e: Error, ...args: any[]): any;
(e: Error, ...args: any[]): any;
}) => any)
-
- (cb: {
(e: Error, ...args: any[]): any;
(e: Error, ...args: any[]): any;
}): any
-
Parameters
-
cb: {
(e: Error, ...args: any[]): any;
(e: Error, ...args: any[]): any;
}
-
- (e: Error, ...args: any[]): any
-
Returns any
- (e: Error, ...args: any[]): any
-
Returns any
Returns any
-
valuesSync: (() => any[])
Persistent Cache
Returns