@anncic-api/cache 2.1.11 → 3.0.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x59da00=a0_0x79cb;(function(_0x546050,_0x1dc4e1){const _0x249ca8=a0_0x79cb,_0x1a29e3=_0x546050();while(!![]){try{const _0x3c2901=-parseInt(_0x249ca8(0x180))/0x1*(-parseInt(_0x249ca8(0x172))/0x2)+parseInt(_0x249ca8(0x16e))/0x3+-parseInt(_0x249ca8(0x17c))/0x4+-parseInt(_0x249ca8(0x16c))/0x5+-parseInt(_0x249ca8(0x17d))/0x6*(parseInt(_0x249ca8(0x177))/0x7)+parseInt(_0x249ca8(0x16f))/0x8*(-parseInt(_0x249ca8(0x17f))/0x9)+parseInt(_0x249ca8(0x17b))/0xa;if(_0x3c2901===_0x1dc4e1)break;else _0x1a29e3['push'](_0x1a29e3['shift']());}catch(_0x1792fb){_0x1a29e3['push'](_0x1a29e3['shift']());}}}(a0_0x632e,0xa2058));function a0_0x632e(){const _0x371569=['file','639xHLGhz','212867PDamPA','2028885EYvECk','constructor','2600655LwOafq','11792faVYMa','cache-manager-fs-hash','appDir','6HRnuJt','/runtime/.cache','name','(((.+)+)+)+$','memory','1393HoFulc','search','default','defineProperty','12585550GkzUCh','3520548pFwmHy','21402WFrLoG'];a0_0x632e=function(){return _0x371569;};return a0_0x632e();}const a0_0x30dce2=(function(){let _0x4b528c=!![];return function(_0x5b8f8d,_0x36d21e){const _0x45a6bf=_0x4b528c?function(){if(_0x36d21e){const _0x4da0fe=_0x36d21e['apply'](_0x5b8f8d,arguments);return _0x36d21e=null,_0x4da0fe;}}:function(){};return _0x4b528c=![],_0x45a6bf;};}()),a0_0x15b639=a0_0x30dce2(this,function(){const _0x49d563=a0_0x79cb;return a0_0x15b639['toString']()[_0x49d563(0x178)](_0x49d563(0x175))['toString']()[_0x49d563(0x16d)](a0_0x15b639)[_0x49d563(0x178)](_0x49d563(0x175));});a0_0x15b639();'use strict';Object[a0_0x59da00(0x17a)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x59da00(0x170)),redisStore=require('cache-manager-ioredis');function a0_0x79cb(_0x3a7584,_0x1bb7f2){const _0x7bf16a=a0_0x632e();return a0_0x79cb=function(_0x15b639,_0x30dce2){_0x15b639=_0x15b639-0x16c;let _0x632eee=_0x7bf16a[_0x15b639];return _0x632eee;},a0_0x79cb(_0x3a7584,_0x1bb7f2);}exports[a0_0x59da00(0x179)]=_0x471b0d=>{const _0x2b5a38=a0_0x59da00;return{'cache':{'default':_0x2b5a38(0x17e),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x471b0d[_0x2b5a38(0x171)]+_0x2b5a38(0x173)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x471b0d[_0x2b5a38(0x174)]+':'}},'memory':{'store':_0x2b5a38(0x176),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a1_0x1290(){var _0xa8a589=['function','12nqBNpK','(((.+)+)+)+$','apply','search','@midwayjs/core','854490GDVaLI','83700YknsZy','3388kDrVHL','getOwnPropertyDescriptor','3IdNDbF','length','CustomConfiguration','534298kJXMlw','8fVgCte','__decorate','__esModule','defineProperty','1403860bckdJJ','./config/config.default','1134ERqPoz','1554406vklCfc','900690XBrFmN','object','anncic-api:cache','22500rEORpj','toString','Configuration'];a1_0x1290=function(){return _0xa8a589;};return a1_0x1290();}var a1_0x497a5a=a1_0xd39a;(function(_0x802326,_0x18e3cc){var _0x9c251a=a1_0xd39a,_0x3f936b=_0x802326();while(!![]){try{var _0x249cdb=-parseInt(_0x9c251a(0x160))/0x1*(-parseInt(_0x9c251a(0x163))/0x2)+parseInt(_0x9c251a(0x16c))/0x3+parseInt(_0x9c251a(0x173))/0x4*(parseInt(_0x9c251a(0x168))/0x5)+parseInt(_0x9c251a(0x178))/0x6+-parseInt(_0x9c251a(0x16b))/0x7*(-parseInt(_0x9c251a(0x164))/0x8)+parseInt(_0x9c251a(0x16a))/0x9*(parseInt(_0x9c251a(0x16f))/0xa)+parseInt(_0x9c251a(0x17a))/0xb*(-parseInt(_0x9c251a(0x179))/0xc);if(_0x249cdb===_0x18e3cc)break;else _0x3f936b['push'](_0x3f936b['shift']());}catch(_0x16eed1){_0x3f936b['push'](_0x3f936b['shift']());}}}(a1_0x1290,0x6c512));function a1_0xd39a(_0x534247,_0x52d510){var _0x5a953d=a1_0x1290();return a1_0xd39a=function(_0x1c67b8,_0x2947b5){_0x1c67b8=_0x1c67b8-0x15f;var _0x1290cf=_0x5a953d[_0x1c67b8];return _0x1290cf;},a1_0xd39a(_0x534247,_0x52d510);}var a1_0x2947b5=(function(){var _0x558f17=!![];return function(_0x13455b,_0x4c1a5d){var _0x3fd89f=_0x558f17?function(){var _0x146393=a1_0xd39a;if(_0x4c1a5d){var _0x3ae31c=_0x4c1a5d[_0x146393(0x175)](_0x13455b,arguments);return _0x4c1a5d=null,_0x3ae31c;}}:function(){};return _0x558f17=![],_0x3fd89f;};}()),a1_0x1c67b8=a1_0x2947b5(this,function(){var _0x2352f6=a1_0xd39a;return a1_0x1c67b8[_0x2352f6(0x170)]()['search'](_0x2352f6(0x174))[_0x2352f6(0x170)]()['constructor'](a1_0x1c67b8)[_0x2352f6(0x176)](_0x2352f6(0x174));});a1_0x1c67b8();'use strict';var __decorate=this&&this[a1_0x497a5a(0x165)]||function(_0x4879a5,_0x4d3f8a,_0x3d1507,_0x5c0127){var _0x40a27a=a1_0x497a5a,_0x577a53=arguments['length'],_0x16cbcf=_0x577a53<0x3?_0x4d3f8a:_0x5c0127===null?_0x5c0127=Object[_0x40a27a(0x15f)](_0x4d3f8a,_0x3d1507):_0x5c0127,_0x5dcc92;if(typeof Reflect===_0x40a27a(0x16d)&&typeof Reflect['decorate']===_0x40a27a(0x172))_0x16cbcf=Reflect['decorate'](_0x4879a5,_0x4d3f8a,_0x3d1507,_0x5c0127);else{for(var _0x192e79=_0x4879a5[_0x40a27a(0x161)]-0x1;_0x192e79>=0x0;_0x192e79--)if(_0x5dcc92=_0x4879a5[_0x192e79])_0x16cbcf=(_0x577a53<0x3?_0x5dcc92(_0x16cbcf):_0x577a53>0x3?_0x5dcc92(_0x4d3f8a,_0x3d1507,_0x16cbcf):_0x5dcc92(_0x4d3f8a,_0x3d1507))||_0x16cbcf;}return _0x577a53>0x3&&_0x16cbcf&&Object['defineProperty'](_0x4d3f8a,_0x3d1507,_0x16cbcf),_0x16cbcf;};Object[a1_0x497a5a(0x167)](exports,a1_0x497a5a(0x166),{'value':!![]}),exports[a1_0x497a5a(0x162)]=void 0x0;const core_1=require(a1_0x497a5a(0x177)),ConfigDefault=require(a1_0x497a5a(0x169));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x497a5a(0x171)])({'conflictCheck':![],'namespace':a1_0x497a5a(0x16e),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x497a5a(0x162)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x1156bc=a2_0x347e;(function(_0x3f6084,_0x3e1daa){const _0xc05aac=a2_0x347e,_0x3e9613=_0x3f6084();while(!![]){try{const _0x4f133d=-parseInt(_0xc05aac(0x1c9))/0x1+-parseInt(_0xc05aac(0x1b8))/0x2*(-parseInt(_0xc05aac(0x1b3))/0x3)+parseInt(_0xc05aac(0x1cf))/0x4+parseInt(_0xc05aac(0x1d0))/0x5*(-parseInt(_0xc05aac(0x1bf))/0x6)+parseInt(_0xc05aac(0x1c1))/0x7*(parseInt(_0xc05aac(0x1bb))/0x8)+parseInt(_0xc05aac(0x1b9))/0x9+parseInt(_0xc05aac(0x1c6))/0xa*(-parseInt(_0xc05aac(0x1b4))/0xb);if(_0x4f133d===_0x3e1daa)break;else _0x3e9613['push'](_0x3e9613['shift']());}catch(_0x5c9a31){_0x3e9613['push'](_0x3e9613['shift']());}}}(a2_0x3310,0xa9f01));const a2_0x574172=(function(){let _0x2b4e8c=!![];return function(_0xb9cfe8,_0x21de47){const _0x315ffb=_0x2b4e8c?function(){const _0x2aec42=a2_0x347e;if(_0x21de47){const _0x39667c=_0x21de47[_0x2aec42(0x1c3)](_0xb9cfe8,arguments);return _0x21de47=null,_0x39667c;}}:function(){};return _0x2b4e8c=![],_0x315ffb;};}()),a2_0x4073ed=a2_0x574172(this,function(){const _0x5e45de=a2_0x347e;return a2_0x4073ed['toString']()[_0x5e45de(0x1ba)](_0x5e45de(0x1c0))['toString']()[_0x5e45de(0x1be)](a2_0x4073ed)[_0x5e45de(0x1ba)](_0x5e45de(0x1c0));});a2_0x4073ed();'use strict';function a2_0x347e(_0x417e76,_0x1da34f){const _0x42cb10=a2_0x3310();return a2_0x347e=function(_0x4073ed,_0x574172){_0x4073ed=_0x4073ed-0x1b1;let _0x331022=_0x42cb10[_0x4073ed];return _0x331022;},a2_0x347e(_0x417e76,_0x1da34f);}Object[a2_0x1156bc(0x1c5)](exports,a2_0x1156bc(0x1bc),{'value':!![]}),exports[a2_0x1156bc(0x1b2)]=void 0x0;const crypto_js_1=require(a2_0x1156bc(0x1bd)),CacheService_1=require(a2_0x1156bc(0x1c4)),core_1=require(a2_0x1156bc(0x1b5));function Cache(_0x5dab3c,_0x192e0e){return(_0x3ddf12,_0x21d230,_0x544861)=>{const _0x332e29=a2_0x347e,_0x656784=_0x544861[_0x332e29(0x1c2)];return _0x544861['value']=async function(..._0x95ce15){const _0x55cc25=_0x332e29;!_0x5dab3c&&(_0x5dab3c=(0x0,crypto_js_1[_0x55cc25(0x1c7)])(JSON[_0x55cc25(0x1ce)](_0x95ce15))['toString']());let _0x53bcf7=await this[core_1[_0x55cc25(0x1b6)]][_0x55cc25(0x1cb)][_0x55cc25(0x1d1)]()[_0x55cc25(0x1c8)](CacheService_1[_0x55cc25(0x1ca)]),_0x5cd763=await _0x53bcf7['use'](_0x55cc25(0x1cd))['get'](_0x5dab3c);if(_0x5cd763)return JSON[_0x55cc25(0x1b7)](_0x5cd763);else _0x5cd763=await _0x656784[_0x55cc25(0x1c3)](this,[..._0x95ce15]),await _0x53bcf7[_0x55cc25(0x1b1)]('Method::Decorator')[_0x55cc25(0x1cc)](_0x5dab3c,JSON[_0x55cc25(0x1ce)](_0x5cd763),_0x192e0e);return _0x5cd763;},_0x544861;};}function a2_0x3310(){const _0x309146=['value','apply','../service/CacheService','defineProperty','10KqNoRe','MD5','getAsync','894508Zeegby','CacheService','app','set','Method::Decorator','stringify','789764tPubeE','2530UncbTD','getApplicationContext','use','Cache','804DnsIaH','8909098IXMhwm','@midwayjs/core','REQUEST_OBJ_CTX_KEY','parse','7916CyNdho','11504187KeYcZk','search','136VjubVr','__esModule','crypto-js','constructor','6240ZbVNNT','(((.+)+)+)+$','160713MCkjVv'];a2_0x3310=function(){return _0x309146;};return a2_0x3310();}exports[a2_0x1156bc(0x1b2)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x19df76=a3_0x3f0c;(function(_0x14f515,_0x340a32){var _0x26a54=a3_0x3f0c,_0x2d6e41=_0x14f515();while(!![]){try{var _0x5e6a58=-parseInt(_0x26a54(0x114))/0x1+parseInt(_0x26a54(0x10f))/0x2*(parseInt(_0x26a54(0x119))/0x3)+parseInt(_0x26a54(0x115))/0x4*(-parseInt(_0x26a54(0x10e))/0x5)+-parseInt(_0x26a54(0x10b))/0x6*(parseInt(_0x26a54(0x116))/0x7)+parseInt(_0x26a54(0x113))/0x8+parseInt(_0x26a54(0x108))/0x9*(parseInt(_0x26a54(0x109))/0xa)+parseInt(_0x26a54(0x117))/0xb;if(_0x5e6a58===_0x340a32)break;else _0x2d6e41['push'](_0x2d6e41['shift']());}catch(_0x2e01d1){_0x2d6e41['push'](_0x2d6e41['shift']());}}}(a3_0x5894,0x3d90b));var a3_0x1f931a=(function(){var _0x413511=!![];return function(_0x5b1786,_0x2516d9){var _0x130e62=_0x413511?function(){var _0x23548c=a3_0x3f0c;if(_0x2516d9){var _0x1cce8a=_0x2516d9[_0x23548c(0x11b)](_0x5b1786,arguments);return _0x2516d9=null,_0x1cce8a;}}:function(){};return _0x413511=![],_0x130e62;};}()),a3_0x111795=a3_0x1f931a(this,function(){var _0x12bdc7=a3_0x3f0c;return a3_0x111795[_0x12bdc7(0x112)]()[_0x12bdc7(0x118)](_0x12bdc7(0x111))[_0x12bdc7(0x112)]()['constructor'](a3_0x111795)[_0x12bdc7(0x118)]('(((.+)+)+)+$');});a3_0x111795();'use strict';Object[a3_0x19df76(0x110)](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports[a3_0x19df76(0x11a)]=exports['Configuration']=void 0x0;function a3_0x3f0c(_0x43574a,_0x433af4){var _0x27ed21=a3_0x5894();return a3_0x3f0c=function(_0x111795,_0x1f931a){_0x111795=_0x111795-0x107;var _0x58942b=_0x27ed21[_0x111795];return _0x58942b;},a3_0x3f0c(_0x43574a,_0x433af4);}var configuration_1=require(a3_0x19df76(0x10c));function a3_0x5894(){var _0x3303ca=['3065bwtoGJ','2mBJoHs','defineProperty','(((.+)+)+)+$','toString','3863832gHZafQ','465693tfBSRF','1252vDmUhK','21ylPdkD','1973829VgntlK','search','880653oDHMOu','Cache','apply','Configuration','9bkHGRq','485850ZBlmKO','CustomConfiguration','189642lOWena','./configuration','CacheService'];a3_0x5894=function(){return _0x3303ca;};return a3_0x5894();}Object['defineProperty'](exports,a3_0x19df76(0x107),{'enumerable':!![],'get':function(){var _0x137be2=a3_0x19df76;return configuration_1[_0x137be2(0x10a)];}});var Cache_1=require('./decorator/Cache');Object[a3_0x19df76(0x110)](exports,a3_0x19df76(0x11a),{'enumerable':!![],'get':function(){var _0x4aa46d=a3_0x19df76;return Cache_1[_0x4aa46d(0x11a)];}});var CacheService_1=require('./service/CacheService');Object['defineProperty'](exports,a3_0x19df76(0x10d),{'enumerable':!![],'get':function(){var _0x239cd9=a3_0x19df76;return CacheService_1[_0x239cd9(0x10d)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x574fc4=a4_0x401f;function a4_0x2bb3(){var _0x45b7ed=['87vjZkHR','length','del','constructor','2504175nGRIka','1061168kbzIkd','apply','toString','reset','caching','__esModule','36956elUMpZ','cache-manager','cache','Scope','metadata','stores','118366mLgSqf','Singleton','defineProperty','Config','__decorate','prototype','Provide','function','hdel','CacheService','design:type','prefix','default','config','8MdrPuS','3243528jgSBaq','1605478MShSpu','has','set','decorate','@midwayjs/core','get','search','(((.+)+)+)+$','309906wdrpXX','clients'];a4_0x2bb3=function(){return _0x45b7ed;};return a4_0x2bb3();}(function(_0x666ebe,_0xa3d83d){var _0x17e4a9=a4_0x401f,_0x3de46e=_0x666ebe();while(!![]){try{var _0x139854=-parseInt(_0x17e4a9(0x19d))/0x1+parseInt(_0x17e4a9(0x1bc))/0x2+parseInt(_0x17e4a9(0x1b7))/0x3*(-parseInt(_0x17e4a9(0x1c2))/0x4)+-parseInt(_0x17e4a9(0x1bb))/0x5+parseInt(_0x17e4a9(0x1b5))/0x6+parseInt(_0x17e4a9(0x1ad))/0x7+parseInt(_0x17e4a9(0x1ab))/0x8*(parseInt(_0x17e4a9(0x1ac))/0x9);if(_0x139854===_0xa3d83d)break;else _0x3de46e['push'](_0x3de46e['shift']());}catch(_0x26b13b){_0x3de46e['push'](_0x3de46e['shift']());}}}(a4_0x2bb3,0x458b1));var a4_0x55443c=(function(){var _0x12f068=!![];return function(_0x36e333,_0x12f5e){var _0x602256=_0x12f068?function(){var _0x3221ae=a4_0x401f;if(_0x12f5e){var _0x5f7627=_0x12f5e[_0x3221ae(0x1bd)](_0x36e333,arguments);return _0x12f5e=null,_0x5f7627;}}:function(){};return _0x12f068=![],_0x602256;};}()),a4_0x7cdd9f=a4_0x55443c(this,function(){var _0x110858=a4_0x401f;return a4_0x7cdd9f[_0x110858(0x1be)]()[_0x110858(0x1b3)](_0x110858(0x1b4))['toString']()[_0x110858(0x1ba)](a4_0x7cdd9f)[_0x110858(0x1b3)](_0x110858(0x1b4));});a4_0x7cdd9f();'use strict';var __decorate=this&&this[a4_0x574fc4(0x1a1)]||function(_0x4b6cf4,_0x30d1dd,_0x5bf64f,_0x4ca7e8){var _0x3f6e20=a4_0x574fc4,_0x1c3cf=arguments[_0x3f6e20(0x1b8)],_0x40edad=_0x1c3cf<0x3?_0x30d1dd:_0x4ca7e8===null?_0x4ca7e8=Object['getOwnPropertyDescriptor'](_0x30d1dd,_0x5bf64f):_0x4ca7e8,_0x5ad840;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3f6e20(0x1a4))_0x40edad=Reflect[_0x3f6e20(0x1b0)](_0x4b6cf4,_0x30d1dd,_0x5bf64f,_0x4ca7e8);else{for(var _0x2b4074=_0x4b6cf4[_0x3f6e20(0x1b8)]-0x1;_0x2b4074>=0x0;_0x2b4074--)if(_0x5ad840=_0x4b6cf4[_0x2b4074])_0x40edad=(_0x1c3cf<0x3?_0x5ad840(_0x40edad):_0x1c3cf>0x3?_0x5ad840(_0x30d1dd,_0x5bf64f,_0x40edad):_0x5ad840(_0x30d1dd,_0x5bf64f))||_0x40edad;}return _0x1c3cf>0x3&&_0x40edad&&Object[_0x3f6e20(0x19f)](_0x30d1dd,_0x5bf64f,_0x40edad),_0x40edad;},__metadata=this&&this['__metadata']||function(_0x4857ae,_0x59cb64){var _0x1a4658=a4_0x574fc4;if(typeof Reflect==='object'&&typeof Reflect[_0x1a4658(0x19b)]===_0x1a4658(0x1a4))return Reflect[_0x1a4658(0x19b)](_0x4857ae,_0x59cb64);};Object[a4_0x574fc4(0x19f)](exports,a4_0x574fc4(0x1c1),{'value':!![]}),exports[a4_0x574fc4(0x1a6)]=void 0x0;function a4_0x401f(_0x2680f9,_0x320cf7){var _0xda28c6=a4_0x2bb3();return a4_0x401f=function(_0x7cdd9f,_0x55443c){_0x7cdd9f=_0x7cdd9f-0x199;var _0x2bb3ea=_0xda28c6[_0x7cdd9f];return _0x2bb3ea;},a4_0x401f(_0x2680f9,_0x320cf7);}const cacheManager=require(a4_0x574fc4(0x1c3)),core_1=require(a4_0x574fc4(0x1b1));let CacheService=class CacheService{constructor(){var _0x4fdd7b=a4_0x574fc4;this[_0x4fdd7b(0x199)]=undefined,this[_0x4fdd7b(0x1b6)]=new Map();}['use'](_0x2ac8fe){var _0x1f0b9a=a4_0x574fc4,_0x5d3cd6,_0x1e48f4;if(!this[_0x1f0b9a(0x199)]){const _0x409f9f=((_0x5d3cd6=this[_0x1f0b9a(0x1aa)][_0x1f0b9a(0x19c)])===null||_0x5d3cd6===void 0x0?void 0x0:_0x5d3cd6[(_0x1e48f4=this[_0x1f0b9a(0x1aa)][_0x1f0b9a(0x199)])===null||_0x1e48f4===void 0x0?void 0x0:_0x1e48f4[_0x1f0b9a(0x1a9)]])||this[_0x1f0b9a(0x1aa)][_0x1f0b9a(0x19c)]['file'];this[_0x1f0b9a(0x199)]=cacheManager[_0x1f0b9a(0x1c0)]({..._0x409f9f['options'],'store':_0x409f9f['store']});}return!this[_0x1f0b9a(0x1b6)][_0x1f0b9a(0x1ae)](_0x2ac8fe)&&this[_0x1f0b9a(0x1b6)]['set'](_0x2ac8fe,new CacheHandler(_0x2ac8fe,this['cache'])),this['clients'][_0x1f0b9a(0x1b2)](_0x2ac8fe);}async['reset'](){var _0x5be0b4=a4_0x574fc4;return await this[_0x5be0b4(0x199)][_0x5be0b4(0x1bf)]();}};__decorate([(0x0,core_1[a4_0x574fc4(0x1a0)])(a4_0x574fc4(0x199)),__metadata(a4_0x574fc4(0x1a7),Object)],CacheService[a4_0x574fc4(0x1a2)],a4_0x574fc4(0x1aa),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x574fc4(0x1a3)])(),(0x0,core_1[a4_0x574fc4(0x19a)])(core_1['ScopeEnum'][a4_0x574fc4(0x19e)])],CacheService),exports[a4_0x574fc4(0x1a6)]=CacheService;class CacheHandler{constructor(_0x54bb2c,_0x308279){var _0x18ddc1=a4_0x574fc4;this[_0x18ddc1(0x199)]=_0x308279,this[_0x18ddc1(0x1a8)]=_0x54bb2c;}async[a4_0x574fc4(0x1b9)](_0x184512){var _0x3afe15=a4_0x574fc4;return await this['cache'][_0x3afe15(0x1b9)](this[_0x3afe15(0x1a8)]+':'+_0x184512);}async[a4_0x574fc4(0x1af)](_0x243ad7,_0x42ad27,_0xc0b67f){var _0x93b6a1=a4_0x574fc4;return await this['cache'][_0x93b6a1(0x1af)](this[_0x93b6a1(0x1a8)]+':'+_0x243ad7,_0x42ad27,_0xc0b67f);}async['get'](_0x108e37,_0x5dc306){return new Promise((_0x28627b,_0x312860)=>{var _0x4f4474=a4_0x401f;this[_0x4f4474(0x199)][_0x4f4474(0x1b2)](this[_0x4f4474(0x1a8)]+':'+_0x108e37,(_0x2f85c7,_0x37040a)=>{_0x2f85c7?_0x312860(_0x2f85c7):_0x28627b(_0x37040a||_0x5dc306);});});}async[a4_0x574fc4(0x1a5)](_0x1e8fd8,_0x5863c5){var _0x366754=a4_0x574fc4;return await this[_0x366754(0x1b9)](_0x1e8fd8+'#'+_0x5863c5);}async['hset'](_0x1a81d8,_0x5cda0e,_0x262ca1,_0x37e3b4){var _0x1914ee=a4_0x574fc4;return await this[_0x1914ee(0x1af)](_0x1a81d8+'#'+_0x5cda0e,_0x262ca1,_0x37e3b4);}async['hget'](_0x2e0996,_0x1b4f68,_0x308d24){return await this['get'](_0x2e0996+'#'+_0x1b4f68,_0x308d24);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "^4.0.0",
|
|
24
24
|
"typescript": "^4.7.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "68a9aaad5232b13c8bf1fc979232f0bfdac08b85"
|
|
27
27
|
}
|