@anncic-api/cache 1.0.11 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Cache.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/CacheService.js +1 -1
- package/package.json +2 -2
- package/dist/services/CacheService.d.ts +0 -20
- package/dist/services/CacheService.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x52fd16=a0_0x4c59;(function(_0x270aed,_0x53bf06){const _0x30433f=a0_0x4c59,_0x416f1c=_0x270aed();while(!![]){try{const _0x2bd622=parseInt(_0x30433f(0x158))/0x1*(-parseInt(_0x30433f(0x166))/0x2)+parseInt(_0x30433f(0x159))/0x3*(-parseInt(_0x30433f(0x162))/0x4)+parseInt(_0x30433f(0x163))/0x5*(-parseInt(_0x30433f(0x164))/0x6)+parseInt(_0x30433f(0x167))/0x7*(-parseInt(_0x30433f(0x155))/0x8)+-parseInt(_0x30433f(0x161))/0x9+-parseInt(_0x30433f(0x160))/0xa*(parseInt(_0x30433f(0x156))/0xb)+parseInt(_0x30433f(0x165))/0xc;if(_0x2bd622===_0x53bf06)break;else _0x416f1c['push'](_0x416f1c['shift']());}catch(_0xeff441){_0x416f1c['push'](_0x416f1c['shift']());}}}(a0_0x3b9e,0xac014));function a0_0x3b9e(){const _0xfc7699=['name','__esModule','127.0.0.1','61230CvNLUc','9986778HGkPHn','12XVHzgk','23835RjhOXO','846pEVWwO','60786492AxRlXP','1742yNbYlb','140hbxQDG','291736DeZlWV','220NPDZOE','file','521mWEDig','1273629CJldcr','cache-manager-ioredis','appDir','default'];a0_0x3b9e=function(){return _0xfc7699;};return a0_0x3b9e();}function a0_0x4c59(_0x29524c,_0xf66947){const _0x3b9ecc=a0_0x3b9e();return a0_0x4c59=function(_0x4c598f,_0x518a02){_0x4c598f=_0x4c598f-0x155;let _0x53cd45=_0x3b9ecc[_0x4c598f];return _0x53cd45;},a0_0x4c59(_0x29524c,_0xf66947);}Object['defineProperty'](exports,a0_0x52fd16(0x15e),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x52fd16(0x15a));exports[a0_0x52fd16(0x15c)]=_0x54821b=>{const _0x114958=a0_0x52fd16;return{'cache':{'default':_0x114958(0x157),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x54821b[_0x114958(0x15b)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x114958(0x15f),'password':'','ttl':0x1e13380,'keyPrefix':_0x54821b[_0x114958(0x15d)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x156c42=a1_0x2bf2;(function(_0xb57a20,_0x147ecc){var _0x164787=a1_0x2bf2,_0x1346a8=_0xb57a20();while(!![]){try{var _0x392a60=-parseInt(_0x164787(0x18f))/0x1+-parseInt(_0x164787(0x192))/0x2*(parseInt(_0x164787(0x199))/0x3)+parseInt(_0x164787(0x19a))/0x4*(parseInt(_0x164787(0x18c))/0x5)+-parseInt(_0x164787(0x18b))/0x6+-parseInt(_0x164787(0x198))/0x7*(-parseInt(_0x164787(0x19e))/0x8)+-parseInt(_0x164787(0x193))/0x9*(-parseInt(_0x164787(0x196))/0xa)+-parseInt(_0x164787(0x18e))/0xb*(-parseInt(_0x164787(0x1a0))/0xc);if(_0x392a60===_0x147ecc)break;else _0x1346a8['push'](_0x1346a8['shift']());}catch(_0x2ec137){_0x1346a8['push'](_0x1346a8['shift']());}}}(a1_0x5346,0x8bfd5));var __decorate=this&&this[a1_0x156c42(0x197)]||function(_0x2b2a7d,_0x4e1a67,_0xc83923,_0x2164bb){var _0xc2459f=a1_0x156c42,_0x1da2e9=arguments[_0xc2459f(0x19c)],_0x11c766=_0x1da2e9<0x3?_0x4e1a67:_0x2164bb===null?_0x2164bb=Object[_0xc2459f(0x190)](_0x4e1a67,_0xc83923):_0x2164bb,_0x1357de;if(typeof Reflect===_0xc2459f(0x19b)&&typeof Reflect[_0xc2459f(0x19f)]===_0xc2459f(0x195))_0x11c766=Reflect[_0xc2459f(0x19f)](_0x2b2a7d,_0x4e1a67,_0xc83923,_0x2164bb);else{for(var _0x3b2d75=_0x2b2a7d[_0xc2459f(0x19c)]-0x1;_0x3b2d75>=0x0;_0x3b2d75--)if(_0x1357de=_0x2b2a7d[_0x3b2d75])_0x11c766=(_0x1da2e9<0x3?_0x1357de(_0x11c766):_0x1da2e9>0x3?_0x1357de(_0x4e1a67,_0xc83923,_0x11c766):_0x1357de(_0x4e1a67,_0xc83923))||_0x11c766;}return _0x1da2e9>0x3&&_0x11c766&&Object[_0xc2459f(0x19d)](_0x4e1a67,_0xc83923,_0x11c766),_0x11c766;};Object[a1_0x156c42(0x19d)](exports,a1_0x156c42(0x194),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x2bf2(_0x4a368b,_0x25523a){var _0x53460b=a1_0x5346();return a1_0x2bf2=function(_0x2bf2ef,_0x30db19){_0x2bf2ef=_0x2bf2ef-0x18a;var _0x2c83a6=_0x53460b[_0x2bf2ef];return _0x2c83a6;},a1_0x2bf2(_0x4a368b,_0x25523a);}const decorator_1=require(a1_0x156c42(0x18a)),ConfigDefault=require(a1_0x156c42(0x191));let CustomConfiguration=class CustomConfiguration{};function a1_0x5346(){var _0x4a58b4=['length','defineProperty','8omajpe','decorate','4236444HJLKmY','@midwayjs/decorator','4614150CmoAWJ','2305jzwnki','Configuration','22WPJSbh','620661fxXbYd','getOwnPropertyDescriptor','./config/config.default','298KcjcYO','3095667byHPmb','__esModule','function','30HBKzjk','__decorate','5359109cZrXFv','11643rmyVrU','328QrqkTv','object'];a1_0x5346=function(){return _0x4a58b4;};return a1_0x5346();}CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x156c42(0x18d)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x4cd82a=a2_0x4655;function a2_0x4655(_0x463754,_0x6eb45d){const _0x2b6a4c=a2_0x2b6a();return a2_0x4655=function(_0x4655d0,_0x177132){_0x4655d0=_0x4655d0-0x14e;let _0x3b6eb9=_0x2b6a4c[_0x4655d0];return _0x3b6eb9;},a2_0x4655(_0x463754,_0x6eb45d);}(function(_0x5ab804,_0x34464e){const _0x1aeee2=a2_0x4655,_0x1625e9=_0x5ab804();while(!![]){try{const _0x13f0ec=-parseInt(_0x1aeee2(0x154))/0x1+parseInt(_0x1aeee2(0x159))/0x2+-parseInt(_0x1aeee2(0x15f))/0x3+-parseInt(_0x1aeee2(0x168))/0x4+-parseInt(_0x1aeee2(0x15e))/0x5*(-parseInt(_0x1aeee2(0x15c))/0x6)+parseInt(_0x1aeee2(0x167))/0x7*(parseInt(_0x1aeee2(0x157))/0x8)+-parseInt(_0x1aeee2(0x166))/0x9;if(_0x13f0ec===_0x34464e)break;else _0x1625e9['push'](_0x1625e9['shift']());}catch(_0x3141ed){_0x1625e9['push'](_0x1625e9['shift']());}}}(a2_0x2b6a,0x3ad40));Object[a2_0x4cd82a(0x155)](exports,a2_0x4cd82a(0x163),{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x4cd82a(0x15a)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x4cd82a(0x15d));function Cache(_0x48db8e,_0x26528a){return(_0x1cbf3f,_0x5dea3a,_0x248e45)=>{const _0x4b98df=a2_0x4655,_0x193933=_0x248e45[_0x4b98df(0x15b)];return _0x248e45[_0x4b98df(0x15b)]=async function(..._0x3beeeb){const _0x5735b5=_0x4b98df;!_0x48db8e&&(_0x48db8e=(0x0,crypto_js_1[_0x5735b5(0x14f)])(JSON[_0x5735b5(0x151)](_0x3beeeb))[_0x5735b5(0x14e)]());let _0x2b3d58=await this[core_1[_0x5735b5(0x150)]][_0x5735b5(0x162)]['getApplicationContext']()[_0x5735b5(0x156)](CacheService_1[_0x5735b5(0x153)]),_0xa48023=await _0x2b3d58[_0x5735b5(0x165)](_0x5735b5(0x160))['get'](_0x48db8e);if(_0xa48023)return JSON[_0x5735b5(0x164)](_0xa48023);else _0xa48023=await _0x193933[_0x5735b5(0x158)](this,[..._0x3beeeb]),await _0x2b3d58[_0x5735b5(0x165)](_0x5735b5(0x160))[_0x5735b5(0x152)](_0x48db8e,JSON[_0x5735b5(0x151)](_0xa48023),_0x26528a);return _0xa48023;},_0x248e45;};}function a2_0x2b6a(){const _0x44a194=['toString','MD5','REQUEST_OBJ_CTX_KEY','stringify','set','CacheService','216323OfcXUf','defineProperty','getAsync','217096AnlqLp','apply','794996kcXsTC','crypto-js','value','6OFQyoK','@midwayjs/core','2250060pgJYWS','938310KshpNb','MethodDecorator','Cache','app','__esModule','parse','use','117738lQwMsp','91PyKnLz','1668624Bofuwp'];a2_0x2b6a=function(){return _0x44a194;};return a2_0x2b6a();}exports[a2_0x4cd82a(0x161)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x4dda2e=a3_0x2cb0;function a3_0x2cb0(_0x480d26,_0x136811){var _0x86f6cc=a3_0x86f6();return a3_0x2cb0=function(_0x2cb0f6,_0x9a83f2){_0x2cb0f6=_0x2cb0f6-0xea;var _0x3312cf=_0x86f6cc[_0x2cb0f6];return _0x3312cf;},a3_0x2cb0(_0x480d26,_0x136811);}(function(_0x208b6c,_0x353e6b){var _0x1eef18=a3_0x2cb0,_0x107cd5=_0x208b6c();while(!![]){try{var _0x1fde96=-parseInt(_0x1eef18(0xf0))/0x1+parseInt(_0x1eef18(0xf4))/0x2+parseInt(_0x1eef18(0xec))/0x3*(parseInt(_0x1eef18(0xfb))/0x4)+-parseInt(_0x1eef18(0xea))/0x5*(-parseInt(_0x1eef18(0xed))/0x6)+-parseInt(_0x1eef18(0xeb))/0x7+parseInt(_0x1eef18(0xee))/0x8*(parseInt(_0x1eef18(0xf3))/0x9)+parseInt(_0x1eef18(0xf2))/0xa;if(_0x1fde96===_0x353e6b)break;else _0x107cd5['push'](_0x107cd5['shift']());}catch(_0x17f5e1){_0x107cd5['push'](_0x107cd5['shift']());}}}(a3_0x86f6,0x3e784));function a3_0x86f6(){var _0x46662d=['Cache','./decorator/Cache','./configuration','CacheService','84dKxUuz','10MjhJJj','2460157mLAhyk','11505UQUcBw','1467222wxxpme','585656NpbLIl','defineProperty','459563HsOJYW','__esModule','956190WyXVUz','45NikMXh','71254ZaYsHx','Configuration','./service/CacheService'];a3_0x86f6=function(){return _0x46662d;};return a3_0x86f6();}Object[a3_0x4dda2e(0xef)](exports,a3_0x4dda2e(0xf1),{'value':!![]}),exports[a3_0x4dda2e(0xfa)]=exports[a3_0x4dda2e(0xf7)]=exports[a3_0x4dda2e(0xf5)]=void 0x0;var configuration_1=require(a3_0x4dda2e(0xf9));Object[a3_0x4dda2e(0xef)](exports,a3_0x4dda2e(0xf5),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x4dda2e(0xf8));Object[a3_0x4dda2e(0xef)](exports,a3_0x4dda2e(0xf7),{'enumerable':!![],'get':function(){var _0x2815b2=a3_0x4dda2e;return Cache_1[_0x2815b2(0xf7)];}});var CacheService_1=require(a3_0x4dda2e(0xf6));Object[a3_0x4dda2e(0xef)](exports,a3_0x4dda2e(0xfa),{'enumerable':!![],'get':function(){var _0x372ce4=a3_0x4dda2e;return CacheService_1[_0x372ce4(0xfa)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a4_0x4ddb(){var _0x3aa615=['del','CacheService','store','50JWuSZh','407001gTegIB','__decorate','@midwayjs/decorator','98448TGyESu','getOwnPropertyDescriptor','cache','__esModule','4nhkfTF','metadata','decorate','2758225BnfIhb','926811ueULpW','Scope','defineProperty','prefix','design:type','21QmVfAw','Provide','length','clients','reset','prototype','object','5082990rnSlTl','default','hdel','get','Config','stores','function','options','cache-manager','212tNoKHo','use','has','ScopeEnum','set','151614aFHoqV','hget','__metadata','file','3741MnrPRi','config'];a4_0x4ddb=function(){return _0x3aa615;};return a4_0x4ddb();}var a4_0x44d7ca=a4_0x4023;(function(_0x4d8e00,_0x56f43c){var _0x1d8119=a4_0x4023,_0x573d26=_0x4d8e00();while(!![]){try{var _0x490a59=parseInt(_0x1d8119(0x18c))/0x1*(-parseInt(_0x1d8119(0x1b2))/0x2)+parseInt(_0x1d8119(0x192))/0x3*(parseInt(_0x1d8119(0x199))/0x4)+parseInt(_0x1d8119(0x19c))/0x5+parseInt(_0x1d8119(0x188))/0x6+-parseInt(_0x1d8119(0x1a2))/0x7*(parseInt(_0x1d8119(0x195))/0x8)+-parseInt(_0x1d8119(0x19d))/0x9*(-parseInt(_0x1d8119(0x191))/0xa)+-parseInt(_0x1d8119(0x1a9))/0xb;if(_0x490a59===_0x56f43c)break;else _0x573d26['push'](_0x573d26['shift']());}catch(_0x18c903){_0x573d26['push'](_0x573d26['shift']());}}}(a4_0x4ddb,0x51092));var __decorate=this&&this[a4_0x44d7ca(0x193)]||function(_0x440afb,_0x7cc4e3,_0x59d917,_0x4a7fab){var _0x4fc211=a4_0x44d7ca,_0xd14467=arguments[_0x4fc211(0x1a4)],_0x4bdd7d=_0xd14467<0x3?_0x7cc4e3:_0x4a7fab===null?_0x4a7fab=Object[_0x4fc211(0x196)](_0x7cc4e3,_0x59d917):_0x4a7fab,_0x216fa7;if(typeof Reflect===_0x4fc211(0x1a8)&&typeof Reflect[_0x4fc211(0x19b)]===_0x4fc211(0x1af))_0x4bdd7d=Reflect[_0x4fc211(0x19b)](_0x440afb,_0x7cc4e3,_0x59d917,_0x4a7fab);else{for(var _0xbdb6c3=_0x440afb[_0x4fc211(0x1a4)]-0x1;_0xbdb6c3>=0x0;_0xbdb6c3--)if(_0x216fa7=_0x440afb[_0xbdb6c3])_0x4bdd7d=(_0xd14467<0x3?_0x216fa7(_0x4bdd7d):_0xd14467>0x3?_0x216fa7(_0x7cc4e3,_0x59d917,_0x4bdd7d):_0x216fa7(_0x7cc4e3,_0x59d917))||_0x4bdd7d;}return _0xd14467>0x3&&_0x4bdd7d&&Object[_0x4fc211(0x19f)](_0x7cc4e3,_0x59d917,_0x4bdd7d),_0x4bdd7d;},__metadata=this&&this[a4_0x44d7ca(0x18a)]||function(_0x1fe0f2,_0x5b35c4){var _0x35347e=a4_0x44d7ca;if(typeof Reflect===_0x35347e(0x1a8)&&typeof Reflect[_0x35347e(0x19a)]===_0x35347e(0x1af))return Reflect[_0x35347e(0x19a)](_0x1fe0f2,_0x5b35c4);};Object[a4_0x44d7ca(0x19f)](exports,a4_0x44d7ca(0x198),{'value':!![]}),exports[a4_0x44d7ca(0x18f)]=void 0x0;function a4_0x4023(_0x335d08,_0x4c6176){var _0x4ddbd7=a4_0x4ddb();return a4_0x4023=function(_0x402371,_0x91e728){_0x402371=_0x402371-0x188;var _0x41f5c7=_0x4ddbd7[_0x402371];return _0x41f5c7;},a4_0x4023(_0x335d08,_0x4c6176);}const cacheManager=require(a4_0x44d7ca(0x1b1)),decorator_1=require(a4_0x44d7ca(0x194));let CacheService=class CacheService{constructor(){var _0x450c02=a4_0x44d7ca;this[_0x450c02(0x197)]=undefined,this[_0x450c02(0x1a5)]=new Map();}[a4_0x44d7ca(0x1b3)](_0x573128){var _0x3a95be=a4_0x44d7ca,_0x2eb1fe,_0x589d00;if(!this[_0x3a95be(0x197)]){const _0x513694=((_0x2eb1fe=this['config']['stores'])===null||_0x2eb1fe===void 0x0?void 0x0:_0x2eb1fe[(_0x589d00=this[_0x3a95be(0x18d)][_0x3a95be(0x197)])===null||_0x589d00===void 0x0?void 0x0:_0x589d00[_0x3a95be(0x1aa)]])||this[_0x3a95be(0x18d)][_0x3a95be(0x1ae)][_0x3a95be(0x18b)];this['cache']=cacheManager['caching']({..._0x513694[_0x3a95be(0x1b0)],'store':_0x513694[_0x3a95be(0x190)]});}return!this['clients'][_0x3a95be(0x1b4)](_0x573128)&&this[_0x3a95be(0x1a5)]['set'](_0x573128,new CacheHandler(_0x573128,this[_0x3a95be(0x197)])),this[_0x3a95be(0x1a5)]['get'](_0x573128);}async[a4_0x44d7ca(0x1a6)](){var _0x30fd77=a4_0x44d7ca;return await this[_0x30fd77(0x197)]['reset']();}};__decorate([(0x0,decorator_1[a4_0x44d7ca(0x1ad)])(a4_0x44d7ca(0x197)),__metadata(a4_0x44d7ca(0x1a1),Object)],CacheService[a4_0x44d7ca(0x1a7)],a4_0x44d7ca(0x18d),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x44d7ca(0x1a3)])(),(0x0,decorator_1[a4_0x44d7ca(0x19e)])(decorator_1[a4_0x44d7ca(0x1b5)]['Singleton'])],CacheService),exports[a4_0x44d7ca(0x18f)]=CacheService;class CacheHandler{constructor(_0x2032cd,_0x303fd5){var _0x5d9710=a4_0x44d7ca;this[_0x5d9710(0x197)]=_0x303fd5,this['prefix']=_0x2032cd;}async['del'](_0xb4c901){var _0x3016e2=a4_0x44d7ca;return await this[_0x3016e2(0x197)][_0x3016e2(0x18e)](this[_0x3016e2(0x1a0)]+':'+_0xb4c901);}async[a4_0x44d7ca(0x1b6)](_0x1a482f,_0x19ed30,_0x4fe82f){var _0x409ad1=a4_0x44d7ca;return await this[_0x409ad1(0x197)][_0x409ad1(0x1b6)](this['prefix']+':'+_0x1a482f,_0x19ed30,_0x4fe82f);}async['get'](_0x13a7ed,_0x5392a7){return new Promise((_0x47eddc,_0xc9590c)=>{var _0x5bed58=a4_0x4023;this[_0x5bed58(0x197)][_0x5bed58(0x1ac)](this[_0x5bed58(0x1a0)]+':'+_0x13a7ed,(_0x13d4d9,_0x18a43a)=>{_0x13d4d9?_0xc9590c(_0x13d4d9):_0x47eddc(_0x18a43a||_0x5392a7);});});}async[a4_0x44d7ca(0x1ab)](_0x479ecf,_0x26a2c4){var _0x5ab3ba=a4_0x44d7ca;return await this[_0x5ab3ba(0x18e)](_0x479ecf+'-'+_0x26a2c4);}async['hset'](_0x4f8692,_0x2b029a,_0x48c22d,_0x1def00){return await this['set'](_0x4f8692+'-'+_0x2b029a,_0x48c22d,_0x1def00);}async[a4_0x44d7ca(0x189)](_0x51a2be,_0x4169f9,_0x4f4d5b){return await this['get'](_0x51a2be+'-'+_0x4169f9,_0x4f4d5b);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "2.19.0",
|
|
24
24
|
"typescript": "^4.7.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "4fafd881b309bad6e9162c857d8a230dc290ce7b"
|
|
27
27
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as cacheManager from 'cache-manager';
|
|
2
|
-
export declare class CacheService {
|
|
3
|
-
protected config: any;
|
|
4
|
-
protected cache: cacheManager.Cache;
|
|
5
|
-
protected clients: Map<string, CacheHandler>;
|
|
6
|
-
use(registerCache: string): CacheHandler;
|
|
7
|
-
reset(): Promise<any>;
|
|
8
|
-
}
|
|
9
|
-
declare class CacheHandler {
|
|
10
|
-
protected prefix: string;
|
|
11
|
-
protected cache: cacheManager.Cache;
|
|
12
|
-
constructor(prefix: string, cache: cacheManager.Cache);
|
|
13
|
-
del(key: string): Promise<any>;
|
|
14
|
-
set<T>(key: string, value: T, ttl?: number): Promise<T>;
|
|
15
|
-
get<T>(key: string, defaultval?: any): Promise<T>;
|
|
16
|
-
hdel(key: string, field: string): Promise<any>;
|
|
17
|
-
hset<T>(key: string, field: string, value: T, ttl?: number): Promise<T>;
|
|
18
|
-
hget<T>(key: string, field: string, defaultval?: any): Promise<T>;
|
|
19
|
-
}
|
|
20
|
-
export {};
|