@anncic-api/cache 3.7.3 → 3.7.5

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 a0_0x18bd23=a0_0x6556;(function(_0x2678eb,_0xe30cd1){const _0x3f5ac5=a0_0x6556,_0x1ec191=_0x2678eb();while(!![]){try{const _0x40017f=parseInt(_0x3f5ac5(0x9d))/0x1+-parseInt(_0x3f5ac5(0xb0))/0x2*(-parseInt(_0x3f5ac5(0xa5))/0x3)+parseInt(_0x3f5ac5(0xa8))/0x4+-parseInt(_0x3f5ac5(0xaf))/0x5*(parseInt(_0x3f5ac5(0xae))/0x6)+parseInt(_0x3f5ac5(0xa6))/0x7*(parseInt(_0x3f5ac5(0xb2))/0x8)+parseInt(_0x3f5ac5(0xb5))/0x9*(-parseInt(_0x3f5ac5(0xa3))/0xa)+-parseInt(_0x3f5ac5(0x9e))/0xb;if(_0x40017f===_0xe30cd1)break;else _0x1ec191['push'](_0x1ec191['shift']());}catch(_0x3ccf0f){_0x1ec191['push'](_0x1ec191['shift']());}}}(a0_0x50b4,0xc31eb));function a0_0x6556(_0x598b40,_0x545e41){const _0x4979ac=a0_0x50b4();return a0_0x6556=function(_0x4ddb45,_0xcb0110){_0x4ddb45=_0x4ddb45-0x9c;let _0x50b4a3=_0x4979ac[_0x4ddb45];return _0x50b4a3;},a0_0x6556(_0x598b40,_0x545e41);}const a0_0xcb0110=(function(){let _0x131f44=!![];return function(_0x5e385a,_0x35902f){const _0x33ad13=_0x131f44?function(){const _0x5197af=a0_0x6556;if(_0x35902f){const _0x409e08=_0x35902f[_0x5197af(0xa7)](_0x5e385a,arguments);return _0x35902f=null,_0x409e08;}}:function(){};return _0x131f44=![],_0x33ad13;};}()),a0_0x4ddb45=a0_0xcb0110(this,function(){const _0x143a53=a0_0x6556;return a0_0x4ddb45['toString']()[_0x143a53(0xa1)](_0x143a53(0xad))[_0x143a53(0xab)]()['constructor'](a0_0x4ddb45)['search'](_0x143a53(0xad));});a0_0x4ddb45();'use strict';Object[a0_0x18bd23(0xaa)](exports,a0_0x18bd23(0x9c),{'value':!![]});const fsStore=require(a0_0x18bd23(0xa9)),redisStore=require(a0_0x18bd23(0xa4));function a0_0x50b4(){const _0x28ec0e=['apply','5220472ltMlja','cache-manager-fs-hash','defineProperty','toString','127.0.0.1','(((.+)+)+)+$','536586YDYrMH','75nqMJYX','2AwLUXR','appDir','1016448gZhKHH','env','default','196578NWlDYD','__esModule','1248424OXLnCH','11545061DtZbFq','file','memory','search','/runtime/.cache','410QdCgkS','cache-manager-ioredis','784941KGpXsH','70aWqHEv'];a0_0x50b4=function(){return _0x28ec0e;};return a0_0x50b4();}exports[a0_0x18bd23(0xb4)]=_0x4a6f80=>{const _0x67683a=a0_0x18bd23;return{'cache':{'default':_0x67683a(0x9f),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x4a6f80[_0x67683a(0xb1)]+_0x67683a(0xa2)+((_0x4a6f80===null||_0x4a6f80===void 0x0?void 0x0:_0x4a6f80[_0x67683a(0xb3)])?'-'+_0x4a6f80[_0x67683a(0xb3)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x67683a(0xac),'password':'','keyPrefix':_0x4a6f80['name']+':'+((_0x4a6f80===null||_0x4a6f80===void 0x0?void 0x0:_0x4a6f80[_0x67683a(0xb3)])?_0x4a6f80['env']+':':'')}},'memory':{'store':_0x67683a(0xa0),'options':{'max':0x64}}}}};};
1
+ function a0_0x27f7(){const _0x2960b4=['(((.+)+)+)+$','appDir','/runtime/.cache','32tkcnnB','search','7222815IFtnqE','7049714LMWJpF','toString','7758648reQltA','name','cache-manager-fs-hash','defineProperty','2319972nTURgV','127.0.0.1','524008sXipqX','__esModule','cache-manager-ioredis','default','1726152NYKsMi','env','6311532EhIVHB','file','constructor'];a0_0x27f7=function(){return _0x2960b4;};return a0_0x27f7();}const a0_0x5eb969=a0_0x1972;(function(_0x5f0926,_0x3fb0a6){const _0x14e801=a0_0x1972,_0x2d6817=_0x5f0926();while(!![]){try{const _0x5484f2=parseInt(_0x14e801(0xcf))/0x1+parseInt(_0x14e801(0xcd))/0x2+-parseInt(_0x14e801(0xd3))/0x3+-parseInt(_0x14e801(0xd5))/0x4+-parseInt(_0x14e801(0xdd))/0x5+-parseInt(_0x14e801(0xe0))/0x6+parseInt(_0x14e801(0xde))/0x7*(parseInt(_0x14e801(0xdb))/0x8);if(_0x5484f2===_0x3fb0a6)break;else _0x2d6817['push'](_0x2d6817['shift']());}catch(_0x44ade7){_0x2d6817['push'](_0x2d6817['shift']());}}}(a0_0x27f7,0xc88d8));const a0_0x3e0526=(function(){let _0x1c6031=!![];return function(_0x4e6ae5,_0x3a5bd7){const _0x3454d7=_0x1c6031?function(){if(_0x3a5bd7){const _0x26a6ac=_0x3a5bd7['apply'](_0x4e6ae5,arguments);return _0x3a5bd7=null,_0x26a6ac;}}:function(){};return _0x1c6031=![],_0x3454d7;};}()),a0_0x457e6e=a0_0x3e0526(this,function(){const _0x40558c=a0_0x1972;return a0_0x457e6e[_0x40558c(0xdf)]()[_0x40558c(0xdc)](_0x40558c(0xd8))['toString']()[_0x40558c(0xd7)](a0_0x457e6e)['search']('(((.+)+)+)+$');});function a0_0x1972(_0x2af244,_0x3b7f2f){const _0x172b43=a0_0x27f7();return a0_0x1972=function(_0x457e6e,_0x3e0526){_0x457e6e=_0x457e6e-0xcc;let _0x27f70e=_0x172b43[_0x457e6e];return _0x27f70e;},a0_0x1972(_0x2af244,_0x3b7f2f);}a0_0x457e6e();'use strict';Object[a0_0x5eb969(0xcc)](exports,a0_0x5eb969(0xd0),{'value':!![]});const fsStore=require(a0_0x5eb969(0xe2)),redisStore=require(a0_0x5eb969(0xd1));exports[a0_0x5eb969(0xd2)]=_0x5aa7c3=>{const _0x1f4c18=a0_0x5eb969;return{'cache':{'default':_0x1f4c18(0xd6),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x5aa7c3[_0x1f4c18(0xd9)]+_0x1f4c18(0xda)+((_0x5aa7c3===null||_0x5aa7c3===void 0x0?void 0x0:_0x5aa7c3[_0x1f4c18(0xd4)])?'-'+_0x5aa7c3[_0x1f4c18(0xd4)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x1f4c18(0xce),'password':'','keyPrefix':_0x5aa7c3[_0x1f4c18(0xe1)]+':'+((_0x5aa7c3===null||_0x5aa7c3===void 0x0?void 0x0:_0x5aa7c3[_0x1f4c18(0xd4)])?_0x5aa7c3['env']+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- function a1_0x569e(){var _0x39a024=['CustomConfiguration','decorate','Configuration','3389240OlHfoP','128198Gpterz','length','895780sbYIIx','21TVRGsH','5080328fnTqiC','__decorate','toString','91779QckTwv','13375611vPOpvn','anncic-api:cache','apply','2549580QckveF','@midwayjs/core','20yddERG','defineProperty','__esModule','constructor','./config/config.default','search'];a1_0x569e=function(){return _0x39a024;};return a1_0x569e();}var a1_0x378b69=a1_0x5849;function a1_0x5849(_0x1d29e1,_0x5cd8ea){var _0x3ce38d=a1_0x569e();return a1_0x5849=function(_0x3ef628,_0x14e881){_0x3ef628=_0x3ef628-0xf1;var _0x569eb5=_0x3ce38d[_0x3ef628];return _0x569eb5;},a1_0x5849(_0x1d29e1,_0x5cd8ea);}(function(_0x4daf94,_0xc0b464){var _0x3615c2=a1_0x5849,_0x4a980b=_0x4daf94();while(!![]){try{var _0x1fcd74=-parseInt(_0x3615c2(0x107))/0x1+-parseInt(_0x3615c2(0xf2))/0x2+parseInt(_0x3615c2(0xf7))/0x3*(-parseInt(_0x3615c2(0xfd))/0x4)+-parseInt(_0x3615c2(0x106))/0x5+parseInt(_0x3615c2(0xfb))/0x6*(parseInt(_0x3615c2(0xf3))/0x7)+-parseInt(_0x3615c2(0xf4))/0x8+parseInt(_0x3615c2(0xf8))/0x9;if(_0x1fcd74===_0xc0b464)break;else _0x4a980b['push'](_0x4a980b['shift']());}catch(_0x2d43a0){_0x4a980b['push'](_0x4a980b['shift']());}}}(a1_0x569e,0xaf8b3));var a1_0x14e881=(function(){var _0x4a2586=!![];return function(_0x336619,_0x51e482){var _0x2b82c4=_0x4a2586?function(){var _0x36c115=a1_0x5849;if(_0x51e482){var _0xfba50a=_0x51e482[_0x36c115(0xfa)](_0x336619,arguments);return _0x51e482=null,_0xfba50a;}}:function(){};return _0x4a2586=![],_0x2b82c4;};}()),a1_0x3ef628=a1_0x14e881(this,function(){var _0x159d6a=a1_0x5849;return a1_0x3ef628[_0x159d6a(0xf6)]()[_0x159d6a(0x102)]('(((.+)+)+)+$')[_0x159d6a(0xf6)]()[_0x159d6a(0x100)](a1_0x3ef628)[_0x159d6a(0x102)]('(((.+)+)+)+$');});a1_0x3ef628();'use strict';var __decorate=this&&this[a1_0x378b69(0xf5)]||function(_0x386ba3,_0x45908d,_0x350753,_0x592388){var _0x460651=a1_0x378b69,_0x4c7c78=arguments[_0x460651(0xf1)],_0x2fc0ff=_0x4c7c78<0x3?_0x45908d:_0x592388===null?_0x592388=Object['getOwnPropertyDescriptor'](_0x45908d,_0x350753):_0x592388,_0x1fb14a;if(typeof Reflect==='object'&&typeof Reflect[_0x460651(0x104)]==='function')_0x2fc0ff=Reflect[_0x460651(0x104)](_0x386ba3,_0x45908d,_0x350753,_0x592388);else{for(var _0x1f2054=_0x386ba3['length']-0x1;_0x1f2054>=0x0;_0x1f2054--)if(_0x1fb14a=_0x386ba3[_0x1f2054])_0x2fc0ff=(_0x4c7c78<0x3?_0x1fb14a(_0x2fc0ff):_0x4c7c78>0x3?_0x1fb14a(_0x45908d,_0x350753,_0x2fc0ff):_0x1fb14a(_0x45908d,_0x350753))||_0x2fc0ff;}return _0x4c7c78>0x3&&_0x2fc0ff&&Object[_0x460651(0xfe)](_0x45908d,_0x350753,_0x2fc0ff),_0x2fc0ff;};Object[a1_0x378b69(0xfe)](exports,a1_0x378b69(0xff),{'value':!![]}),exports[a1_0x378b69(0x103)]=void 0x0;const core_1=require(a1_0x378b69(0xfc)),ConfigDefault=require(a1_0x378b69(0x101));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x378b69(0x103)]=CustomConfiguration,exports[a1_0x378b69(0x103)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x378b69(0x105)])({'conflictCheck':![],'namespace':a1_0x378b69(0xf9),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x5e1cf5=a1_0x35a9;(function(_0x2744c3,_0x1a6bc3){var _0x4a698a=a1_0x35a9,_0x2c6f71=_0x2744c3();while(!![]){try{var _0x273338=-parseInt(_0x4a698a(0x1ec))/0x1+parseInt(_0x4a698a(0x1f2))/0x2*(-parseInt(_0x4a698a(0x1e6))/0x3)+parseInt(_0x4a698a(0x1f5))/0x4*(parseInt(_0x4a698a(0x1ee))/0x5)+-parseInt(_0x4a698a(0x1df))/0x6+-parseInt(_0x4a698a(0x1e8))/0x7+parseInt(_0x4a698a(0x1ea))/0x8+parseInt(_0x4a698a(0x1f3))/0x9;if(_0x273338===_0x1a6bc3)break;else _0x2c6f71['push'](_0x2c6f71['shift']());}catch(_0x39a3d5){_0x2c6f71['push'](_0x2c6f71['shift']());}}}(a1_0x177f,0x972d1));var a1_0x2a5419=(function(){var _0x5504bb=!![];return function(_0x445d4e,_0x1c4685){var _0x479bbe=_0x5504bb?function(){if(_0x1c4685){var _0x3ab277=_0x1c4685['apply'](_0x445d4e,arguments);return _0x1c4685=null,_0x3ab277;}}:function(){};return _0x5504bb=![],_0x479bbe;};}()),a1_0x26d5bf=a1_0x2a5419(this,function(){var _0x11b4a8=a1_0x35a9;return a1_0x26d5bf[_0x11b4a8(0x1e9)]()['search']('(((.+)+)+)+$')[_0x11b4a8(0x1e9)]()['constructor'](a1_0x26d5bf)['search'](_0x11b4a8(0x1eb));});function a1_0x35a9(_0x4d373b,_0x348084){var _0x430f0d=a1_0x177f();return a1_0x35a9=function(_0x26d5bf,_0x2a5419){_0x26d5bf=_0x26d5bf-0x1de;var _0x177fd7=_0x430f0d[_0x26d5bf];return _0x177fd7;},a1_0x35a9(_0x4d373b,_0x348084);}a1_0x26d5bf();function a1_0x177f(){var _0x45d2ab=['(((.+)+)+)+$','275656WkzUrW','anncic-api:cache','280pPmXAc','decorate','Configuration','defineProperty','13902QLqcie','7001667wnMSsd','__decorate','37896opOyBg','__esModule','4590960bqdxfe','object','@midwayjs/core','CustomConfiguration','length','function','getOwnPropertyDescriptor','183xJMYlO','./config/config.default','2343117rNFsFM','toString','8882144bWafye'];a1_0x177f=function(){return _0x45d2ab;};return a1_0x177f();}'use strict';var __decorate=this&&this[a1_0x5e1cf5(0x1f4)]||function(_0x3f6504,_0x6c23c4,_0x59002c,_0x4c45e9){var _0x284c1b=a1_0x5e1cf5,_0x27a095=arguments[_0x284c1b(0x1e3)],_0x46f908=_0x27a095<0x3?_0x6c23c4:_0x4c45e9===null?_0x4c45e9=Object[_0x284c1b(0x1e5)](_0x6c23c4,_0x59002c):_0x4c45e9,_0x4ed1f2;if(typeof Reflect===_0x284c1b(0x1e0)&&typeof Reflect[_0x284c1b(0x1ef)]===_0x284c1b(0x1e4))_0x46f908=Reflect['decorate'](_0x3f6504,_0x6c23c4,_0x59002c,_0x4c45e9);else{for(var _0x321e98=_0x3f6504['length']-0x1;_0x321e98>=0x0;_0x321e98--)if(_0x4ed1f2=_0x3f6504[_0x321e98])_0x46f908=(_0x27a095<0x3?_0x4ed1f2(_0x46f908):_0x27a095>0x3?_0x4ed1f2(_0x6c23c4,_0x59002c,_0x46f908):_0x4ed1f2(_0x6c23c4,_0x59002c))||_0x46f908;}return _0x27a095>0x3&&_0x46f908&&Object[_0x284c1b(0x1f1)](_0x6c23c4,_0x59002c,_0x46f908),_0x46f908;};Object[a1_0x5e1cf5(0x1f1)](exports,a1_0x5e1cf5(0x1de),{'value':!![]}),exports[a1_0x5e1cf5(0x1e2)]=void 0x0;const core_1=require(a1_0x5e1cf5(0x1e1)),ConfigDefault=require(a1_0x5e1cf5(0x1e7));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x5e1cf5(0x1e2)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x5e1cf5(0x1f0)])({'conflictCheck':![],'namespace':a1_0x5e1cf5(0x1ed),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x12eb80=a2_0x48d7;(function(_0xdf26b9,_0x1e6aa7){const _0x2bd326=a2_0x48d7,_0x3b22a0=_0xdf26b9();while(!![]){try{const _0x368f5d=-parseInt(_0x2bd326(0xee))/0x1+parseInt(_0x2bd326(0xd9))/0x2*(parseInt(_0x2bd326(0xdc))/0x3)+-parseInt(_0x2bd326(0xd5))/0x4*(parseInt(_0x2bd326(0xd8))/0x5)+parseInt(_0x2bd326(0xef))/0x6*(parseInt(_0x2bd326(0xd1))/0x7)+parseInt(_0x2bd326(0xf2))/0x8+parseInt(_0x2bd326(0xf1))/0x9*(-parseInt(_0x2bd326(0xe7))/0xa)+-parseInt(_0x2bd326(0xe1))/0xb*(-parseInt(_0x2bd326(0xd7))/0xc);if(_0x368f5d===_0x1e6aa7)break;else _0x3b22a0['push'](_0x3b22a0['shift']());}catch(_0x301ac6){_0x3b22a0['push'](_0x3b22a0['shift']());}}}(a2_0x4a1f,0x43560));const a2_0x39a83e=(function(){let _0x13b9ca=!![];return function(_0x31b1bb,_0x3edd68){const _0x10501a=_0x13b9ca?function(){const _0x39381c=a2_0x48d7;if(_0x3edd68){const _0x4ed099=_0x3edd68[_0x39381c(0xe5)](_0x31b1bb,arguments);return _0x3edd68=null,_0x4ed099;}}:function(){};return _0x13b9ca=![],_0x10501a;};}()),a2_0x3a4e62=a2_0x39a83e(this,function(){const _0x48bfea=a2_0x48d7;return a2_0x3a4e62['toString']()[_0x48bfea(0xdd)]('(((.+)+)+)+$')[_0x48bfea(0xf0)]()[_0x48bfea(0xeb)](a2_0x3a4e62)[_0x48bfea(0xdd)](_0x48bfea(0xd3));});a2_0x3a4e62();function a2_0x4a1f(){const _0x277476=['247765qScxDJ','getAsync','(((.+)+)+)+$','parse','12AIcyeq','CacheService','60zYRMnH','744460aPFThF','488RkZNQn','set','app','2985pVsiQy','search','stringify','Method::Decorator','defineProperty','1808829qlZxNx','@midwayjs/core','Cache','get','apply','getApplicationContext','64270YlJvJq','REQUEST_OBJ_CTX_KEY','__esModule','value','constructor','../service/CacheService','MD5','404190VwvjGd','6FutDnL','toString','540EUhwAa','3295392BegqRl'];a2_0x4a1f=function(){return _0x277476;};return a2_0x4a1f();}'use strict';Object[a2_0x12eb80(0xe0)](exports,a2_0x12eb80(0xe9),{'value':!![]}),exports[a2_0x12eb80(0xe3)]=Cache;function a2_0x48d7(_0x14e92c,_0x172a17){const _0x5831e=a2_0x4a1f();return a2_0x48d7=function(_0x3a4e62,_0x39a83e){_0x3a4e62=_0x3a4e62-0xd1;let _0x4a1f3a=_0x5831e[_0x3a4e62];return _0x4a1f3a;},a2_0x48d7(_0x14e92c,_0x172a17);}const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x12eb80(0xec)),core_1=require(a2_0x12eb80(0xe2));function json_encode(_0x526b74){try{return JSON['stringify'](_0x526b74);}catch(_0x99f877){return undefined;}}function Cache(_0x1af005,_0x214665){return(_0x140896,_0x50a252,_0x429980)=>{const _0x3768d3=a2_0x48d7,_0x56b963=_0x429980[_0x3768d3(0xea)];return _0x429980[_0x3768d3(0xea)]=async function(..._0x398c03){const _0x5b8f3f=_0x3768d3;_0x1af005=(_0x1af005?''+_0x1af005:''+(_0x50a252||''))+'.'+(0x0,crypto_js_1[_0x5b8f3f(0xed)])(json_encode(_0x398c03))['toString']();let _0x22cb56=await this[core_1[_0x5b8f3f(0xe8)]][_0x5b8f3f(0xdb)][_0x5b8f3f(0xe6)]()[_0x5b8f3f(0xd2)](CacheService_1[_0x5b8f3f(0xd6)]),_0x5f1973=await _0x22cb56['use'](_0x5b8f3f(0xdf))[_0x5b8f3f(0xe4)](_0x1af005);if(_0x5f1973)return JSON[_0x5b8f3f(0xd4)](_0x5f1973);else _0x5f1973=await _0x56b963[_0x5b8f3f(0xe5)](this,[..._0x398c03]),await _0x22cb56['use'](_0x5b8f3f(0xdf))[_0x5b8f3f(0xda)](_0x1af005,JSON[_0x5b8f3f(0xde)](_0x5f1973),_0x214665);return _0x5f1973;},_0x429980;};}
1
+ const a2_0x13d8ea=a2_0x254e;(function(_0xf804d0,_0x14e3b1){const _0x2ed903=a2_0x254e,_0x3edb6a=_0xf804d0();while(!![]){try{const _0x5a55e8=parseInt(_0x2ed903(0xfc))/0x1*(parseInt(_0x2ed903(0x109))/0x2)+-parseInt(_0x2ed903(0x10d))/0x3+-parseInt(_0x2ed903(0x10a))/0x4*(-parseInt(_0x2ed903(0x103))/0x5)+-parseInt(_0x2ed903(0x10b))/0x6*(parseInt(_0x2ed903(0x108))/0x7)+parseInt(_0x2ed903(0x112))/0x8+parseInt(_0x2ed903(0xf7))/0x9*(-parseInt(_0x2ed903(0x115))/0xa)+parseInt(_0x2ed903(0x114))/0xb*(parseInt(_0x2ed903(0x101))/0xc);if(_0x5a55e8===_0x14e3b1)break;else _0x3edb6a['push'](_0x3edb6a['shift']());}catch(_0x5ca720){_0x3edb6a['push'](_0x3edb6a['shift']());}}}(a2_0x4a3d,0xc3c09));const a2_0x2751e4=(function(){let _0x333fac=!![];return function(_0xeb0b57,_0x9f584c){const _0x1cd8de=_0x333fac?function(){const _0x247930=a2_0x254e;if(_0x9f584c){const _0x101f12=_0x9f584c[_0x247930(0xfa)](_0xeb0b57,arguments);return _0x9f584c=null,_0x101f12;}}:function(){};return _0x333fac=![],_0x1cd8de;};}()),a2_0x344f10=a2_0x2751e4(this,function(){const _0x280258=a2_0x254e;return a2_0x344f10[_0x280258(0x104)]()[_0x280258(0x107)](_0x280258(0xff))[_0x280258(0x104)]()[_0x280258(0x106)](a2_0x344f10)[_0x280258(0x107)](_0x280258(0xff));});a2_0x344f10();'use strict';Object[a2_0x13d8ea(0xfb)](exports,'__esModule',{'value':!![]}),exports[a2_0x13d8ea(0x10c)]=Cache;const crypto_js_1=require(a2_0x13d8ea(0x105)),CacheService_1=require(a2_0x13d8ea(0x110)),core_1=require(a2_0x13d8ea(0xfe));function json_encode(_0x3fe36d){const _0x21bc7a=a2_0x13d8ea;try{return JSON[_0x21bc7a(0x102)](_0x3fe36d);}catch(_0x2cfc3d){return undefined;}}function Cache(_0x5e1ba3,_0x1441c0){return(_0x5972c0,_0x140760,_0x6fdca2)=>{const _0x565542=_0x6fdca2['value'];return _0x6fdca2['value']=async function(..._0x2f7029){const _0x286796=a2_0x254e;_0x5e1ba3=(_0x5e1ba3?''+_0x5e1ba3:''+(_0x140760||''))+'.'+(0x0,crypto_js_1[_0x286796(0x116)])(json_encode(_0x2f7029))[_0x286796(0x104)]();let _0x4a9811=await this[core_1[_0x286796(0xf9)]][_0x286796(0x100)][_0x286796(0x10f)]()['getAsync'](CacheService_1[_0x286796(0x111)]),_0x3f5d17=await _0x4a9811[_0x286796(0xf8)](_0x286796(0x10e))[_0x286796(0xfd)](_0x5e1ba3);if(_0x3f5d17)return JSON[_0x286796(0x113)](_0x3f5d17);else _0x3f5d17=await _0x565542[_0x286796(0xfa)](this,[..._0x2f7029]),await _0x4a9811['use'](_0x286796(0x10e))['set'](_0x5e1ba3,JSON[_0x286796(0x102)](_0x3f5d17),_0x1441c0);return _0x3f5d17;},_0x6fdca2;};}function a2_0x254e(_0x2ea257,_0x1af17e){const _0xd83bf4=a2_0x4a3d();return a2_0x254e=function(_0x344f10,_0x2751e4){_0x344f10=_0x344f10-0xf7;let _0x4a3dbe=_0xd83bf4[_0x344f10];return _0x4a3dbe;},a2_0x254e(_0x2ea257,_0x1af17e);}function a2_0x4a3d(){const _0x31f0ae=['parse','22KWpJda','1482830pEjwIS','MD5','72XMXbFk','use','REQUEST_OBJ_CTX_KEY','apply','defineProperty','6227TLdnnc','get','@midwayjs/core','(((.+)+)+)+$','app','3802236eiIiwF','stringify','10TxGsrI','toString','crypto-js','constructor','search','13356LWezOk','322jaNlfR','538924PNMJZF','3858DIhgcR','Cache','139653ScfJFe','Method::Decorator','getApplicationContext','../service/CacheService','CacheService','10845960iuUmCo'];a2_0x4a3d=function(){return _0x31f0ae;};return a2_0x4a3d();}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function a3_0x38b6(){var _0x454fd6=['(((.+)+)+)+$','./decorator/Cache','toString','CacheService','__esModule','1GoaXRt','CustomConfiguration','1837126dajWNM','178275qiMiyn','66556RlgUbo','defineProperty','13984110DchaOT','569865snghgt','Configuration','Cache','constructor','./configuration','apply','552ibAVMb','186256WGBtnC','162qOwMYw','./service/CacheService','1584608rcUQwo'];a3_0x38b6=function(){return _0x454fd6;};return a3_0x38b6();}var a3_0x37565c=a3_0x3b55;(function(_0x6e204a,_0x29e5a2){var _0xc7a62=a3_0x3b55,_0x102a3e=_0x6e204a();while(!![]){try{var _0x2df755=parseInt(_0xc7a62(0xbd))/0x1*(-parseInt(_0xc7a62(0xbf))/0x2)+parseInt(_0xc7a62(0xc4))/0x3+parseInt(_0xc7a62(0xce))/0x4+-parseInt(_0xc7a62(0xc0))/0x5+-parseInt(_0xc7a62(0xca))/0x6*(parseInt(_0xc7a62(0xc1))/0x7)+parseInt(_0xc7a62(0xcb))/0x8*(parseInt(_0xc7a62(0xcc))/0x9)+parseInt(_0xc7a62(0xc3))/0xa;if(_0x2df755===_0x29e5a2)break;else _0x102a3e['push'](_0x102a3e['shift']());}catch(_0x389d7d){_0x102a3e['push'](_0x102a3e['shift']());}}}(a3_0x38b6,0x8c4b0));var a3_0xe9d62c=(function(){var _0x889f2e=!![];return function(_0x30df1e,_0x406f6c){var _0x154bee=_0x889f2e?function(){var _0x1ea52e=a3_0x3b55;if(_0x406f6c){var _0x10ec7f=_0x406f6c[_0x1ea52e(0xc9)](_0x30df1e,arguments);return _0x406f6c=null,_0x10ec7f;}}:function(){};return _0x889f2e=![],_0x154bee;};}()),a3_0x89f5c2=a3_0xe9d62c(this,function(){var _0x3645b4=a3_0x3b55;return a3_0x89f5c2['toString']()['search'](_0x3645b4(0xcf))[_0x3645b4(0xba)]()[_0x3645b4(0xc7)](a3_0x89f5c2)['search'](_0x3645b4(0xcf));});a3_0x89f5c2();'use strict';Object[a3_0x37565c(0xc2)](exports,a3_0x37565c(0xbc),{'value':!![]}),exports[a3_0x37565c(0xbb)]=exports[a3_0x37565c(0xc6)]=exports[a3_0x37565c(0xc5)]=void 0x0;var configuration_1=require(a3_0x37565c(0xc8));Object[a3_0x37565c(0xc2)](exports,a3_0x37565c(0xc5),{'enumerable':!![],'get':function(){var _0x11abbe=a3_0x37565c;return configuration_1[_0x11abbe(0xbe)];}});var Cache_1=require(a3_0x37565c(0xb9));function a3_0x3b55(_0x5f199b,_0x312fc4){var _0x144f7b=a3_0x38b6();return a3_0x3b55=function(_0x89f5c2,_0xe9d62c){_0x89f5c2=_0x89f5c2-0xb9;var _0x38b606=_0x144f7b[_0x89f5c2];return _0x38b606;},a3_0x3b55(_0x5f199b,_0x312fc4);}Object[a3_0x37565c(0xc2)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x3eda46=a3_0x37565c;return Cache_1[_0x3eda46(0xc6)];}});var CacheService_1=require(a3_0x37565c(0xcd));Object[a3_0x37565c(0xc2)](exports,a3_0x37565c(0xbb),{'enumerable':!![],'get':function(){var _0x35a7f6=a3_0x37565c;return CacheService_1[_0x35a7f6(0xbb)];}});
1
+ function a3_0x5ee3(){var _0x3c72f2=['defineProperty','toString','1523718EpitWW','./service/CacheService','__esModule','Cache','apply','search','CacheService','3344967zIfLbl','723464qMiBCk','38124xhtgKy','2274560ubFUUo','14WWDEvf','(((.+)+)+)+$','2311156MwqcpX','./configuration','./decorator/Cache','3MRHedQ','8ReMGVU','30XAfYig','Configuration','3314212LspQdn'];a3_0x5ee3=function(){return _0x3c72f2;};return a3_0x5ee3();}var a3_0x391ae4=a3_0x7ae7;(function(_0x534a35,_0x1537e1){var _0x5bc83b=a3_0x7ae7,_0x4f6773=_0x534a35();while(!![]){try{var _0x2370e6=parseInt(_0x5bc83b(0xe6))/0x1+-parseInt(_0x5bc83b(0xe5))/0x2*(parseInt(_0x5bc83b(0xed))/0x3)+parseInt(_0x5bc83b(0xea))/0x4+parseInt(_0x5bc83b(0xe7))/0x5+parseInt(_0x5bc83b(0xf4))/0x6*(parseInt(_0x5bc83b(0xe8))/0x7)+parseInt(_0x5bc83b(0xee))/0x8*(parseInt(_0x5bc83b(0xe4))/0x9)+-parseInt(_0x5bc83b(0xef))/0xa*(parseInt(_0x5bc83b(0xf1))/0xb);if(_0x2370e6===_0x1537e1)break;else _0x4f6773['push'](_0x4f6773['shift']());}catch(_0x50ab20){_0x4f6773['push'](_0x4f6773['shift']());}}}(a3_0x5ee3,0xa72f2));var a3_0x4ac861=(function(){var _0xefb59b=!![];return function(_0x564fc3,_0x4a3b8c){var _0x57b3ce=_0xefb59b?function(){var _0x2c3b94=a3_0x7ae7;if(_0x4a3b8c){var _0x3f604f=_0x4a3b8c[_0x2c3b94(0xf8)](_0x564fc3,arguments);return _0x4a3b8c=null,_0x3f604f;}}:function(){};return _0xefb59b=![],_0x57b3ce;};}()),a3_0x5d7cc6=a3_0x4ac861(this,function(){var _0x4809cf=a3_0x7ae7;return a3_0x5d7cc6[_0x4809cf(0xf3)]()[_0x4809cf(0xe2)](_0x4809cf(0xe9))[_0x4809cf(0xf3)]()['constructor'](a3_0x5d7cc6)['search']('(((.+)+)+)+$');});a3_0x5d7cc6();'use strict';function a3_0x7ae7(_0x2a5f62,_0x5d9a00){var _0x2e598c=a3_0x5ee3();return a3_0x7ae7=function(_0x5d7cc6,_0x4ac861){_0x5d7cc6=_0x5d7cc6-0xe2;var _0x5ee35e=_0x2e598c[_0x5d7cc6];return _0x5ee35e;},a3_0x7ae7(_0x2a5f62,_0x5d9a00);}Object[a3_0x391ae4(0xf2)](exports,a3_0x391ae4(0xf6),{'value':!![]}),exports['CacheService']=exports[a3_0x391ae4(0xf7)]=exports[a3_0x391ae4(0xf0)]=void 0x0;var configuration_1=require(a3_0x391ae4(0xeb));Object[a3_0x391ae4(0xf2)](exports,a3_0x391ae4(0xf0),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x391ae4(0xec));Object[a3_0x391ae4(0xf2)](exports,a3_0x391ae4(0xf7),{'enumerable':!![],'get':function(){var _0x5c8e32=a3_0x391ae4;return Cache_1[_0x5c8e32(0xf7)];}});var CacheService_1=require(a3_0x391ae4(0xf5));Object[a3_0x391ae4(0xf2)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x3eafbb=a3_0x391ae4;return CacheService_1[_0x3eafbb(0xe3)];}});
@@ -1 +1 @@
1
- var a4_0x78331d=a4_0x5a8a;(function(_0x188938,_0x502342){var _0x388b06=a4_0x5a8a,_0x1f2a6c=_0x188938();while(!![]){try{var _0x12a500=-parseInt(_0x388b06(0x20a))/0x1+parseInt(_0x388b06(0x22f))/0x2*(parseInt(_0x388b06(0x207))/0x3)+-parseInt(_0x388b06(0x22e))/0x4*(-parseInt(_0x388b06(0x22d))/0x5)+parseInt(_0x388b06(0x201))/0x6+parseInt(_0x388b06(0x20f))/0x7+parseInt(_0x388b06(0x20c))/0x8*(parseInt(_0x388b06(0x1ff))/0x9)+-parseInt(_0x388b06(0x22b))/0xa*(parseInt(_0x388b06(0x1f9))/0xb);if(_0x12a500===_0x502342)break;else _0x1f2a6c['push'](_0x1f2a6c['shift']());}catch(_0x27cc7e){_0x1f2a6c['push'](_0x1f2a6c['shift']());}}}(a4_0x5531,0x2546d));var a4_0x50ed39=(function(){var _0xa486f3=!![];return function(_0x333048,_0x2c9bde){var _0x4f4319=_0xa486f3?function(){if(_0x2c9bde){var _0x170e10=_0x2c9bde['apply'](_0x333048,arguments);return _0x2c9bde=null,_0x170e10;}}:function(){};return _0xa486f3=![],_0x4f4319;};}()),a4_0xa889fa=a4_0x50ed39(this,function(){var _0xbddf81=a4_0x5a8a;return a4_0xa889fa[_0xbddf81(0x226)]()[_0xbddf81(0x21b)](_0xbddf81(0x228))[_0xbddf81(0x226)]()['constructor'](a4_0xa889fa)[_0xbddf81(0x21b)]('(((.+)+)+)+$');});a4_0xa889fa();'use strict';function a4_0x5a8a(_0xeeee80,_0x3d7c2f){var _0x27eed4=a4_0x5531();return a4_0x5a8a=function(_0xa889fa,_0x50ed39){_0xa889fa=_0xa889fa-0x1f2;var _0x553184=_0x27eed4[_0xa889fa];return _0x553184;},a4_0x5a8a(_0xeeee80,_0x3d7c2f);}var __decorate=this&&this[a4_0x78331d(0x206)]||function(_0x2d1316,_0x65ca43,_0x21391c,_0x4a7cc4){var _0x8cc5a9=a4_0x78331d,_0x252b92=arguments[_0x8cc5a9(0x21e)],_0x53136f=_0x252b92<0x3?_0x65ca43:_0x4a7cc4===null?_0x4a7cc4=Object[_0x8cc5a9(0x1fd)](_0x65ca43,_0x21391c):_0x4a7cc4,_0x947fa2;if(typeof Reflect===_0x8cc5a9(0x22a)&&typeof Reflect[_0x8cc5a9(0x1fb)]===_0x8cc5a9(0x223))_0x53136f=Reflect[_0x8cc5a9(0x1fb)](_0x2d1316,_0x65ca43,_0x21391c,_0x4a7cc4);else{for(var _0x16c1f0=_0x2d1316[_0x8cc5a9(0x21e)]-0x1;_0x16c1f0>=0x0;_0x16c1f0--)if(_0x947fa2=_0x2d1316[_0x16c1f0])_0x53136f=(_0x252b92<0x3?_0x947fa2(_0x53136f):_0x252b92>0x3?_0x947fa2(_0x65ca43,_0x21391c,_0x53136f):_0x947fa2(_0x65ca43,_0x21391c))||_0x53136f;}return _0x252b92>0x3&&_0x53136f&&Object['defineProperty'](_0x65ca43,_0x21391c,_0x53136f),_0x53136f;},__metadata=this&&this[a4_0x78331d(0x20d)]||function(_0x315065,_0x108d5f){var _0x3d21e1=a4_0x78331d;if(typeof Reflect===_0x3d21e1(0x22a)&&typeof Reflect[_0x3d21e1(0x1f5)]==='function')return Reflect['metadata'](_0x315065,_0x108d5f);};Object[a4_0x78331d(0x1f6)](exports,a4_0x78331d(0x224),{'value':!![]}),exports['Cache']=exports[a4_0x78331d(0x210)]=void 0x0,exports[a4_0x78331d(0x205)]=json_encode,exports[a4_0x78331d(0x1f2)]=json_decode;function a4_0x5531(){var _0x3ce432=['caching','get','name','json_encode','__decorate','1728oVoHQR','shift','options','118466mUfiEn','cache','1172240BrumKb','__metadata','reset','142807unNwXC','CacheService','rpush','Singleton','@midwayjs/core','Cache','del','default','clients','lpop','push','redis','search','use','stringify','length','design:type','ScopeEnum','Scope','map','function','__esModule','undefined','toString','config','(((.+)+)+)+$','getClient','object','77020uQctNK','prototype','275wivvMS','14044IBpCfB','62JSTaHx','lrange','json_decode','parse','cache-manager','metadata','defineProperty','prefix','hdel','572BNLZMz','file','decorate','set','getOwnPropertyDescriptor','store','18vOwslw','filter','883398DpXWnk'];a4_0x5531=function(){return _0x3ce432;};return a4_0x5531();}const cacheManager=require(a4_0x78331d(0x1f4)),core_1=require(a4_0x78331d(0x213));let CacheService=class CacheService{constructor(){var _0x23fd9c=a4_0x78331d;this[_0x23fd9c(0x20b)]=undefined,this[_0x23fd9c(0x217)]=new Map();}[a4_0x78331d(0x21c)](_0x2201e8){var _0x3448aa=a4_0x78331d,_0x5bb7b6,_0x3fd5ba;if(!this['cache']){const _0x467242=((_0x5bb7b6=this['config']['stores'])===null||_0x5bb7b6===void 0x0?void 0x0:_0x5bb7b6[(_0x3fd5ba=this[_0x3448aa(0x227)])===null||_0x3fd5ba===void 0x0?void 0x0:_0x3fd5ba[_0x3448aa(0x216)]])||this['config']['stores'][_0x3448aa(0x1fa)];this['cache']=cacheManager[_0x3448aa(0x202)]({..._0x467242[_0x3448aa(0x209)],'store':_0x467242[_0x3448aa(0x1fe)]});}return!this[_0x3448aa(0x217)]['has'](_0x2201e8)&&this[_0x3448aa(0x217)][_0x3448aa(0x1fc)](_0x2201e8,new Cache(_0x2201e8,this[_0x3448aa(0x20b)])),this['clients'][_0x3448aa(0x203)](_0x2201e8);}async[a4_0x78331d(0x20e)](){var _0x2365f2=a4_0x78331d;return await this[_0x2365f2(0x20b)][_0x2365f2(0x20e)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1['Config'])('cache'),__metadata(a4_0x78331d(0x21f),Object)],CacheService[a4_0x78331d(0x22c)],a4_0x78331d(0x227),void 0x0),exports[a4_0x78331d(0x210)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x78331d(0x221)])(core_1[a4_0x78331d(0x220)][a4_0x78331d(0x212)])],CacheService);class Cache{constructor(_0x5e2b35,_0x3c2e5e){var _0x1845ab=a4_0x78331d;this[_0x1845ab(0x20b)]=_0x3c2e5e,this[_0x1845ab(0x1f7)]=_0x5e2b35;}async[a4_0x78331d(0x215)](_0x5d7976){var _0x7f85d=a4_0x78331d;return await this[_0x7f85d(0x20b)]['del'](this[_0x7f85d(0x1f7)]+':'+_0x5d7976);}async['set'](_0x33ac20,_0x32fead,_0x4fa525){var _0x42138e=a4_0x78331d,_0x5b962e,_0x1d1e25;return((_0x1d1e25=(_0x5b962e=this[_0x42138e(0x20b)])===null||_0x5b962e===void 0x0?void 0x0:_0x5b962e[_0x42138e(0x1fe)])===null||_0x1d1e25===void 0x0?void 0x0:_0x1d1e25['name'])==_0x42138e(0x21a)?await this['cache']['set'](this[_0x42138e(0x1f7)]+':'+_0x33ac20,_0x32fead,{'ttl':_0x4fa525}):await this[_0x42138e(0x20b)][_0x42138e(0x1fc)](this[_0x42138e(0x1f7)]+':'+_0x33ac20,_0x32fead,{'ttl':_0x4fa525});}async['get'](_0x1d0211,_0x21a926,_0x2023a8){return new Promise((_0x37dbce,_0x4ca8da)=>{var _0x4fda53=a4_0x5a8a;this[_0x4fda53(0x20b)][_0x4fda53(0x203)](this[_0x4fda53(0x1f7)]+':'+_0x1d0211,async(_0x45c81d,_0x3524d5)=>{var _0x1ac6a5=_0x4fda53;_0x45c81d?_0x4ca8da(_0x45c81d):((_0x3524d5===undefined||_0x3524d5===null)&&(typeof _0x21a926==_0x1ac6a5(0x223)?(_0x3524d5=await _0x21a926()['catch'](_0x3618cd=>_0x4ca8da(_0x3618cd)),typeof _0x3524d5!=_0x1ac6a5(0x225)&&await this[_0x1ac6a5(0x1fc)](_0x1d0211,_0x3524d5,_0x2023a8)):_0x3524d5=_0x21a926),_0x37dbce(_0x3524d5));});});}async[a4_0x78331d(0x1f8)](_0x4d2f11,_0x1ec37c){var _0x382732=a4_0x78331d;return await this[_0x382732(0x215)](_0x4d2f11+'#'+_0x1ec37c);}async['hset'](_0x59dea1,_0x4aa4ec,_0x57696a,_0x4ce67e){var _0x298c77=a4_0x78331d;return await this[_0x298c77(0x1fc)](_0x59dea1+'#'+_0x4aa4ec,_0x57696a,_0x4ce67e);}async['hget'](_0xe1c09d,_0x5d6252,_0x5e36d5,_0x13f515){var _0x2bfc4f=a4_0x78331d;return await this[_0x2bfc4f(0x203)](_0xe1c09d+'#'+_0x5d6252,_0x5e36d5,_0x13f515);}['list'](_0x157965){const _0x393d32={'all':async()=>{var _0x155cc7=a4_0x5a8a,_0x306bc4,_0x3c7801,_0x55528a,_0x13d60a,_0x2226a8;return((_0x3c7801=(_0x306bc4=this['cache'])===null||_0x306bc4===void 0x0?void 0x0:_0x306bc4[_0x155cc7(0x1fe)])===null||_0x3c7801===void 0x0?void 0x0:_0x3c7801['name'])==_0x155cc7(0x21a)?(await((_0x2226a8=(_0x13d60a=(_0x55528a=this===null||this===void 0x0?void 0x0:this[_0x155cc7(0x20b)])===null||_0x55528a===void 0x0?void 0x0:_0x55528a[_0x155cc7(0x1fe)])===null||_0x13d60a===void 0x0?void 0x0:_0x13d60a[_0x155cc7(0x229)]())===null||_0x2226a8===void 0x0?void 0x0:_0x2226a8[_0x155cc7(0x230)](this[_0x155cc7(0x1f7)]+':'+_0x157965,0x0,-0x1))||[])[_0x155cc7(0x222)](_0x494081=>json_decode(_0x494081)):await this[_0x155cc7(0x203)](_0x157965,[]);},'pop':async()=>{var _0x24fee0=a4_0x5a8a,_0x462859,_0x1b7fd8,_0xf426a9,_0x255bf4,_0x450aa8;if(((_0x1b7fd8=(_0x462859=this['cache'])===null||_0x462859===void 0x0?void 0x0:_0x462859[_0x24fee0(0x1fe)])===null||_0x1b7fd8===void 0x0?void 0x0:_0x1b7fd8[_0x24fee0(0x204)])=='redis')return json_decode(await((_0x450aa8=(_0x255bf4=(_0xf426a9=this===null||this===void 0x0?void 0x0:this[_0x24fee0(0x20b)])===null||_0xf426a9===void 0x0?void 0x0:_0xf426a9[_0x24fee0(0x1fe)])===null||_0x255bf4===void 0x0?void 0x0:_0x255bf4[_0x24fee0(0x229)]())===null||_0x450aa8===void 0x0?void 0x0:_0x450aa8[_0x24fee0(0x218)](this['prefix']+':'+_0x157965)));else{let _0x418d58=await this[_0x24fee0(0x203)](_0x157965,[]),_0x2103f1=_0x418d58[_0x24fee0(0x208)]();return await this[_0x24fee0(0x1fc)](_0x157965,_0x418d58),_0x2103f1;}},'push':async(..._0x56b8b3)=>{var _0x121268=a4_0x5a8a,_0x57cea5,_0x3a73f4,_0x5c9fc8,_0x404fde,_0xfd1829;const _0x423cf8=_0x56b8b3[_0x121268(0x200)](_0xb63c3c=>_0xb63c3c!==undefined&&_0xb63c3c!==null);if(((_0x3a73f4=(_0x57cea5=this['cache'])===null||_0x57cea5===void 0x0?void 0x0:_0x57cea5[_0x121268(0x1fe)])===null||_0x3a73f4===void 0x0?void 0x0:_0x3a73f4[_0x121268(0x204)])==_0x121268(0x21a))return await((_0xfd1829=(_0x404fde=(_0x5c9fc8=this===null||this===void 0x0?void 0x0:this[_0x121268(0x20b)])===null||_0x5c9fc8===void 0x0?void 0x0:_0x5c9fc8['store'])===null||_0x404fde===void 0x0?void 0x0:_0x404fde[_0x121268(0x229)]())===null||_0xfd1829===void 0x0?void 0x0:_0xfd1829[_0x121268(0x211)](this[_0x121268(0x1f7)]+':'+_0x157965,..._0x423cf8['map'](_0x158084=>json_encode(_0x158084)))),_0x423cf8;else{let _0xa6f8bf=await this[_0x121268(0x203)](_0x157965,[]);return _0xa6f8bf[_0x121268(0x219)](..._0x423cf8),await this['set'](_0x157965,_0xa6f8bf),_0xa6f8bf;}}};return _0x393d32;}}exports[a4_0x78331d(0x214)]=Cache;function json_encode(_0x3124b5){var _0x246b39=a4_0x78331d;try{return JSON[_0x246b39(0x21d)](_0x3124b5);}catch(_0x49a44f){return undefined;}}function json_decode(_0x20f051){var _0x79003c=a4_0x78331d;try{return JSON[_0x79003c(0x1f3)](_0x20f051);}catch(_0x1db4b2){return undefined;}}
1
+ var a4_0xcf886=a4_0x2ede;(function(_0x453b7e,_0x370610){var _0x3c08aa=a4_0x2ede,_0x3d800d=_0x453b7e();while(!![]){try{var _0x49e87d=-parseInt(_0x3c08aa(0x13e))/0x1*(-parseInt(_0x3c08aa(0x143))/0x2)+-parseInt(_0x3c08aa(0x12a))/0x3*(-parseInt(_0x3c08aa(0x144))/0x4)+parseInt(_0x3c08aa(0x14b))/0x5*(-parseInt(_0x3c08aa(0x11b))/0x6)+parseInt(_0x3c08aa(0x127))/0x7*(-parseInt(_0x3c08aa(0x14a))/0x8)+-parseInt(_0x3c08aa(0x125))/0x9*(-parseInt(_0x3c08aa(0x147))/0xa)+-parseInt(_0x3c08aa(0x119))/0xb*(parseInt(_0x3c08aa(0x139))/0xc)+-parseInt(_0x3c08aa(0x148))/0xd*(-parseInt(_0x3c08aa(0x129))/0xe);if(_0x49e87d===_0x370610)break;else _0x3d800d['push'](_0x3d800d['shift']());}catch(_0x154f4a){_0x3d800d['push'](_0x3d800d['shift']());}}}(a4_0x4d76,0x340f0));var a4_0x539c20=(function(){var _0x578213=!![];return function(_0x56d1a8,_0x4bf861){var _0x25746b=_0x578213?function(){var _0xd0c591=a4_0x2ede;if(_0x4bf861){var _0x22aa10=_0x4bf861[_0xd0c591(0x14e)](_0x56d1a8,arguments);return _0x4bf861=null,_0x22aa10;}}:function(){};return _0x578213=![],_0x25746b;};}()),a4_0x4596c4=a4_0x539c20(this,function(){var _0x39afca=a4_0x2ede;return a4_0x4596c4[_0x39afca(0x13b)]()[_0x39afca(0x142)](_0x39afca(0x128))[_0x39afca(0x13b)]()[_0x39afca(0x113)](a4_0x4596c4)[_0x39afca(0x142)](_0x39afca(0x128));});function a4_0x2ede(_0x198155,_0x399320){var _0x2e88b9=a4_0x4d76();return a4_0x2ede=function(_0x4596c4,_0x539c20){_0x4596c4=_0x4596c4-0x10a;var _0x4d7665=_0x2e88b9[_0x4596c4];return _0x4d7665;},a4_0x2ede(_0x198155,_0x399320);}a4_0x4596c4();function a4_0x4d76(){var _0x35c003=['prototype','clients','constructor','__esModule','undefined','rpush','default','cache-manager','330UMChNH','Config','234KpzuAV','redis','metadata','catch','reset','function','has','__decorate','decorate','hdel','504QYrwiS','json_encode','1673XrwcKP','(((.+)+)+)+$','378JrLKEQ','1650emavwl','store','hget','config','Scope','cache','CacheService','stores','getOwnPropertyDescriptor','object','get','list','set','push','name','34836RUAAuL','getClient','toString','length','use','7QEtFac','Cache','defineProperty','options','search','65168ogkcbG','1156HvBNhG','stringify','del','48950XSYMwU','187369UZOgiG','hset','11696ydHbKw','51355igSqfN','shift','Provide','apply','parse','prefix','file','Singleton','lpop','map','json_decode'];a4_0x4d76=function(){return _0x35c003;};return a4_0x4d76();}'use strict';var __decorate=this&&this[a4_0xcf886(0x122)]||function(_0x2001a0,_0xde4e91,_0x1892d8,_0x2361e3){var _0x548d83=a4_0xcf886,_0x1b95c5=arguments[_0x548d83(0x13c)],_0x26b820=_0x1b95c5<0x3?_0xde4e91:_0x2361e3===null?_0x2361e3=Object[_0x548d83(0x132)](_0xde4e91,_0x1892d8):_0x2361e3,_0x13a70c;if(typeof Reflect===_0x548d83(0x133)&&typeof Reflect[_0x548d83(0x123)]===_0x548d83(0x120))_0x26b820=Reflect[_0x548d83(0x123)](_0x2001a0,_0xde4e91,_0x1892d8,_0x2361e3);else{for(var _0x15b858=_0x2001a0['length']-0x1;_0x15b858>=0x0;_0x15b858--)if(_0x13a70c=_0x2001a0[_0x15b858])_0x26b820=(_0x1b95c5<0x3?_0x13a70c(_0x26b820):_0x1b95c5>0x3?_0x13a70c(_0xde4e91,_0x1892d8,_0x26b820):_0x13a70c(_0xde4e91,_0x1892d8))||_0x26b820;}return _0x1b95c5>0x3&&_0x26b820&&Object[_0x548d83(0x140)](_0xde4e91,_0x1892d8,_0x26b820),_0x26b820;},__metadata=this&&this['__metadata']||function(_0x250641,_0x5301fe){var _0x532aa4=a4_0xcf886;if(typeof Reflect===_0x532aa4(0x133)&&typeof Reflect['metadata']==='function')return Reflect[_0x532aa4(0x11d)](_0x250641,_0x5301fe);};Object['defineProperty'](exports,a4_0xcf886(0x114),{'value':!![]}),exports['Cache']=exports[a4_0xcf886(0x130)]=void 0x0,exports[a4_0xcf886(0x126)]=json_encode,exports[a4_0xcf886(0x110)]=json_decode;const cacheManager=require(a4_0xcf886(0x118)),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x4acad3=a4_0xcf886;this[_0x4acad3(0x12f)]=undefined,this[_0x4acad3(0x112)]=new Map();}[a4_0xcf886(0x13d)](_0x40ce6e){var _0x5d2766=a4_0xcf886,_0x3d195f,_0x30f678;if(!this[_0x5d2766(0x12f)]){const _0x28e5a6=((_0x3d195f=this[_0x5d2766(0x12d)][_0x5d2766(0x131)])===null||_0x3d195f===void 0x0?void 0x0:_0x3d195f[(_0x30f678=this['config'])===null||_0x30f678===void 0x0?void 0x0:_0x30f678[_0x5d2766(0x117)]])||this[_0x5d2766(0x12d)][_0x5d2766(0x131)][_0x5d2766(0x10c)];this[_0x5d2766(0x12f)]=cacheManager['caching']({..._0x28e5a6[_0x5d2766(0x141)],'store':_0x28e5a6['store']});}return!this[_0x5d2766(0x112)][_0x5d2766(0x121)](_0x40ce6e)&&this[_0x5d2766(0x112)][_0x5d2766(0x136)](_0x40ce6e,new Cache(_0x40ce6e,this['cache'])),this[_0x5d2766(0x112)][_0x5d2766(0x134)](_0x40ce6e);}async[a4_0xcf886(0x11f)](){var _0x56af95=a4_0xcf886;return await this[_0x56af95(0x12f)]['reset']();}};exports[a4_0xcf886(0x130)]=CacheService,__decorate([(0x0,core_1[a4_0xcf886(0x11a)])(a4_0xcf886(0x12f)),__metadata('design:type',Object)],CacheService[a4_0xcf886(0x111)],a4_0xcf886(0x12d),void 0x0),exports[a4_0xcf886(0x130)]=CacheService=__decorate([(0x0,core_1[a4_0xcf886(0x14d)])(),(0x0,core_1[a4_0xcf886(0x12e)])(core_1['ScopeEnum'][a4_0xcf886(0x10d)])],CacheService);class Cache{constructor(_0x4d14e9,_0x927f3c){var _0x2a3eb0=a4_0xcf886;this[_0x2a3eb0(0x12f)]=_0x927f3c,this['prefix']=_0x4d14e9;}async[a4_0xcf886(0x146)](_0x72c063){var _0x241175=a4_0xcf886;return await this[_0x241175(0x12f)][_0x241175(0x146)](this[_0x241175(0x10b)]+':'+_0x72c063);}async[a4_0xcf886(0x136)](_0x1816e2,_0x549c88,_0x500dad){var _0x5ca7e5=a4_0xcf886,_0x1a8674,_0x6305a9;return((_0x6305a9=(_0x1a8674=this[_0x5ca7e5(0x12f)])===null||_0x1a8674===void 0x0?void 0x0:_0x1a8674['store'])===null||_0x6305a9===void 0x0?void 0x0:_0x6305a9[_0x5ca7e5(0x138)])==_0x5ca7e5(0x11c)?await this[_0x5ca7e5(0x12f)][_0x5ca7e5(0x136)](this[_0x5ca7e5(0x10b)]+':'+_0x1816e2,_0x549c88,{'ttl':_0x500dad}):await this[_0x5ca7e5(0x12f)][_0x5ca7e5(0x136)](this['prefix']+':'+_0x1816e2,_0x549c88,{'ttl':_0x500dad});}async[a4_0xcf886(0x134)](_0x4170fe,_0xf99eed,_0x30202c){return new Promise((_0x66ba6c,_0xdd9f55)=>{var _0xe7f51b=a4_0x2ede;this[_0xe7f51b(0x12f)]['get'](this['prefix']+':'+_0x4170fe,async(_0xd19ed8,_0x5c4f0c)=>{var _0x39feae=_0xe7f51b;_0xd19ed8?_0xdd9f55(_0xd19ed8):((_0x5c4f0c===undefined||_0x5c4f0c===null)&&(typeof _0xf99eed==_0x39feae(0x120)?(_0x5c4f0c=await _0xf99eed()[_0x39feae(0x11e)](_0x19edbd=>_0xdd9f55(_0x19edbd)),typeof _0x5c4f0c!=_0x39feae(0x115)&&await this[_0x39feae(0x136)](_0x4170fe,_0x5c4f0c,_0x30202c)):_0x5c4f0c=_0xf99eed),_0x66ba6c(_0x5c4f0c));});});}async[a4_0xcf886(0x124)](_0x37ba1a,_0x60609){var _0x4bcb9d=a4_0xcf886;return await this[_0x4bcb9d(0x146)](_0x37ba1a+'#'+_0x60609);}async[a4_0xcf886(0x149)](_0x374185,_0x59dc11,_0x59ec8e,_0xcadf7e){var _0x1d360=a4_0xcf886;return await this[_0x1d360(0x136)](_0x374185+'#'+_0x59dc11,_0x59ec8e,_0xcadf7e);}async[a4_0xcf886(0x12c)](_0x231978,_0x54e3ef,_0x1ba40a,_0x2dccd7){return await this['get'](_0x231978+'#'+_0x54e3ef,_0x1ba40a,_0x2dccd7);}[a4_0xcf886(0x135)](_0x83df2e){const _0x41fb70={'all':async()=>{var _0x42462a=a4_0x2ede,_0x8005d4,_0x20d2e7,_0x5afecd,_0x2bc07b,_0x4b13ab;return((_0x20d2e7=(_0x8005d4=this['cache'])===null||_0x8005d4===void 0x0?void 0x0:_0x8005d4['store'])===null||_0x20d2e7===void 0x0?void 0x0:_0x20d2e7[_0x42462a(0x138)])=='redis'?(await((_0x4b13ab=(_0x2bc07b=(_0x5afecd=this===null||this===void 0x0?void 0x0:this[_0x42462a(0x12f)])===null||_0x5afecd===void 0x0?void 0x0:_0x5afecd[_0x42462a(0x12b)])===null||_0x2bc07b===void 0x0?void 0x0:_0x2bc07b[_0x42462a(0x13a)]())===null||_0x4b13ab===void 0x0?void 0x0:_0x4b13ab['lrange'](this[_0x42462a(0x10b)]+':'+_0x83df2e,0x0,-0x1))||[])[_0x42462a(0x10f)](_0x23c9c0=>json_decode(_0x23c9c0)):await this[_0x42462a(0x134)](_0x83df2e,[]);},'pop':async()=>{var _0x2f842f=a4_0x2ede,_0x501a16,_0x4f9787,_0x39fcde,_0x34eb65,_0x13a0a4;if(((_0x4f9787=(_0x501a16=this[_0x2f842f(0x12f)])===null||_0x501a16===void 0x0?void 0x0:_0x501a16[_0x2f842f(0x12b)])===null||_0x4f9787===void 0x0?void 0x0:_0x4f9787['name'])=='redis')return json_decode(await((_0x13a0a4=(_0x34eb65=(_0x39fcde=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x39fcde===void 0x0?void 0x0:_0x39fcde['store'])===null||_0x34eb65===void 0x0?void 0x0:_0x34eb65[_0x2f842f(0x13a)]())===null||_0x13a0a4===void 0x0?void 0x0:_0x13a0a4[_0x2f842f(0x10e)](this['prefix']+':'+_0x83df2e)));else{let _0x4a8618=await this[_0x2f842f(0x134)](_0x83df2e,[]),_0x1e4832=_0x4a8618[_0x2f842f(0x14c)]();return await this['set'](_0x83df2e,_0x4a8618),_0x1e4832;}},'push':async(..._0xcc7265)=>{var _0x2d30ba=a4_0x2ede,_0x59bc8c,_0x3ddfba,_0x19f953,_0x460340,_0x5a75bd;const _0x3be84a=_0xcc7265['filter'](_0x189e16=>_0x189e16!==undefined&&_0x189e16!==null);if(((_0x3ddfba=(_0x59bc8c=this[_0x2d30ba(0x12f)])===null||_0x59bc8c===void 0x0?void 0x0:_0x59bc8c[_0x2d30ba(0x12b)])===null||_0x3ddfba===void 0x0?void 0x0:_0x3ddfba['name'])=='redis')return await((_0x5a75bd=(_0x460340=(_0x19f953=this===null||this===void 0x0?void 0x0:this[_0x2d30ba(0x12f)])===null||_0x19f953===void 0x0?void 0x0:_0x19f953[_0x2d30ba(0x12b)])===null||_0x460340===void 0x0?void 0x0:_0x460340[_0x2d30ba(0x13a)]())===null||_0x5a75bd===void 0x0?void 0x0:_0x5a75bd[_0x2d30ba(0x116)](this[_0x2d30ba(0x10b)]+':'+_0x83df2e,..._0x3be84a[_0x2d30ba(0x10f)](_0x507f64=>json_encode(_0x507f64)))),_0x3be84a;else{let _0x824396=await this[_0x2d30ba(0x134)](_0x83df2e,[]);return _0x824396[_0x2d30ba(0x137)](..._0x3be84a),await this[_0x2d30ba(0x136)](_0x83df2e,_0x824396),_0x824396;}}};return _0x41fb70;}}exports[a4_0xcf886(0x13f)]=Cache;function json_encode(_0x29a9cf){var _0x24e9b3=a4_0xcf886;try{return JSON[_0x24e9b3(0x145)](_0x29a9cf);}catch(_0x2b4b22){return undefined;}}function json_decode(_0x1900b3){var _0x37a27a=a4_0xcf886;try{return JSON[_0x37a27a(0x10a)](_0x1900b3);}catch(_0x36401a){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.7.3",
3
+ "version": "3.7.5",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -24,5 +24,5 @@
24
24
  "javascript-obfuscator": "^4.0.2",
25
25
  "typescript": "^5.5.4"
26
26
  },
27
- "gitHead": "ed500ecf605162ee998c920e872a08b0b2f72e44"
27
+ "gitHead": "7c6687528d861a8b69e62b3656c19e9e6b98b821"
28
28
  }