fix(core): update
This commit is contained in:
@ -1 +1,2 @@
|
||||
export * from './webstore.classes.typedrequestcache';
|
||||
export * from './webstore.classes.webstore';
|
||||
|
@ -5,10 +5,14 @@ import * as plugins from './webstore.plugins';
|
||||
* a cache that can be used to store and retrieve typedrequests
|
||||
*/
|
||||
export class TypedrequestCache {
|
||||
private webstore = new WebStore<plugins.typedrequestInterfaces.ITypedRequest>({
|
||||
dbName: 'trStore',
|
||||
storeName: 'trStore',
|
||||
});
|
||||
private webstore: WebStore;
|
||||
|
||||
constructor(domainArg = 'default') {
|
||||
this.webstore = new WebStore<plugins.typedrequestInterfaces.ITypedRequest>({
|
||||
dbName: 'trStore',
|
||||
storeName: `trStore-${domainArg}`,
|
||||
});
|
||||
}
|
||||
|
||||
private buildKey(requestArg: plugins.typedrequestInterfaces.ITypedRequest) {
|
||||
return plugins.smartjson.stringify({
|
||||
|
Reference in New Issue
Block a user