*RPCCache.data now returns NodeCache
This commit is contained in:
parent
33b87a1075
commit
ae10937bb8
|
@ -7,6 +7,7 @@
|
|||
"@lumeweb/cfg": "https://github.com/LumeWeb/bcfg.git",
|
||||
"@types/node": "^18.7.16",
|
||||
"express": "^4.18.1",
|
||||
"loglevel": "^1.8.0"
|
||||
"loglevel": "^1.8.0",
|
||||
"node-cache": "^5.1.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import type EventEmitter from "events";
|
||||
import type NodeCache from "node-cache";
|
||||
|
||||
export interface RPCRequest {
|
||||
module: string;
|
||||
|
@ -54,7 +55,7 @@ export declare class RPCServer extends EventEmitter {
|
|||
public static hashQuery(query: RPCRequest): string;
|
||||
}
|
||||
export declare class RPCCache extends EventEmitter {
|
||||
get data(): RPCCacheData;
|
||||
get data(): NodeCache;
|
||||
constructor(server: RPCServer);
|
||||
public signResponse(item: RPCCacheItem): any;
|
||||
public verifyResponse(pubkey: Buffer, item: RPCCacheItem): boolean | Buffer;
|
||||
|
|
Loading…
Reference in New Issue