@anncic-api/cache 3.7.5 → 3.7.7

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
- 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
+ const a0_0x241ed4=a0_0x21ef;(function(_0x8fe7ba,_0x49a9b5){const _0x50b3d8=a0_0x21ef,_0x4d6408=_0x8fe7ba();while(!![]){try{const _0x319b95=parseInt(_0x50b3d8(0x1c7))/0x1*(-parseInt(_0x50b3d8(0x1cd))/0x2)+-parseInt(_0x50b3d8(0x1c0))/0x3+-parseInt(_0x50b3d8(0x1cc))/0x4*(-parseInt(_0x50b3d8(0x1c5))/0x5)+parseInt(_0x50b3d8(0x1ca))/0x6+parseInt(_0x50b3d8(0x1ba))/0x7*(parseInt(_0x50b3d8(0x1c4))/0x8)+-parseInt(_0x50b3d8(0x1bc))/0x9+parseInt(_0x50b3d8(0x1c8))/0xa*(parseInt(_0x50b3d8(0x1c6))/0xb);if(_0x319b95===_0x49a9b5)break;else _0x4d6408['push'](_0x4d6408['shift']());}catch(_0x502bf7){_0x4d6408['push'](_0x4d6408['shift']());}}}(a0_0x4234,0x56c59));const a0_0x414fa2=(function(){let _0x4f03d7=!![];return function(_0x86a1a2,_0xf312ed){const _0x359afc=_0x4f03d7?function(){if(_0xf312ed){const _0x2ad230=_0xf312ed['apply'](_0x86a1a2,arguments);return _0xf312ed=null,_0x2ad230;}}:function(){};return _0x4f03d7=![],_0x359afc;};}()),a0_0x2dc3d=a0_0x414fa2(this,function(){const _0x33c6e8=a0_0x21ef;return a0_0x2dc3d[_0x33c6e8(0x1c1)]()[_0x33c6e8(0x1bd)](_0x33c6e8(0x1bf))[_0x33c6e8(0x1c1)]()[_0x33c6e8(0x1d2)](a0_0x2dc3d)['search']('(((.+)+)+)+$');});a0_0x2dc3d();'use strict';function a0_0x21ef(_0x45e51e,_0x57b0f3){const _0x2920f3=a0_0x4234();return a0_0x21ef=function(_0x2dc3d,_0x414fa2){_0x2dc3d=_0x2dc3d-0x1ba;let _0x423495=_0x2920f3[_0x2dc3d];return _0x423495;},a0_0x21ef(_0x45e51e,_0x57b0f3);}function a0_0x4234(){const _0x2f5eda=['search','appDir','(((.+)+)+)+$','1813920tHSzbZ','toString','cache-manager-ioredis','defineProperty','1647952ioDlNO','525lbjLwO','46266HKrkiG','91097CmMWeS','1230BpGYHX','127.0.0.1','1120836WOaJGx','name','12344YIeTvl','6oFeDTq','env','__esModule','file','cache-manager-fs-hash','constructor','/runtime/.cache','21MUTfeY','memory','3715272bLOsFU'];a0_0x4234=function(){return _0x2f5eda;};return a0_0x4234();}Object[a0_0x241ed4(0x1c3)](exports,a0_0x241ed4(0x1cf),{'value':!![]});const fsStore=require(a0_0x241ed4(0x1d1)),redisStore=require(a0_0x241ed4(0x1c2));exports['default']=_0x3212d5=>{const _0x54c796=a0_0x241ed4;return{'cache':{'default':_0x54c796(0x1d0),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x3212d5[_0x54c796(0x1be)]+_0x54c796(0x1d3)+((_0x3212d5===null||_0x3212d5===void 0x0?void 0x0:_0x3212d5[_0x54c796(0x1ce)])?'-'+_0x3212d5['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x54c796(0x1c9),'password':'','keyPrefix':_0x3212d5[_0x54c796(0x1cb)]+':'+((_0x3212d5===null||_0x3212d5===void 0x0?void 0x0:_0x3212d5[_0x54c796(0x1ce)])?_0x3212d5[_0x54c796(0x1ce)]+':':'')}},'memory':{'store':_0x54c796(0x1bb),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
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
+ var a1_0x2e4cbd=a1_0x3f4c;function a1_0x3f4c(_0x16ff2d,_0x327c3b){var _0xb58527=a1_0x4aed();return a1_0x3f4c=function(_0x43d3ea,_0x50bef2){_0x43d3ea=_0x43d3ea-0x106;var _0x4aedef=_0xb58527[_0x43d3ea];return _0x4aedef;},a1_0x3f4c(_0x16ff2d,_0x327c3b);}(function(_0x18e5db,_0x23934a){var _0x3ff037=a1_0x3f4c,_0x9cccb5=_0x18e5db();while(!![]){try{var _0x4f6b79=parseInt(_0x3ff037(0x107))/0x1*(-parseInt(_0x3ff037(0x10d))/0x2)+-parseInt(_0x3ff037(0x10e))/0x3*(-parseInt(_0x3ff037(0x118))/0x4)+-parseInt(_0x3ff037(0x116))/0x5*(parseInt(_0x3ff037(0x109))/0x6)+-parseInt(_0x3ff037(0x106))/0x7*(-parseInt(_0x3ff037(0x111))/0x8)+parseInt(_0x3ff037(0x112))/0x9+-parseInt(_0x3ff037(0x11d))/0xa+parseInt(_0x3ff037(0x108))/0xb;if(_0x4f6b79===_0x23934a)break;else _0x9cccb5['push'](_0x9cccb5['shift']());}catch(_0x5f13b7){_0x9cccb5['push'](_0x9cccb5['shift']());}}}(a1_0x4aed,0x45904));var a1_0x50bef2=(function(){var _0x249a2e=!![];return function(_0x58cbff,_0x47143e){var _0x465c69=_0x249a2e?function(){if(_0x47143e){var _0x38c7fe=_0x47143e['apply'](_0x58cbff,arguments);return _0x47143e=null,_0x38c7fe;}}:function(){};return _0x249a2e=![],_0x465c69;};}()),a1_0x43d3ea=a1_0x50bef2(this,function(){var _0x4499d2=a1_0x3f4c;return a1_0x43d3ea[_0x4499d2(0x119)]()['search'](_0x4499d2(0x10f))[_0x4499d2(0x119)]()['constructor'](a1_0x43d3ea)[_0x4499d2(0x10b)]('(((.+)+)+)+$');});a1_0x43d3ea();'use strict';var __decorate=this&&this[a1_0x2e4cbd(0x11b)]||function(_0x5b8042,_0x37a140,_0x1ad743,_0x5a3aa9){var _0x18d58c=a1_0x2e4cbd,_0x2e98a3=arguments[_0x18d58c(0x10c)],_0x4730af=_0x2e98a3<0x3?_0x37a140:_0x5a3aa9===null?_0x5a3aa9=Object['getOwnPropertyDescriptor'](_0x37a140,_0x1ad743):_0x5a3aa9,_0x135e48;if(typeof Reflect===_0x18d58c(0x115)&&typeof Reflect[_0x18d58c(0x114)]==='function')_0x4730af=Reflect[_0x18d58c(0x114)](_0x5b8042,_0x37a140,_0x1ad743,_0x5a3aa9);else{for(var _0x49e179=_0x5b8042[_0x18d58c(0x10c)]-0x1;_0x49e179>=0x0;_0x49e179--)if(_0x135e48=_0x5b8042[_0x49e179])_0x4730af=(_0x2e98a3<0x3?_0x135e48(_0x4730af):_0x2e98a3>0x3?_0x135e48(_0x37a140,_0x1ad743,_0x4730af):_0x135e48(_0x37a140,_0x1ad743))||_0x4730af;}return _0x2e98a3>0x3&&_0x4730af&&Object[_0x18d58c(0x11a)](_0x37a140,_0x1ad743,_0x4730af),_0x4730af;};function a1_0x4aed(){var _0x259e4e=['10iXJitY','./config/config.default','4VZkwEn','toString','defineProperty','__decorate','__esModule','5690350uoRRvw','1759387vnpqeQ','483894ocreJh','8052330qjyFvv','389682Kxlcws','anncic-api:cache','search','length','2haZSQM','1413MhnQjN','(((.+)+)+)+$','CustomConfiguration','8FzqIwL','4355217yoegzw','@midwayjs/core','decorate','object'];a1_0x4aed=function(){return _0x259e4e;};return a1_0x4aed();}Object[a1_0x2e4cbd(0x11a)](exports,a1_0x2e4cbd(0x11c),{'value':!![]}),exports[a1_0x2e4cbd(0x110)]=void 0x0;const core_1=require(a1_0x2e4cbd(0x113)),ConfigDefault=require(a1_0x2e4cbd(0x117));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x2e4cbd(0x110)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x2e4cbd(0x10a),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
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();}
1
+ const a2_0x5e4034=a2_0x4d44;(function(_0x320c5e,_0x2a1ead){const _0x401cef=a2_0x4d44,_0x1c1f2d=_0x320c5e();while(!![]){try{const _0x524285=parseInt(_0x401cef(0x148))/0x1*(parseInt(_0x401cef(0x143))/0x2)+parseInt(_0x401cef(0x15b))/0x3*(-parseInt(_0x401cef(0x154))/0x4)+parseInt(_0x401cef(0x156))/0x5+parseInt(_0x401cef(0x147))/0x6*(-parseInt(_0x401cef(0x14d))/0x7)+parseInt(_0x401cef(0x14f))/0x8+-parseInt(_0x401cef(0x152))/0x9+parseInt(_0x401cef(0x159))/0xa;if(_0x524285===_0x2a1ead)break;else _0x1c1f2d['push'](_0x1c1f2d['shift']());}catch(_0x3d9627){_0x1c1f2d['push'](_0x1c1f2d['shift']());}}}(a2_0x50f7,0xa784b));const a2_0x435799=(function(){let _0x46d1a8=!![];return function(_0x3e7266,_0x1efe1f){const _0x4d0ebf=_0x46d1a8?function(){const _0x5ecc3f=a2_0x4d44;if(_0x1efe1f){const _0x38712d=_0x1efe1f[_0x5ecc3f(0x150)](_0x3e7266,arguments);return _0x1efe1f=null,_0x38712d;}}:function(){};return _0x46d1a8=![],_0x4d0ebf;};}()),a2_0x166277=a2_0x435799(this,function(){const _0x3bf617=a2_0x4d44;return a2_0x166277[_0x3bf617(0x14b)]()[_0x3bf617(0x151)](_0x3bf617(0x145))[_0x3bf617(0x14b)]()[_0x3bf617(0x141)](a2_0x166277)[_0x3bf617(0x151)](_0x3bf617(0x145));});a2_0x166277();'use strict';Object[a2_0x5e4034(0x14a)](exports,'__esModule',{'value':!![]}),exports[a2_0x5e4034(0x155)]=Cache;const crypto_js_1=require(a2_0x5e4034(0x15a)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x5e4034(0x144));function json_encode(_0x3819be){const _0x1b8780=a2_0x5e4034;try{return JSON[_0x1b8780(0x140)](_0x3819be);}catch(_0x75534){return undefined;}}function a2_0x4d44(_0xc4fc34,_0x1df7f1){const _0x41d223=a2_0x50f7();return a2_0x4d44=function(_0x166277,_0x435799){_0x166277=_0x166277-0x140;let _0x50f7e7=_0x41d223[_0x166277];return _0x50f7e7;},a2_0x4d44(_0xc4fc34,_0x1df7f1);}function Cache(_0x21716b,_0x129bca){return(_0x194929,_0x38b76d,_0x5b7e50)=>{const _0x33cf68=a2_0x4d44,_0x25d533=_0x5b7e50[_0x33cf68(0x157)];return _0x5b7e50[_0x33cf68(0x157)]=async function(..._0x150e4b){const _0xa349f=_0x33cf68;_0x21716b=(_0x21716b?''+_0x21716b:''+(_0x38b76d||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x150e4b))[_0xa349f(0x14b)]();let _0x3872e2=await this[core_1[_0xa349f(0x14c)]][_0xa349f(0x158)][_0xa349f(0x153)]()['getAsync'](CacheService_1['CacheService']),_0x57672c=await _0x3872e2[_0xa349f(0x146)](_0xa349f(0x142))[_0xa349f(0x149)](_0x21716b);if(_0x57672c)return JSON['parse'](_0x57672c);else _0x57672c=await _0x25d533[_0xa349f(0x150)](this,[..._0x150e4b]),await _0x3872e2[_0xa349f(0x146)](_0xa349f(0x142))[_0xa349f(0x14e)](_0x21716b,JSON[_0xa349f(0x140)](_0x57672c),_0x129bca);return _0x57672c;},_0x5b7e50;};}function a2_0x50f7(){const _0x2f3176=['6BcxHJL','1jazOLY','get','defineProperty','toString','REQUEST_OBJ_CTX_KEY','5855143ybenWk','set','5744512yGypjE','apply','search','9408123wwHliP','getApplicationContext','32rolaVm','Cache','3285815uaMvnx','value','app','9950530IKPrRm','crypto-js','89472nhDWBi','stringify','constructor','Method::Decorator','872526nAlQHA','@midwayjs/core','(((.+)+)+)+$','use'];a2_0x50f7=function(){return _0x2f3176;};return a2_0x50f7();}
package/dist/index.js CHANGED
@@ -1 +1 @@
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
+ var a3_0x1b70fa=a3_0x1d8e;function a3_0x2918(){var _0xcf3298=['9DAYVLy','defineProperty','Cache','3292807bVciFq','681143hXxHhV','constructor','(((.+)+)+)+$','2270435muzlZB','196828FpNTPA','565220qaPxeb','111276IdRIfJ','4050666Owjrlm','./decorator/Cache','toString','184RafBVU','Configuration','apply','CacheService','./service/CacheService'];a3_0x2918=function(){return _0xcf3298;};return a3_0x2918();}(function(_0xa1549c,_0x31390e){var _0x4461a1=a3_0x1d8e,_0x212201=_0xa1549c();while(!![]){try{var _0x19ede7=-parseInt(_0x4461a1(0x19a))/0x1+-parseInt(_0x4461a1(0x19f))/0x2+-parseInt(_0x4461a1(0x1a9))/0x3*(-parseInt(_0x4461a1(0x19e))/0x4)+parseInt(_0x4461a1(0x19d))/0x5+parseInt(_0x4461a1(0x1a1))/0x6+parseInt(_0x4461a1(0x199))/0x7+parseInt(_0x4461a1(0x1a4))/0x8*(-parseInt(_0x4461a1(0x1a0))/0x9);if(_0x19ede7===_0x31390e)break;else _0x212201['push'](_0x212201['shift']());}catch(_0x3f0975){_0x212201['push'](_0x212201['shift']());}}}(a3_0x2918,0x79d97));var a3_0x417661=(function(){var _0x3dacf3=!![];return function(_0x521ae4,_0x425435){var _0x29f477=_0x3dacf3?function(){var _0x27fd8e=a3_0x1d8e;if(_0x425435){var _0x37a4db=_0x425435[_0x27fd8e(0x1a6)](_0x521ae4,arguments);return _0x425435=null,_0x37a4db;}}:function(){};return _0x3dacf3=![],_0x29f477;};}()),a3_0x5f4ca9=a3_0x417661(this,function(){var _0x2f5bd9=a3_0x1d8e;return a3_0x5f4ca9[_0x2f5bd9(0x1a3)]()['search']('(((.+)+)+)+$')[_0x2f5bd9(0x1a3)]()[_0x2f5bd9(0x19b)](a3_0x5f4ca9)['search'](_0x2f5bd9(0x19c));});function a3_0x1d8e(_0x21ae12,_0x2d3f18){var _0x583654=a3_0x2918();return a3_0x1d8e=function(_0x5f4ca9,_0x417661){_0x5f4ca9=_0x5f4ca9-0x199;var _0x291806=_0x583654[_0x5f4ca9];return _0x291806;},a3_0x1d8e(_0x21ae12,_0x2d3f18);}a3_0x5f4ca9();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports[a3_0x1b70fa(0x1ab)]=exports[a3_0x1b70fa(0x1a5)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x1b70fa(0x1aa)](exports,a3_0x1b70fa(0x1a5),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x1b70fa(0x1a2));Object[a3_0x1b70fa(0x1aa)](exports,a3_0x1b70fa(0x1ab),{'enumerable':!![],'get':function(){var _0x238a25=a3_0x1b70fa;return Cache_1[_0x238a25(0x1ab)];}});var CacheService_1=require(a3_0x1b70fa(0x1a8));Object[a3_0x1b70fa(0x1aa)](exports,a3_0x1b70fa(0x1a7),{'enumerable':!![],'get':function(){var _0x498472=a3_0x1b70fa;return CacheService_1[_0x498472(0x1a7)];}});
@@ -1 +1 @@
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;}}
1
+ var a4_0xf2d7f9=a4_0x3409;(function(_0x1e03ea,_0xceef45){var _0x18f1cb=a4_0x3409,_0x3d8a61=_0x1e03ea();while(!![]){try{var _0x223b18=-parseInt(_0x18f1cb(0x1bb))/0x1*(-parseInt(_0x18f1cb(0x1c5))/0x2)+parseInt(_0x18f1cb(0x1ca))/0x3+-parseInt(_0x18f1cb(0x1c0))/0x4*(parseInt(_0x18f1cb(0x191))/0x5)+-parseInt(_0x18f1cb(0x198))/0x6*(-parseInt(_0x18f1cb(0x1cb))/0x7)+-parseInt(_0x18f1cb(0x199))/0x8*(-parseInt(_0x18f1cb(0x1c1))/0x9)+parseInt(_0x18f1cb(0x1b5))/0xa+-parseInt(_0x18f1cb(0x19a))/0xb;if(_0x223b18===_0xceef45)break;else _0x3d8a61['push'](_0x3d8a61['shift']());}catch(_0x5b7f89){_0x3d8a61['push'](_0x3d8a61['shift']());}}}(a4_0x44b8,0x33263));function a4_0x44b8(){var _0x1ecdde=['search','options','cache-manager','redis','Config','stringify','__decorate','CacheService','Cache','set','decorate','shift','config','332900oQPVOx','object','del','clients','parse','prototype','9akKwCo','map','store','json_encode','hdel','28LOxQKd','41049UjktPj','@midwayjs/core','__metadata','Singleton','12404dRfYnv','file','getOwnPropertyDescriptor','get','hget','188460fbHkHp','336bESlBh','caching','290455OFUkfw','name','getClient','(((.+)+)+)+$','defineProperty','ScopeEnum','stores','12576UjoLHz','728FwDEgN','565873UVsSgj','length','cache','default','rpush','constructor','metadata','push','design:type','prefix','catch','toString','function','reset'];a4_0x44b8=function(){return _0x1ecdde;};return a4_0x44b8();}var a4_0x142299=(function(){var _0x9626b0=!![];return function(_0x5402aa,_0x3da25c){var _0x3561d9=_0x9626b0?function(){if(_0x3da25c){var _0x52d7c1=_0x3da25c['apply'](_0x5402aa,arguments);return _0x3da25c=null,_0x52d7c1;}}:function(){};return _0x9626b0=![],_0x3561d9;};}()),a4_0x20cde2=a4_0x142299(this,function(){var _0x2250bc=a4_0x3409;return a4_0x20cde2[_0x2250bc(0x1a5)]()[_0x2250bc(0x1a8)](_0x2250bc(0x194))[_0x2250bc(0x1a5)]()[_0x2250bc(0x19f)](a4_0x20cde2)['search']('(((.+)+)+)+$');});a4_0x20cde2();'use strict';function a4_0x3409(_0x1f69f6,_0x44f776){var _0x55d116=a4_0x44b8();return a4_0x3409=function(_0x20cde2,_0x142299){_0x20cde2=_0x20cde2-0x190;var _0x44b8e1=_0x55d116[_0x20cde2];return _0x44b8e1;},a4_0x3409(_0x1f69f6,_0x44f776);}var __decorate=this&&this[a4_0xf2d7f9(0x1ae)]||function(_0x2b6b38,_0xef005e,_0x3c4bb6,_0x559dab){var _0x274813=a4_0xf2d7f9,_0x16db8b=arguments[_0x274813(0x19b)],_0x1c43bf=_0x16db8b<0x3?_0xef005e:_0x559dab===null?_0x559dab=Object[_0x274813(0x1c7)](_0xef005e,_0x3c4bb6):_0x559dab,_0x2c14cb;if(typeof Reflect===_0x274813(0x1b6)&&typeof Reflect['decorate']==='function')_0x1c43bf=Reflect[_0x274813(0x1b2)](_0x2b6b38,_0xef005e,_0x3c4bb6,_0x559dab);else{for(var _0x142754=_0x2b6b38[_0x274813(0x19b)]-0x1;_0x142754>=0x0;_0x142754--)if(_0x2c14cb=_0x2b6b38[_0x142754])_0x1c43bf=(_0x16db8b<0x3?_0x2c14cb(_0x1c43bf):_0x16db8b>0x3?_0x2c14cb(_0xef005e,_0x3c4bb6,_0x1c43bf):_0x2c14cb(_0xef005e,_0x3c4bb6))||_0x1c43bf;}return _0x16db8b>0x3&&_0x1c43bf&&Object[_0x274813(0x195)](_0xef005e,_0x3c4bb6,_0x1c43bf),_0x1c43bf;},__metadata=this&&this[a4_0xf2d7f9(0x1c3)]||function(_0xe16117,_0x1dc786){var _0x2c77f3=a4_0xf2d7f9;if(typeof Reflect===_0x2c77f3(0x1b6)&&typeof Reflect['metadata']===_0x2c77f3(0x1a6))return Reflect[_0x2c77f3(0x1a0)](_0xe16117,_0x1dc786);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cache']=exports['CacheService']=void 0x0,exports[a4_0xf2d7f9(0x1be)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require(a4_0xf2d7f9(0x1aa)),core_1=require(a4_0xf2d7f9(0x1c2));let CacheService=class CacheService{constructor(){var _0x3cdfbe=a4_0xf2d7f9;this[_0x3cdfbe(0x19c)]=undefined,this[_0x3cdfbe(0x1b8)]=new Map();}['use'](_0x424f79){var _0xaefd5d=a4_0xf2d7f9,_0x190dba,_0x3f995c;if(!this[_0xaefd5d(0x19c)]){const _0x4a3e7=((_0x190dba=this[_0xaefd5d(0x1b4)][_0xaefd5d(0x197)])===null||_0x190dba===void 0x0?void 0x0:_0x190dba[(_0x3f995c=this[_0xaefd5d(0x1b4)])===null||_0x3f995c===void 0x0?void 0x0:_0x3f995c[_0xaefd5d(0x19d)]])||this[_0xaefd5d(0x1b4)][_0xaefd5d(0x197)][_0xaefd5d(0x1c6)];this[_0xaefd5d(0x19c)]=cacheManager[_0xaefd5d(0x190)]({..._0x4a3e7[_0xaefd5d(0x1a9)],'store':_0x4a3e7['store']});}return!this[_0xaefd5d(0x1b8)]['has'](_0x424f79)&&this[_0xaefd5d(0x1b8)][_0xaefd5d(0x1b1)](_0x424f79,new Cache(_0x424f79,this[_0xaefd5d(0x19c)])),this[_0xaefd5d(0x1b8)][_0xaefd5d(0x1c8)](_0x424f79);}async['reset'](){var _0x4717e7=a4_0xf2d7f9;return await this[_0x4717e7(0x19c)][_0x4717e7(0x1a7)]();}};exports[a4_0xf2d7f9(0x1af)]=CacheService,__decorate([(0x0,core_1[a4_0xf2d7f9(0x1ac)])(a4_0xf2d7f9(0x19c)),__metadata(a4_0xf2d7f9(0x1a2),Object)],CacheService[a4_0xf2d7f9(0x1ba)],'config',void 0x0),exports[a4_0xf2d7f9(0x1af)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a4_0xf2d7f9(0x196)][a4_0xf2d7f9(0x1c4)])],CacheService);class Cache{constructor(_0x593006,_0x1ab627){this['cache']=_0x1ab627,this['prefix']=_0x593006;}async['del'](_0x12de26){return await this['cache']['del'](this['prefix']+':'+_0x12de26);}async['set'](_0xc0270d,_0x19b9cb,_0x559856){var _0x4dff2c=a4_0xf2d7f9,_0x57d91f,_0x9b301b;return((_0x9b301b=(_0x57d91f=this['cache'])===null||_0x57d91f===void 0x0?void 0x0:_0x57d91f[_0x4dff2c(0x1bd)])===null||_0x9b301b===void 0x0?void 0x0:_0x9b301b['name'])==_0x4dff2c(0x1ab)?await this[_0x4dff2c(0x19c)][_0x4dff2c(0x1b1)](this[_0x4dff2c(0x1a3)]+':'+_0xc0270d,_0x19b9cb,{'ttl':_0x559856}):await this['cache'][_0x4dff2c(0x1b1)](this[_0x4dff2c(0x1a3)]+':'+_0xc0270d,_0x19b9cb,{'ttl':_0x559856});}async[a4_0xf2d7f9(0x1c8)](_0x4e7e87,_0x5695d9,_0x4ded42){return new Promise((_0x2a9795,_0x29d9ad)=>{var _0x1b1c6a=a4_0x3409;this[_0x1b1c6a(0x19c)]['get'](this['prefix']+':'+_0x4e7e87,async(_0x174abd,_0x169bb3)=>{var _0x5f04a0=_0x1b1c6a;_0x174abd?_0x29d9ad(_0x174abd):((_0x169bb3===undefined||_0x169bb3===null)&&(typeof _0x5695d9=='function'?(_0x169bb3=await _0x5695d9()[_0x5f04a0(0x1a4)](_0x40f725=>_0x29d9ad(_0x40f725)),typeof _0x169bb3!='undefined'&&await this[_0x5f04a0(0x1b1)](_0x4e7e87,_0x169bb3,_0x4ded42)):_0x169bb3=_0x5695d9),_0x2a9795(_0x169bb3));});});}async[a4_0xf2d7f9(0x1bf)](_0x598044,_0x41d60c){var _0x45e787=a4_0xf2d7f9;return await this[_0x45e787(0x1b7)](_0x598044+'#'+_0x41d60c);}async['hset'](_0x5a7265,_0x4264e0,_0x31b6bf,_0xdf84f6){return await this['set'](_0x5a7265+'#'+_0x4264e0,_0x31b6bf,_0xdf84f6);}async[a4_0xf2d7f9(0x1c9)](_0x5aa1dc,_0x4d2bab,_0x4afef4,_0x30fc7e){var _0x5c9ae2=a4_0xf2d7f9;return await this[_0x5c9ae2(0x1c8)](_0x5aa1dc+'#'+_0x4d2bab,_0x4afef4,_0x30fc7e);}['list'](_0x5f374b){const _0x5570f6={'all':async()=>{var _0x3a6651=a4_0x3409,_0x454c88,_0x239f0a,_0x2fd44e,_0x354685,_0x24f931;return((_0x239f0a=(_0x454c88=this[_0x3a6651(0x19c)])===null||_0x454c88===void 0x0?void 0x0:_0x454c88[_0x3a6651(0x1bd)])===null||_0x239f0a===void 0x0?void 0x0:_0x239f0a[_0x3a6651(0x192)])==_0x3a6651(0x1ab)?(await((_0x24f931=(_0x354685=(_0x2fd44e=this===null||this===void 0x0?void 0x0:this[_0x3a6651(0x19c)])===null||_0x2fd44e===void 0x0?void 0x0:_0x2fd44e[_0x3a6651(0x1bd)])===null||_0x354685===void 0x0?void 0x0:_0x354685[_0x3a6651(0x193)]())===null||_0x24f931===void 0x0?void 0x0:_0x24f931['lrange'](this['prefix']+':'+_0x5f374b,0x0,-0x1))||[])['map'](_0x236722=>json_decode(_0x236722)):await this[_0x3a6651(0x1c8)](_0x5f374b,[]);},'pop':async()=>{var _0x49da87=a4_0x3409,_0x52972c,_0x18f785,_0x164961,_0x36adab,_0x14c9e2;if(((_0x18f785=(_0x52972c=this[_0x49da87(0x19c)])===null||_0x52972c===void 0x0?void 0x0:_0x52972c[_0x49da87(0x1bd)])===null||_0x18f785===void 0x0?void 0x0:_0x18f785[_0x49da87(0x192)])==_0x49da87(0x1ab))return json_decode(await((_0x14c9e2=(_0x36adab=(_0x164961=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x164961===void 0x0?void 0x0:_0x164961[_0x49da87(0x1bd)])===null||_0x36adab===void 0x0?void 0x0:_0x36adab[_0x49da87(0x193)]())===null||_0x14c9e2===void 0x0?void 0x0:_0x14c9e2['lpop'](this[_0x49da87(0x1a3)]+':'+_0x5f374b)));else{let _0x2c641e=await this[_0x49da87(0x1c8)](_0x5f374b,[]),_0x277458=_0x2c641e[_0x49da87(0x1b3)]();return await this['set'](_0x5f374b,_0x2c641e),_0x277458;}},'push':async(..._0x531136)=>{var _0x5aa639=a4_0x3409,_0x42c109,_0x49e502,_0xe7466f,_0x1a48cf,_0x3a37af;const _0x302bd1=_0x531136['filter'](_0x2a89f9=>_0x2a89f9!==undefined&&_0x2a89f9!==null);if(((_0x49e502=(_0x42c109=this[_0x5aa639(0x19c)])===null||_0x42c109===void 0x0?void 0x0:_0x42c109[_0x5aa639(0x1bd)])===null||_0x49e502===void 0x0?void 0x0:_0x49e502[_0x5aa639(0x192)])==_0x5aa639(0x1ab))return await((_0x3a37af=(_0x1a48cf=(_0xe7466f=this===null||this===void 0x0?void 0x0:this[_0x5aa639(0x19c)])===null||_0xe7466f===void 0x0?void 0x0:_0xe7466f[_0x5aa639(0x1bd)])===null||_0x1a48cf===void 0x0?void 0x0:_0x1a48cf[_0x5aa639(0x193)]())===null||_0x3a37af===void 0x0?void 0x0:_0x3a37af[_0x5aa639(0x19e)](this[_0x5aa639(0x1a3)]+':'+_0x5f374b,..._0x302bd1[_0x5aa639(0x1bc)](_0x458319=>json_encode(_0x458319)))),_0x302bd1;else{let _0x3868e1=await this[_0x5aa639(0x1c8)](_0x5f374b,[]);return _0x3868e1[_0x5aa639(0x1a1)](..._0x302bd1),await this['set'](_0x5f374b,_0x3868e1),_0x3868e1;}}};return _0x5570f6;}}exports[a4_0xf2d7f9(0x1b0)]=Cache;function json_encode(_0x4e42b7){var _0x54259c=a4_0xf2d7f9;try{return JSON[_0x54259c(0x1ad)](_0x4e42b7);}catch(_0x4e5ba8){return undefined;}}function json_decode(_0x58fd71){var _0x1a1cff=a4_0xf2d7f9;try{return JSON[_0x1a1cff(0x1b9)](_0x58fd71);}catch(_0x44ad7e){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.7.5",
3
+ "version": "3.7.7",
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": "7c6687528d861a8b69e62b3656c19e9e6b98b821"
27
+ "gitHead": "6be1280f2ca2a13465bc741ae7d15c6e24742c03"
28
28
  }