@api.global/typedserver
Version:
A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.
15 lines (14 loc) • 438 B
TypeScript
/**
* an abstraction for the workerd KV store
*/
export declare class KVHandler {
private getSafeIdentifier;
getFromKv(keyIdentifier: string): Promise<string>;
putInKv(keyIdentifier: string, valueForStorage: string): Promise<any>;
/**
* deletes a key/value from the cache
* @param keyIdentifier
*/
deleteInKv(keyIdentifier: string): Promise<void>;
}
export declare const kvHandlerInstance: KVHandler;