@anncic-api/cache 3.7.5 → 3.7.6

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_0x1d9dbf=a0_0x312d;(function(_0x548dc7,_0x5198ae){const _0x52a031=a0_0x312d,_0x4ea479=_0x548dc7();while(!![]){try{const _0x1e787d=parseInt(_0x52a031(0x12d))/0x1*(parseInt(_0x52a031(0x11c))/0x2)+parseInt(_0x52a031(0x12b))/0x3+parseInt(_0x52a031(0x12e))/0x4+parseInt(_0x52a031(0x120))/0x5+-parseInt(_0x52a031(0x125))/0x6*(-parseInt(_0x52a031(0x123))/0x7)+parseInt(_0x52a031(0x128))/0x8+parseInt(_0x52a031(0x126))/0x9*(-parseInt(_0x52a031(0x122))/0xa);if(_0x1e787d===_0x5198ae)break;else _0x4ea479['push'](_0x4ea479['shift']());}catch(_0x59a665){_0x4ea479['push'](_0x4ea479['shift']());}}}(a0_0xc048,0x58fde));const a0_0x98b49c=(function(){let _0x4a7c8f=!![];return function(_0x2e15cb,_0x2a1260){const _0x3ffb7d=_0x4a7c8f?function(){if(_0x2a1260){const _0x47f245=_0x2a1260['apply'](_0x2e15cb,arguments);return _0x2a1260=null,_0x47f245;}}:function(){};return _0x4a7c8f=![],_0x3ffb7d;};}()),a0_0x924c9d=a0_0x98b49c(this,function(){const _0x261292=a0_0x312d;return a0_0x924c9d['toString']()[_0x261292(0x129)](_0x261292(0x12a))[_0x261292(0x11b)]()[_0x261292(0x12c)](a0_0x924c9d)[_0x261292(0x129)](_0x261292(0x12a));});function a0_0x312d(_0x529562,_0x39e01f){const _0x215e9c=a0_0xc048();return a0_0x312d=function(_0x924c9d,_0x98b49c){_0x924c9d=_0x924c9d-0x11b;let _0xc0485f=_0x215e9c[_0x924c9d];return _0xc0485f;},a0_0x312d(_0x529562,_0x39e01f);}a0_0x924c9d();'use strict';Object['defineProperty'](exports,a0_0x1d9dbf(0x12f),{'value':!![]});function a0_0xc048(){const _0x40d966=['63722IJSxJt','env','/runtime/.cache','cache-manager-fs-hash','1005475qzlksF','name','1925170icsVvD','7336OtnGQn','cache-manager-ioredis','1494zCzcGA','54IidTUs','default','2775184xARTYT','search','(((.+)+)+)+$','130416gLgkqg','constructor','11DiYQTr','1266896rQENiV','__esModule','file','memory','toString'];a0_0xc048=function(){return _0x40d966;};return a0_0xc048();}const fsStore=require(a0_0x1d9dbf(0x11f)),redisStore=require(a0_0x1d9dbf(0x124));exports[a0_0x1d9dbf(0x127)]=_0x5832aa=>{const _0x30f064=a0_0x1d9dbf;return{'cache':{'default':_0x30f064(0x130),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x5832aa['appDir']+_0x30f064(0x11e)+((_0x5832aa===null||_0x5832aa===void 0x0?void 0x0:_0x5832aa['env'])?'-'+_0x5832aa[_0x30f064(0x11d)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x5832aa[_0x30f064(0x121)]+':'+((_0x5832aa===null||_0x5832aa===void 0x0?void 0x0:_0x5832aa[_0x30f064(0x11d)])?_0x5832aa['env']+':':'')}},'memory':{'store':_0x30f064(0x131),'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_0x1b79c8=a1_0x10ed;(function(_0x121bf3,_0x1d79ae){var _0x378929=a1_0x10ed,_0x1df680=_0x121bf3();while(!![]){try{var _0x187f94=parseInt(_0x378929(0x144))/0x1+parseInt(_0x378929(0x145))/0x2+parseInt(_0x378929(0x148))/0x3+-parseInt(_0x378929(0x13d))/0x4+parseInt(_0x378929(0x146))/0x5*(parseInt(_0x378929(0x147))/0x6)+parseInt(_0x378929(0x13a))/0x7+-parseInt(_0x378929(0x135))/0x8*(parseInt(_0x378929(0x139))/0x9);if(_0x187f94===_0x1d79ae)break;else _0x1df680['push'](_0x1df680['shift']());}catch(_0x3fce16){_0x1df680['push'](_0x1df680['shift']());}}}(a1_0x57af,0x1a1c7));var a1_0x402a93=(function(){var _0x3f008a=!![];return function(_0x26e411,_0x5a28d7){var _0x4b6a6a=_0x3f008a?function(){var _0x2aa3cd=a1_0x10ed;if(_0x5a28d7){var _0x234b1d=_0x5a28d7[_0x2aa3cd(0x13c)](_0x26e411,arguments);return _0x5a28d7=null,_0x234b1d;}}:function(){};return _0x3f008a=![],_0x4b6a6a;};}()),a1_0x46444e=a1_0x402a93(this,function(){var _0x48560b=a1_0x10ed;return a1_0x46444e['toString']()[_0x48560b(0x149)](_0x48560b(0x13b))[_0x48560b(0x14a)]()[_0x48560b(0x137)](a1_0x46444e)[_0x48560b(0x149)](_0x48560b(0x13b));});function a1_0x57af(){var _0x39c6bc=['apply','648648jKPHHK','./config/config.default','__decorate','defineProperty','CustomConfiguration','object','decorate','52087FiZGpe','98408qxWEuQ','5woQMBy','576738JSpXxT','360738lnzHrd','search','toString','@midwayjs/core','anncic-api:cache','1640wVDgtf','Configuration','constructor','length','2718vUagxu','93541fcBvmM','(((.+)+)+)+$'];a1_0x57af=function(){return _0x39c6bc;};return a1_0x57af();}a1_0x46444e();'use strict';var __decorate=this&&this[a1_0x1b79c8(0x13f)]||function(_0x3b1ce3,_0x134263,_0x34fb61,_0x3ecc19){var _0x5e2d29=a1_0x1b79c8,_0x5d2721=arguments[_0x5e2d29(0x138)],_0x593b56=_0x5d2721<0x3?_0x134263:_0x3ecc19===null?_0x3ecc19=Object['getOwnPropertyDescriptor'](_0x134263,_0x34fb61):_0x3ecc19,_0x720e4d;if(typeof Reflect===_0x5e2d29(0x142)&&typeof Reflect['decorate']==='function')_0x593b56=Reflect[_0x5e2d29(0x143)](_0x3b1ce3,_0x134263,_0x34fb61,_0x3ecc19);else{for(var _0x27429c=_0x3b1ce3[_0x5e2d29(0x138)]-0x1;_0x27429c>=0x0;_0x27429c--)if(_0x720e4d=_0x3b1ce3[_0x27429c])_0x593b56=(_0x5d2721<0x3?_0x720e4d(_0x593b56):_0x5d2721>0x3?_0x720e4d(_0x134263,_0x34fb61,_0x593b56):_0x720e4d(_0x134263,_0x34fb61))||_0x593b56;}return _0x5d2721>0x3&&_0x593b56&&Object[_0x5e2d29(0x140)](_0x134263,_0x34fb61,_0x593b56),_0x593b56;};Object[a1_0x1b79c8(0x140)](exports,'__esModule',{'value':!![]}),exports[a1_0x1b79c8(0x141)]=void 0x0;const core_1=require(a1_0x1b79c8(0x133)),ConfigDefault=require(a1_0x1b79c8(0x13e));let CustomConfiguration=class CustomConfiguration{};function a1_0x10ed(_0x5a9c15,_0x239c62){var _0x16206e=a1_0x57af();return a1_0x10ed=function(_0x46444e,_0x402a93){_0x46444e=_0x46444e-0x133;var _0x57af73=_0x16206e[_0x46444e];return _0x57af73;},a1_0x10ed(_0x5a9c15,_0x239c62);}exports[a1_0x1b79c8(0x141)]=CustomConfiguration,exports[a1_0x1b79c8(0x141)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1b79c8(0x136)])({'conflictCheck':![],'namespace':a1_0x1b79c8(0x134),'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_0x4566fa=a2_0xccff;(function(_0x420566,_0x28bf46){const _0x3db414=a2_0xccff,_0x3f0285=_0x420566();while(!![]){try{const _0x7059f7=parseInt(_0x3db414(0x12e))/0x1+-parseInt(_0x3db414(0x136))/0x2+parseInt(_0x3db414(0x132))/0x3+-parseInt(_0x3db414(0x137))/0x4*(-parseInt(_0x3db414(0x12b))/0x5)+-parseInt(_0x3db414(0x12f))/0x6+-parseInt(_0x3db414(0x131))/0x7*(-parseInt(_0x3db414(0x12c))/0x8)+parseInt(_0x3db414(0x13b))/0x9;if(_0x7059f7===_0x28bf46)break;else _0x3f0285['push'](_0x3f0285['shift']());}catch(_0x439d68){_0x3f0285['push'](_0x3f0285['shift']());}}}(a2_0x1db5,0xc09a4));const a2_0x344b0f=(function(){let _0x3c94ea=!![];return function(_0x26cfc1,_0x6d4603){const _0x199214=_0x3c94ea?function(){const _0x5675ba=a2_0xccff;if(_0x6d4603){const _0x108feb=_0x6d4603[_0x5675ba(0x133)](_0x26cfc1,arguments);return _0x6d4603=null,_0x108feb;}}:function(){};return _0x3c94ea=![],_0x199214;};}()),a2_0x3fae73=a2_0x344b0f(this,function(){const _0x72bbd1=a2_0xccff;return a2_0x3fae73[_0x72bbd1(0x129)]()[_0x72bbd1(0x13d)](_0x72bbd1(0x139))[_0x72bbd1(0x129)]()['constructor'](a2_0x3fae73)[_0x72bbd1(0x13d)]('(((.+)+)+)+$');});function a2_0x1db5(){const _0x4ce6ab=['75638SidiJD','8638536mLkDGC','value','59381WLtnni','2653758FtzadA','apply','use','__esModule','1850978KupCjP','4CIRbsN','@midwayjs/core','(((.+)+)+)+$','Cache','11940561UuCCZy','getAsync','search','Method::Decorator','../service/CacheService','toString','set','2724190PYLliJ','304UUpYsi','app'];a2_0x1db5=function(){return _0x4ce6ab;};return a2_0x1db5();}a2_0x3fae73();'use strict';Object['defineProperty'](exports,a2_0x4566fa(0x135),{'value':!![]}),exports[a2_0x4566fa(0x13a)]=Cache;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x4566fa(0x13f)),core_1=require(a2_0x4566fa(0x138));function json_encode(_0x1cee81){try{return JSON['stringify'](_0x1cee81);}catch(_0x56abef){return undefined;}}function a2_0xccff(_0x4c674a,_0x13fc4b){const _0x4d9f0b=a2_0x1db5();return a2_0xccff=function(_0x3fae73,_0x344b0f){_0x3fae73=_0x3fae73-0x129;let _0x1db584=_0x4d9f0b[_0x3fae73];return _0x1db584;},a2_0xccff(_0x4c674a,_0x13fc4b);}function Cache(_0x5455c9,_0x4aa714){return(_0x3aae68,_0x17c694,_0x1d109b)=>{const _0x2acae2=a2_0xccff,_0x2a6f68=_0x1d109b[_0x2acae2(0x130)];return _0x1d109b['value']=async function(..._0x2f3c84){const _0x48a9df=_0x2acae2;_0x5455c9=(_0x5455c9?''+_0x5455c9:''+(_0x17c694||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x2f3c84))[_0x48a9df(0x129)]();let _0x25ddf5=await this[core_1['REQUEST_OBJ_CTX_KEY']][_0x48a9df(0x12d)]['getApplicationContext']()[_0x48a9df(0x13c)](CacheService_1['CacheService']),_0x2c4413=await _0x25ddf5[_0x48a9df(0x134)]('Method::Decorator')['get'](_0x5455c9);if(_0x2c4413)return JSON['parse'](_0x2c4413);else _0x2c4413=await _0x2a6f68['apply'](this,[..._0x2f3c84]),await _0x25ddf5[_0x48a9df(0x134)](_0x48a9df(0x13e))[_0x48a9df(0x12a)](_0x5455c9,JSON['stringify'](_0x2c4413),_0x4aa714);return _0x2c4413;},_0x1d109b;};}
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_0x256aa4=a3_0x5ab4;(function(_0x277e0b,_0x51b4e9){var _0x32d233=a3_0x5ab4,_0x5c1b55=_0x277e0b();while(!![]){try{var _0x45860a=parseInt(_0x32d233(0x7a))/0x1*(-parseInt(_0x32d233(0x72))/0x2)+-parseInt(_0x32d233(0x6f))/0x3+parseInt(_0x32d233(0x73))/0x4*(-parseInt(_0x32d233(0x81))/0x5)+-parseInt(_0x32d233(0x7b))/0x6*(-parseInt(_0x32d233(0x80))/0x7)+parseInt(_0x32d233(0x77))/0x8+parseInt(_0x32d233(0x83))/0x9*(-parseInt(_0x32d233(0x70))/0xa)+parseInt(_0x32d233(0x71))/0xb;if(_0x45860a===_0x51b4e9)break;else _0x5c1b55['push'](_0x5c1b55['shift']());}catch(_0x50ef7f){_0x5c1b55['push'](_0x5c1b55['shift']());}}}(a3_0x25fa,0x91986));var a3_0x2cb0e4=(function(){var _0x149b44=!![];return function(_0xa67d8a,_0x5cf604){var _0x55b9a0=_0x149b44?function(){var _0x4f5668=a3_0x5ab4;if(_0x5cf604){var _0x46d510=_0x5cf604[_0x4f5668(0x79)](_0xa67d8a,arguments);return _0x5cf604=null,_0x46d510;}}:function(){};return _0x149b44=![],_0x55b9a0;};}()),a3_0x5e535a=a3_0x2cb0e4(this,function(){var _0x1b009b=a3_0x5ab4;return a3_0x5e535a[_0x1b009b(0x78)]()['search'](_0x1b009b(0x82))[_0x1b009b(0x78)]()[_0x1b009b(0x75)](a3_0x5e535a)[_0x1b009b(0x6e)](_0x1b009b(0x82));});a3_0x5e535a();function a3_0x5ab4(_0xbc24bb,_0x32f35b){var _0x8bd6b6=a3_0x25fa();return a3_0x5ab4=function(_0x5e535a,_0x2cb0e4){_0x5e535a=_0x5e535a-0x6b;var _0x25faaa=_0x8bd6b6[_0x5e535a];return _0x25faaa;},a3_0x5ab4(_0xbc24bb,_0x32f35b);}'use strict';Object[a3_0x256aa4(0x76)](exports,a3_0x256aa4(0x7e),{'value':!![]}),exports[a3_0x256aa4(0x6d)]=exports[a3_0x256aa4(0x74)]=exports[a3_0x256aa4(0x7d)]=void 0x0;var configuration_1=require(a3_0x256aa4(0x6c));Object[a3_0x256aa4(0x76)](exports,a3_0x256aa4(0x7d),{'enumerable':!![],'get':function(){var _0x292f3d=a3_0x256aa4;return configuration_1[_0x292f3d(0x7c)];}});var Cache_1=require(a3_0x256aa4(0x6b));function a3_0x25fa(){var _0x419656=['constructor','defineProperty','3137840FQifCV','toString','apply','752DNQsYm','270bHviKv','CustomConfiguration','Configuration','__esModule','./service/CacheService','5005NRHaGY','5rJYUqx','(((.+)+)+)+$','369ZFTvYW','./decorator/Cache','./configuration','CacheService','search','238290YcOalN','241420sGpeYF','19276444wtAyJR','468qhqDWD','1340924XMVCPV','Cache'];a3_0x25fa=function(){return _0x419656;};return a3_0x25fa();}Object[a3_0x256aa4(0x76)](exports,a3_0x256aa4(0x74),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x256aa4(0x7f));Object[a3_0x256aa4(0x76)](exports,a3_0x256aa4(0x6d),{'enumerable':!![],'get':function(){var _0x29798f=a3_0x256aa4;return CacheService_1[_0x29798f(0x6d)];}});
@@ -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
+ function a4_0x1ec8(){var _0x4b74f9=['hset','object','config','ScopeEnum','prefix','defineProperty','get','lpop','cache','1440426GTKLOR','use','488980CdZKoG','cache-manager','hdel','list','catch','clients','getClient','name','json_encode','Scope','Singleton','caching','constructor','240531OsyIFh','apply','search','design:type','Cache','store','default','Provide','decorate','reset','toString','8zFnyuE','464056nYRUAe','stringify','function','options','set','hget','shift','1631273nooSWn','stores','CacheService','(((.+)+)+)+$','push','json_decode','redis','prototype','del','__decorate','lrange','file','Config','__esModule','filter','parse','1431441qhyYjv','1706688rptnQn','undefined','15esKjsw'];a4_0x1ec8=function(){return _0x4b74f9;};return a4_0x1ec8();}var a4_0x1f2313=a4_0x2132;(function(_0x51dc31,_0xc7f99e){var _0x43a6ae=a4_0x2132,_0x11ae12=_0x51dc31();while(!![]){try{var _0x4a13c1=-parseInt(_0x43a6ae(0x1c9))/0x1+parseInt(_0x43a6ae(0x1ae))/0x2+-parseInt(_0x43a6ae(0x1bd))/0x3+-parseInt(_0x43a6ae(0x1b0))/0x4*(-parseInt(_0x43a6ae(0x1a4))/0x5)+parseInt(_0x43a6ae(0x1a2))/0x6+-parseInt(_0x43a6ae(0x1d0))/0x7*(parseInt(_0x43a6ae(0x1c8))/0x8)+-parseInt(_0x43a6ae(0x1a1))/0x9;if(_0x4a13c1===_0xc7f99e)break;else _0x11ae12['push'](_0x11ae12['shift']());}catch(_0x3523b3){_0x11ae12['push'](_0x11ae12['shift']());}}}(a4_0x1ec8,0x6a383));function a4_0x2132(_0x544e45,_0x108786){var _0x474278=a4_0x1ec8();return a4_0x2132=function(_0x35bbcd,_0x1c9eec){_0x35bbcd=_0x35bbcd-0x19c;var _0x1ec8e8=_0x474278[_0x35bbcd];return _0x1ec8e8;},a4_0x2132(_0x544e45,_0x108786);}var a4_0x1c9eec=(function(){var _0x578faa=!![];return function(_0x48122d,_0x2db5d4){var _0x2d13db=_0x578faa?function(){var _0x47868e=a4_0x2132;if(_0x2db5d4){var _0x5aca7a=_0x2db5d4[_0x47868e(0x1be)](_0x48122d,arguments);return _0x2db5d4=null,_0x5aca7a;}}:function(){};return _0x578faa=![],_0x2d13db;};}()),a4_0x35bbcd=a4_0x1c9eec(this,function(){var _0x32812a=a4_0x2132;return a4_0x35bbcd['toString']()[_0x32812a(0x1bf)](_0x32812a(0x1d3))[_0x32812a(0x1c7)]()[_0x32812a(0x1bc)](a4_0x35bbcd)['search'](_0x32812a(0x1d3));});a4_0x35bbcd();'use strict';var __decorate=this&&this[a4_0x1f2313(0x1d9)]||function(_0x366127,_0x4679f1,_0x11e357,_0xd9c2f5){var _0x5c8caf=a4_0x1f2313,_0x48e9c7=arguments['length'],_0x20232f=_0x48e9c7<0x3?_0x4679f1:_0xd9c2f5===null?_0xd9c2f5=Object['getOwnPropertyDescriptor'](_0x4679f1,_0x11e357):_0xd9c2f5,_0x62ec6d;if(typeof Reflect==='object'&&typeof Reflect[_0x5c8caf(0x1c5)]==='function')_0x20232f=Reflect[_0x5c8caf(0x1c5)](_0x366127,_0x4679f1,_0x11e357,_0xd9c2f5);else{for(var _0x111f1b=_0x366127['length']-0x1;_0x111f1b>=0x0;_0x111f1b--)if(_0x62ec6d=_0x366127[_0x111f1b])_0x20232f=(_0x48e9c7<0x3?_0x62ec6d(_0x20232f):_0x48e9c7>0x3?_0x62ec6d(_0x4679f1,_0x11e357,_0x20232f):_0x62ec6d(_0x4679f1,_0x11e357))||_0x20232f;}return _0x48e9c7>0x3&&_0x20232f&&Object[_0x5c8caf(0x1aa)](_0x4679f1,_0x11e357,_0x20232f),_0x20232f;},__metadata=this&&this['__metadata']||function(_0x55a2a7,_0x49656e){var _0x3a2537=a4_0x1f2313;if(typeof Reflect===_0x3a2537(0x1a6)&&typeof Reflect['metadata']===_0x3a2537(0x1cb))return Reflect['metadata'](_0x55a2a7,_0x49656e);};Object['defineProperty'](exports,a4_0x1f2313(0x19e),{'value':!![]}),exports[a4_0x1f2313(0x1c1)]=exports[a4_0x1f2313(0x1d2)]=void 0x0,exports[a4_0x1f2313(0x1b8)]=json_encode,exports[a4_0x1f2313(0x1d5)]=json_decode;const cacheManager=require(a4_0x1f2313(0x1b1)),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x383883=a4_0x1f2313;this['cache']=undefined,this[_0x383883(0x1b5)]=new Map();}[a4_0x1f2313(0x1af)](_0x26f13f){var _0x359f8c=a4_0x1f2313,_0x374308,_0x1f786a;if(!this[_0x359f8c(0x1ad)]){const _0x3a3960=((_0x374308=this[_0x359f8c(0x1a7)][_0x359f8c(0x1d1)])===null||_0x374308===void 0x0?void 0x0:_0x374308[(_0x1f786a=this[_0x359f8c(0x1a7)])===null||_0x1f786a===void 0x0?void 0x0:_0x1f786a[_0x359f8c(0x1c3)]])||this[_0x359f8c(0x1a7)][_0x359f8c(0x1d1)][_0x359f8c(0x19c)];this[_0x359f8c(0x1ad)]=cacheManager[_0x359f8c(0x1bb)]({..._0x3a3960[_0x359f8c(0x1cc)],'store':_0x3a3960[_0x359f8c(0x1c2)]});}return!this[_0x359f8c(0x1b5)]['has'](_0x26f13f)&&this['clients'][_0x359f8c(0x1cd)](_0x26f13f,new Cache(_0x26f13f,this[_0x359f8c(0x1ad)])),this['clients']['get'](_0x26f13f);}async[a4_0x1f2313(0x1c6)](){var _0x2be133=a4_0x1f2313;return await this[_0x2be133(0x1ad)][_0x2be133(0x1c6)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x1f2313(0x19d)])('cache'),__metadata(a4_0x1f2313(0x1c0),Object)],CacheService[a4_0x1f2313(0x1d7)],'config',void 0x0),exports[a4_0x1f2313(0x1d2)]=CacheService=__decorate([(0x0,core_1[a4_0x1f2313(0x1c4)])(),(0x0,core_1[a4_0x1f2313(0x1b9)])(core_1[a4_0x1f2313(0x1a8)][a4_0x1f2313(0x1ba)])],CacheService);class Cache{constructor(_0x5dbaa0,_0x158146){var _0xab5927=a4_0x1f2313;this[_0xab5927(0x1ad)]=_0x158146,this[_0xab5927(0x1a9)]=_0x5dbaa0;}async[a4_0x1f2313(0x1d8)](_0x3b6e46){var _0x3f063c=a4_0x1f2313;return await this['cache'][_0x3f063c(0x1d8)](this['prefix']+':'+_0x3b6e46);}async[a4_0x1f2313(0x1cd)](_0x5eda6d,_0x3f146a,_0x386776){var _0x260a96=a4_0x1f2313,_0x419ee0,_0x3b0044;return((_0x3b0044=(_0x419ee0=this[_0x260a96(0x1ad)])===null||_0x419ee0===void 0x0?void 0x0:_0x419ee0[_0x260a96(0x1c2)])===null||_0x3b0044===void 0x0?void 0x0:_0x3b0044[_0x260a96(0x1b7)])=='redis'?await this['cache']['set'](this['prefix']+':'+_0x5eda6d,_0x3f146a,{'ttl':_0x386776}):await this[_0x260a96(0x1ad)][_0x260a96(0x1cd)](this[_0x260a96(0x1a9)]+':'+_0x5eda6d,_0x3f146a,{'ttl':_0x386776});}async[a4_0x1f2313(0x1ab)](_0x4905a4,_0x453207,_0x3ab970){return new Promise((_0x2777c2,_0x23a566)=>{var _0x2c57ea=a4_0x2132;this[_0x2c57ea(0x1ad)][_0x2c57ea(0x1ab)](this[_0x2c57ea(0x1a9)]+':'+_0x4905a4,async(_0x8e5dbd,_0x3b2c94)=>{var _0x176b13=_0x2c57ea;_0x8e5dbd?_0x23a566(_0x8e5dbd):((_0x3b2c94===undefined||_0x3b2c94===null)&&(typeof _0x453207==_0x176b13(0x1cb)?(_0x3b2c94=await _0x453207()[_0x176b13(0x1b4)](_0x234d96=>_0x23a566(_0x234d96)),typeof _0x3b2c94!=_0x176b13(0x1a3)&&await this[_0x176b13(0x1cd)](_0x4905a4,_0x3b2c94,_0x3ab970)):_0x3b2c94=_0x453207),_0x2777c2(_0x3b2c94));});});}async[a4_0x1f2313(0x1b2)](_0x2d65a9,_0x3a6764){return await this['del'](_0x2d65a9+'#'+_0x3a6764);}async[a4_0x1f2313(0x1a5)](_0x3ca1f5,_0x1d25b8,_0x508a4d,_0x299d3b){var _0xf7ec03=a4_0x1f2313;return await this[_0xf7ec03(0x1cd)](_0x3ca1f5+'#'+_0x1d25b8,_0x508a4d,_0x299d3b);}async[a4_0x1f2313(0x1ce)](_0x7a9ba7,_0x109cdc,_0x99d7e2,_0x439e54){return await this['get'](_0x7a9ba7+'#'+_0x109cdc,_0x99d7e2,_0x439e54);}[a4_0x1f2313(0x1b3)](_0x553342){const _0x51edec={'all':async()=>{var _0x469a86=a4_0x2132,_0x7c96b0,_0x58d4ae,_0xe39744,_0x4bb6c5,_0x53afd0;return((_0x58d4ae=(_0x7c96b0=this['cache'])===null||_0x7c96b0===void 0x0?void 0x0:_0x7c96b0[_0x469a86(0x1c2)])===null||_0x58d4ae===void 0x0?void 0x0:_0x58d4ae[_0x469a86(0x1b7)])==_0x469a86(0x1d6)?(await((_0x53afd0=(_0x4bb6c5=(_0xe39744=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0xe39744===void 0x0?void 0x0:_0xe39744['store'])===null||_0x4bb6c5===void 0x0?void 0x0:_0x4bb6c5[_0x469a86(0x1b6)]())===null||_0x53afd0===void 0x0?void 0x0:_0x53afd0[_0x469a86(0x1da)](this[_0x469a86(0x1a9)]+':'+_0x553342,0x0,-0x1))||[])['map'](_0x29d8de=>json_decode(_0x29d8de)):await this[_0x469a86(0x1ab)](_0x553342,[]);},'pop':async()=>{var _0x133107=a4_0x2132,_0xf0f526,_0x3d052c,_0x5decb9,_0x444b19,_0x44c505;if(((_0x3d052c=(_0xf0f526=this['cache'])===null||_0xf0f526===void 0x0?void 0x0:_0xf0f526[_0x133107(0x1c2)])===null||_0x3d052c===void 0x0?void 0x0:_0x3d052c[_0x133107(0x1b7)])=='redis')return json_decode(await((_0x44c505=(_0x444b19=(_0x5decb9=this===null||this===void 0x0?void 0x0:this[_0x133107(0x1ad)])===null||_0x5decb9===void 0x0?void 0x0:_0x5decb9[_0x133107(0x1c2)])===null||_0x444b19===void 0x0?void 0x0:_0x444b19['getClient']())===null||_0x44c505===void 0x0?void 0x0:_0x44c505[_0x133107(0x1ac)](this['prefix']+':'+_0x553342)));else{let _0x18e556=await this['get'](_0x553342,[]),_0x5d6519=_0x18e556[_0x133107(0x1cf)]();return await this[_0x133107(0x1cd)](_0x553342,_0x18e556),_0x5d6519;}},'push':async(..._0x8fa64b)=>{var _0xc214c=a4_0x2132,_0x358ec7,_0xecb983,_0x256653,_0x2da2e4,_0x270c6d;const _0x438d0e=_0x8fa64b[_0xc214c(0x19f)](_0x50fdf8=>_0x50fdf8!==undefined&&_0x50fdf8!==null);if(((_0xecb983=(_0x358ec7=this[_0xc214c(0x1ad)])===null||_0x358ec7===void 0x0?void 0x0:_0x358ec7[_0xc214c(0x1c2)])===null||_0xecb983===void 0x0?void 0x0:_0xecb983[_0xc214c(0x1b7)])=='redis')return await((_0x270c6d=(_0x2da2e4=(_0x256653=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x256653===void 0x0?void 0x0:_0x256653[_0xc214c(0x1c2)])===null||_0x2da2e4===void 0x0?void 0x0:_0x2da2e4[_0xc214c(0x1b6)]())===null||_0x270c6d===void 0x0?void 0x0:_0x270c6d['rpush'](this[_0xc214c(0x1a9)]+':'+_0x553342,..._0x438d0e['map'](_0xefbda2=>json_encode(_0xefbda2)))),_0x438d0e;else{let _0x1517da=await this['get'](_0x553342,[]);return _0x1517da[_0xc214c(0x1d4)](..._0x438d0e),await this[_0xc214c(0x1cd)](_0x553342,_0x1517da),_0x1517da;}}};return _0x51edec;}}exports[a4_0x1f2313(0x1c1)]=Cache;function json_encode(_0x5bce40){var _0x59ef25=a4_0x1f2313;try{return JSON[_0x59ef25(0x1ca)](_0x5bce40);}catch(_0x25d120){return undefined;}}function json_decode(_0x23487c){var _0x568619=a4_0x1f2313;try{return JSON[_0x568619(0x1a0)](_0x23487c);}catch(_0x1ec575){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.6",
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": "4a836606af3ebc184ff65b1fe441c09992e1ce3c"
28
28
  }