@anncic-api/cache 3.4.80 → 3.4.81

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_0x33285f=a0_0x17c1;function a0_0x1a84(){const _0x41918b=['(((.+)+)+)+$','file','cache-manager-fs-hash','appDir','1467804swfNYL','335139JEQSJP','100MkFzKD','10rqRjJt','335819UOrmDG','toString','env','defineProperty','name','apply','127.0.0.1','1690770iKKLYT','4BGBAwF','1eUelhm','7616637PhLjLR','constructor','1482882cqQKRp','40HiiCWa','cache-manager-ioredis','search','5235936wLHKbY'];a0_0x1a84=function(){return _0x41918b;};return a0_0x1a84();}function a0_0x17c1(_0x352f3e,_0x1478e3){const _0x5a71c5=a0_0x1a84();return a0_0x17c1=function(_0x374d7f,_0x1d579c){_0x374d7f=_0x374d7f-0x104;let _0x1a84fb=_0x5a71c5[_0x374d7f];return _0x1a84fb;},a0_0x17c1(_0x352f3e,_0x1478e3);}(function(_0x2970b8,_0xe90e4f){const _0x3dc5f1=a0_0x17c1,_0x43eaa7=_0x2970b8();while(!![]){try{const _0xaa408=parseInt(_0x3dc5f1(0x118))/0x1*(parseInt(_0x3dc5f1(0x11b))/0x2)+parseInt(_0x3dc5f1(0x116))/0x3*(parseInt(_0x3dc5f1(0x117))/0x4)+parseInt(_0x3dc5f1(0x10e))/0x5*(parseInt(_0x3dc5f1(0x10b))/0x6)+-parseInt(_0x3dc5f1(0x10c))/0x7*(-parseInt(_0x3dc5f1(0x11c))/0x8)+-parseInt(_0x3dc5f1(0x119))/0x9+parseInt(_0x3dc5f1(0x10d))/0xa*(-parseInt(_0x3dc5f1(0x10f))/0xb)+-parseInt(_0x3dc5f1(0x106))/0xc;if(_0xaa408===_0xe90e4f)break;else _0x43eaa7['push'](_0x43eaa7['shift']());}catch(_0x4eacf3){_0x43eaa7['push'](_0x43eaa7['shift']());}}}(a0_0x1a84,0x6cd4d));const a0_0x1d579c=(function(){let _0x508e9c=!![];return function(_0x332884,_0x581b4){const _0x38771c=_0x508e9c?function(){const _0x476bab=a0_0x17c1;if(_0x581b4){const _0x43dfc0=_0x581b4[_0x476bab(0x114)](_0x332884,arguments);return _0x581b4=null,_0x43dfc0;}}:function(){};return _0x508e9c=![],_0x38771c;};}()),a0_0x374d7f=a0_0x1d579c(this,function(){const _0x4a30ec=a0_0x17c1;return a0_0x374d7f['toString']()[_0x4a30ec(0x105)](_0x4a30ec(0x107))[_0x4a30ec(0x110)]()[_0x4a30ec(0x11a)](a0_0x374d7f)[_0x4a30ec(0x105)](_0x4a30ec(0x107));});a0_0x374d7f();'use strict';Object[a0_0x33285f(0x112)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x33285f(0x109)),redisStore=require(a0_0x33285f(0x104));exports['default']=_0xfe00e1=>{const _0x1d723e=a0_0x33285f;return{'cache':{'default':_0x1d723e(0x108),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0xfe00e1[_0x1d723e(0x10a)]+'/runtime/.cache'+((_0xfe00e1===null||_0xfe00e1===void 0x0?void 0x0:_0xfe00e1['env'])?'-'+_0xfe00e1['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x1d723e(0x115),'password':'','keyPrefix':_0xfe00e1[_0x1d723e(0x113)]+':'+((_0xfe00e1===null||_0xfe00e1===void 0x0?void 0x0:_0xfe00e1[_0x1d723e(0x111)])?_0xfe00e1[_0x1d723e(0x111)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
1
+ const a0_0x19e653=a0_0x5c41;(function(_0x5709bf,_0xd76ebc){const _0x4210c0=a0_0x5c41,_0xe14823=_0x5709bf();while(!![]){try{const _0x211762=-parseInt(_0x4210c0(0x135))/0x1+-parseInt(_0x4210c0(0x124))/0x2+parseInt(_0x4210c0(0x12d))/0x3*(parseInt(_0x4210c0(0x136))/0x4)+-parseInt(_0x4210c0(0x12c))/0x5*(-parseInt(_0x4210c0(0x139))/0x6)+-parseInt(_0x4210c0(0x137))/0x7+parseInt(_0x4210c0(0x125))/0x8*(parseInt(_0x4210c0(0x126))/0x9)+-parseInt(_0x4210c0(0x128))/0xa*(parseInt(_0x4210c0(0x123))/0xb);if(_0x211762===_0xd76ebc)break;else _0xe14823['push'](_0xe14823['shift']());}catch(_0x591a85){_0xe14823['push'](_0xe14823['shift']());}}}(a0_0x58a7,0x43b7b));const a0_0x211df1=(function(){let _0x4b9390=!![];return function(_0x3bc3b1,_0x155ee0){const _0x467f9e=_0x4b9390?function(){const _0x479463=a0_0x5c41;if(_0x155ee0){const _0x5e5a1b=_0x155ee0[_0x479463(0x12b)](_0x3bc3b1,arguments);return _0x155ee0=null,_0x5e5a1b;}}:function(){};return _0x4b9390=![],_0x467f9e;};}()),a0_0x524048=a0_0x211df1(this,function(){const _0x4b113e=a0_0x5c41;return a0_0x524048['toString']()[_0x4b113e(0x129)](_0x4b113e(0x133))['toString']()['constructor'](a0_0x524048)[_0x4b113e(0x129)](_0x4b113e(0x133));});a0_0x524048();function a0_0x58a7(){const _0x210192=['260jIRPbJ','search','cache-manager-fs-hash','apply','575jGQyWb','54vLZdMC','__esModule','127.0.0.1','cache-manager-ioredis','appDir','env','(((.+)+)+)+$','memory','127486nEbsDI','54444rSGlDn','1258061xtXFEP','defineProperty','10104slpqMV','16434ottsaA','185702mQccSI','76584YcLZsG','261TjXeyH','/runtime/.cache'];a0_0x58a7=function(){return _0x210192;};return a0_0x58a7();}function a0_0x5c41(_0x411709,_0x3834e1){const _0x439c9b=a0_0x58a7();return a0_0x5c41=function(_0x524048,_0x211df1){_0x524048=_0x524048-0x123;let _0x58a786=_0x439c9b[_0x524048];return _0x58a786;},a0_0x5c41(_0x411709,_0x3834e1);}'use strict';Object[a0_0x19e653(0x138)](exports,a0_0x19e653(0x12e),{'value':!![]});const fsStore=require(a0_0x19e653(0x12a)),redisStore=require(a0_0x19e653(0x130));exports['default']=_0x481d93=>{const _0x119053=a0_0x19e653;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x481d93[_0x119053(0x131)]+_0x119053(0x127)+((_0x481d93===null||_0x481d93===void 0x0?void 0x0:_0x481d93[_0x119053(0x132)])?'-'+_0x481d93[_0x119053(0x132)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x119053(0x12f),'password':'','keyPrefix':_0x481d93['name']+':'+((_0x481d93===null||_0x481d93===void 0x0?void 0x0:_0x481d93['env'])?_0x481d93[_0x119053(0x132)]+':':'')}},'memory':{'store':_0x119053(0x134),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x12844e=a1_0x5bb7;function a1_0x5bb7(_0x34631a,_0x2252df){var _0x2db921=a1_0x190c();return a1_0x5bb7=function(_0x32fabb,_0x15241c){_0x32fabb=_0x32fabb-0x146;var _0x190c1e=_0x2db921[_0x32fabb];return _0x190c1e;},a1_0x5bb7(_0x34631a,_0x2252df);}function a1_0x190c(){var _0x1818d1=['530439HXgpDR','Configuration','CustomConfiguration','168252ONImFe','1820286QEwHca','./config/config.default','311760bxAGyE','length','44552YajYdB','235660KBEepN','defineProperty','search','getOwnPropertyDescriptor','2rzRgsK','(((.+)+)+)+$','25UKQCGG','__esModule','35FqjRBk','anncic-api:cache','117133cBxDHC','decorate','constructor','toString'];a1_0x190c=function(){return _0x1818d1;};return a1_0x190c();}(function(_0x51c9d7,_0x283f75){var _0x5c8d74=a1_0x5bb7,_0x23b7ad=_0x51c9d7();while(!![]){try{var _0x33ad63=parseInt(_0x5c8d74(0x149))/0x1*(-parseInt(_0x5c8d74(0x15a))/0x2)+parseInt(_0x5c8d74(0x14d))/0x3+parseInt(_0x5c8d74(0x156))/0x4+-parseInt(_0x5c8d74(0x15c))/0x5*(parseInt(_0x5c8d74(0x150))/0x6)+parseInt(_0x5c8d74(0x147))/0x7*(-parseInt(_0x5c8d74(0x155))/0x8)+parseInt(_0x5c8d74(0x151))/0x9+-parseInt(_0x5c8d74(0x153))/0xa;if(_0x33ad63===_0x283f75)break;else _0x23b7ad['push'](_0x23b7ad['shift']());}catch(_0x5c00fa){_0x23b7ad['push'](_0x23b7ad['shift']());}}}(a1_0x190c,0x1db12));var a1_0x15241c=(function(){var _0x5c8528=!![];return function(_0x19f059,_0x602495){var _0x4350f6=_0x5c8528?function(){if(_0x602495){var _0x4efff8=_0x602495['apply'](_0x19f059,arguments);return _0x602495=null,_0x4efff8;}}:function(){};return _0x5c8528=![],_0x4350f6;};}()),a1_0x32fabb=a1_0x15241c(this,function(){var _0x5172e5=a1_0x5bb7;return a1_0x32fabb['toString']()[_0x5172e5(0x158)](_0x5172e5(0x15b))[_0x5172e5(0x14c)]()[_0x5172e5(0x14b)](a1_0x32fabb)[_0x5172e5(0x158)]('(((.+)+)+)+$');});a1_0x32fabb();'use strict';var __decorate=this&&this['__decorate']||function(_0x47922c,_0x485600,_0x3a6d5b,_0x13867f){var _0x5864d2=a1_0x5bb7,_0x322d97=arguments[_0x5864d2(0x154)],_0x97988b=_0x322d97<0x3?_0x485600:_0x13867f===null?_0x13867f=Object[_0x5864d2(0x159)](_0x485600,_0x3a6d5b):_0x13867f,_0x19c05c;if(typeof Reflect==='object'&&typeof Reflect[_0x5864d2(0x14a)]==='function')_0x97988b=Reflect[_0x5864d2(0x14a)](_0x47922c,_0x485600,_0x3a6d5b,_0x13867f);else{for(var _0x3df291=_0x47922c[_0x5864d2(0x154)]-0x1;_0x3df291>=0x0;_0x3df291--)if(_0x19c05c=_0x47922c[_0x3df291])_0x97988b=(_0x322d97<0x3?_0x19c05c(_0x97988b):_0x322d97>0x3?_0x19c05c(_0x485600,_0x3a6d5b,_0x97988b):_0x19c05c(_0x485600,_0x3a6d5b))||_0x97988b;}return _0x322d97>0x3&&_0x97988b&&Object[_0x5864d2(0x157)](_0x485600,_0x3a6d5b,_0x97988b),_0x97988b;};Object[a1_0x12844e(0x157)](exports,a1_0x12844e(0x146),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x12844e(0x152));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x12844e(0x14f)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x12844e(0x14e)])({'conflictCheck':![],'namespace':a1_0x12844e(0x148),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x1cd709=a1_0x2f95;(function(_0x48590b,_0x3d4e0c){var _0x32b3fe=a1_0x2f95,_0x4b77f9=_0x48590b();while(!![]){try{var _0x505adb=parseInt(_0x32b3fe(0x98))/0x1+parseInt(_0x32b3fe(0xae))/0x2*(parseInt(_0x32b3fe(0xac))/0x3)+parseInt(_0x32b3fe(0x99))/0x4+parseInt(_0x32b3fe(0x9b))/0x5+-parseInt(_0x32b3fe(0xa9))/0x6*(parseInt(_0x32b3fe(0xa2))/0x7)+-parseInt(_0x32b3fe(0xa5))/0x8*(parseInt(_0x32b3fe(0x9f))/0x9)+-parseInt(_0x32b3fe(0xa7))/0xa;if(_0x505adb===_0x3d4e0c)break;else _0x4b77f9['push'](_0x4b77f9['shift']());}catch(_0x3b7120){_0x4b77f9['push'](_0x4b77f9['shift']());}}}(a1_0x5bf2,0x41dfb));var a1_0x53a727=(function(){var _0x10d931=!![];return function(_0x186db7,_0x1cd66e){var _0xadadb0=_0x10d931?function(){if(_0x1cd66e){var _0x55ef53=_0x1cd66e['apply'](_0x186db7,arguments);return _0x1cd66e=null,_0x55ef53;}}:function(){};return _0x10d931=![],_0xadadb0;};}()),a1_0x5446e3=a1_0x53a727(this,function(){var _0x1b2074=a1_0x2f95;return a1_0x5446e3[_0x1b2074(0xa0)]()[_0x1b2074(0xaf)](_0x1b2074(0xab))['toString']()[_0x1b2074(0x9a)](a1_0x5446e3)['search'](_0x1b2074(0xab));});function a1_0x2f95(_0x882c1,_0x448826){var _0x514708=a1_0x5bf2();return a1_0x2f95=function(_0x5446e3,_0x53a727){_0x5446e3=_0x5446e3-0x98;var _0x5bf2cc=_0x514708[_0x5446e3];return _0x5bf2cc;},a1_0x2f95(_0x882c1,_0x448826);}a1_0x5446e3();'use strict';var __decorate=this&&this[a1_0x1cd709(0xa6)]||function(_0x2c946f,_0x178e0e,_0x45c069,_0x1a04e0){var _0x423359=a1_0x1cd709,_0x140c47=arguments[_0x423359(0xad)],_0x47d95d=_0x140c47<0x3?_0x178e0e:_0x1a04e0===null?_0x1a04e0=Object[_0x423359(0x9c)](_0x178e0e,_0x45c069):_0x1a04e0,_0x51d22f;if(typeof Reflect===_0x423359(0x9d)&&typeof Reflect['decorate']==='function')_0x47d95d=Reflect['decorate'](_0x2c946f,_0x178e0e,_0x45c069,_0x1a04e0);else{for(var _0x4acfd4=_0x2c946f[_0x423359(0xad)]-0x1;_0x4acfd4>=0x0;_0x4acfd4--)if(_0x51d22f=_0x2c946f[_0x4acfd4])_0x47d95d=(_0x140c47<0x3?_0x51d22f(_0x47d95d):_0x140c47>0x3?_0x51d22f(_0x178e0e,_0x45c069,_0x47d95d):_0x51d22f(_0x178e0e,_0x45c069))||_0x47d95d;}return _0x140c47>0x3&&_0x47d95d&&Object['defineProperty'](_0x178e0e,_0x45c069,_0x47d95d),_0x47d95d;};Object['defineProperty'](exports,a1_0x1cd709(0x9e),{'value':!![]}),exports[a1_0x1cd709(0xa4)]=void 0x0;const core_1=require(a1_0x1cd709(0xaa)),ConfigDefault=require(a1_0x1cd709(0xa1));function a1_0x5bf2(){var _0x28eec2=['420039SUdZJa','toString','./config/config.default','2118347TcEpPb','Configuration','CustomConfiguration','8UPLNTC','__decorate','2374750kieikD','anncic-api:cache','6ejSoFh','@midwayjs/core','(((.+)+)+)+$','35385HXkdYd','length','34dOjQtB','search','210927bDbIyr','665764ndtoUy','constructor','1393515FxzPin','getOwnPropertyDescriptor','object','__esModule'];a1_0x5bf2=function(){return _0x28eec2;};return a1_0x5bf2();}let CustomConfiguration=class CustomConfiguration{};exports[a1_0x1cd709(0xa4)]=CustomConfiguration,exports[a1_0x1cd709(0xa4)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1cd709(0xa3)])({'conflictCheck':![],'namespace':a1_0x1cd709(0xa8),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x4c5f19=a2_0x5619;(function(_0x445739,_0x3252fc){const _0x371afb=a2_0x5619,_0x4ccb97=_0x445739();while(!![]){try{const _0x470617=-parseInt(_0x371afb(0x11f))/0x1+-parseInt(_0x371afb(0x124))/0x2*(-parseInt(_0x371afb(0x116))/0x3)+-parseInt(_0x371afb(0x121))/0x4*(-parseInt(_0x371afb(0x114))/0x5)+-parseInt(_0x371afb(0x123))/0x6*(parseInt(_0x371afb(0x119))/0x7)+-parseInt(_0x371afb(0x125))/0x8*(-parseInt(_0x371afb(0x127))/0x9)+-parseInt(_0x371afb(0x12d))/0xa+-parseInt(_0x371afb(0x11a))/0xb*(-parseInt(_0x371afb(0x115))/0xc);if(_0x470617===_0x3252fc)break;else _0x4ccb97['push'](_0x4ccb97['shift']());}catch(_0x22e4db){_0x4ccb97['push'](_0x4ccb97['shift']());}}}(a2_0xbb8e,0x2de69));const a2_0x43fb54=(function(){let _0x1282fc=!![];return function(_0x65c471,_0x1ce326){const _0x144ea7=_0x1282fc?function(){const _0x3e1863=a2_0x5619;if(_0x1ce326){const _0x47ddec=_0x1ce326[_0x3e1863(0x129)](_0x65c471,arguments);return _0x1ce326=null,_0x47ddec;}}:function(){};return _0x1282fc=![],_0x144ea7;};}()),a2_0x5a055e=a2_0x43fb54(this,function(){const _0x4b3790=a2_0x5619;return a2_0x5a055e[_0x4b3790(0x12c)]()[_0x4b3790(0x12a)]('(((.+)+)+)+$')[_0x4b3790(0x12c)]()['constructor'](a2_0x5a055e)[_0x4b3790(0x12a)](_0x4b3790(0x11e));});function a2_0xbb8e(){const _0xcaa404=['../service/CacheService','toString','675390hADDAz','use','value','Cache','@midwayjs/core','1053215WLmJlP','60vjAXop','57QnuMHW','defineProperty','Method::Decorator','3514GozRui','147642AymwFV','REQUEST_OBJ_CTX_KEY','get','crypto-js','(((.+)+)+)+$','46973wHCKWt','parse','4OqyiGy','CacheService','4038LSHtCJ','21046UVltjr','8vbSNNG','stringify','1464093wlmMnj','getAsync','apply','search'];a2_0xbb8e=function(){return _0xcaa404;};return a2_0xbb8e();}a2_0x5a055e();function a2_0x5619(_0x43180d,_0x12c3ea){const _0x583162=a2_0xbb8e();return a2_0x5619=function(_0x5a055e,_0x43fb54){_0x5a055e=_0x5a055e-0x111;let _0xbb8ed5=_0x583162[_0x5a055e];return _0xbb8ed5;},a2_0x5619(_0x43180d,_0x12c3ea);}'use strict';Object[a2_0x4c5f19(0x117)](exports,'__esModule',{'value':!![]}),exports[a2_0x4c5f19(0x112)]=Cache;const crypto_js_1=require(a2_0x4c5f19(0x11d)),CacheService_1=require(a2_0x4c5f19(0x12b)),core_1=require(a2_0x4c5f19(0x113));function json_encode(_0x23357c){const _0x385b01=a2_0x4c5f19;try{return JSON[_0x385b01(0x126)](_0x23357c);}catch(_0x2e7da6){return undefined;}}function Cache(_0x41a17c,_0x2b6d41){return(_0x36fa3d,_0x17a8f5,_0x2236a7)=>{const _0x4afa78=a2_0x5619,_0x17b35b=_0x2236a7[_0x4afa78(0x111)];return _0x2236a7[_0x4afa78(0x111)]=async function(..._0x594174){const _0x2d5d6f=_0x4afa78;_0x41a17c=(_0x41a17c?''+_0x41a17c:''+(_0x17a8f5||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x594174))[_0x2d5d6f(0x12c)]();let _0x3a04bd=await this[core_1[_0x2d5d6f(0x11b)]]['app']['getApplicationContext']()[_0x2d5d6f(0x128)](CacheService_1[_0x2d5d6f(0x122)]),_0x54077c=await _0x3a04bd[_0x2d5d6f(0x12e)](_0x2d5d6f(0x118))[_0x2d5d6f(0x11c)](_0x41a17c);if(_0x54077c)return JSON[_0x2d5d6f(0x120)](_0x54077c);else _0x54077c=await _0x17b35b[_0x2d5d6f(0x129)](this,[..._0x594174]),await _0x3a04bd['use']('Method::Decorator')['set'](_0x41a17c,JSON[_0x2d5d6f(0x126)](_0x54077c),_0x2b6d41);return _0x54077c;},_0x2236a7;};}
1
+ const a2_0x1bc7e7=a2_0x281c;function a2_0x29d6(){const _0x1e4f0c=['__esModule','383MlHQJR','use','get','constructor','4554qWFmKi','search','3651110piYKNr','188523fqhAEq','REQUEST_OBJ_CTX_KEY','Method::Decorator','../service/CacheService','crypto-js','MD5','52hjsrCM','1123507QmFHhY','apply','CacheService','defineProperty','5640054QfedCA','334ORuruZ','getAsync','20710jZNQtn','toString','2181728tdNbQK','stringify','(((.+)+)+)+$','value','Cache','@midwayjs/core','getApplicationContext','set'];a2_0x29d6=function(){return _0x1e4f0c;};return a2_0x29d6();}(function(_0x4fba08,_0x22c9b7){const _0x4587e1=a2_0x281c,_0x127238=_0x4fba08();while(!![]){try{const _0xcf2829=parseInt(_0x4587e1(0x119))/0x1*(parseInt(_0x4587e1(0x10c))/0x2)+-parseInt(_0x4587e1(0x120))/0x3*(parseInt(_0x4587e1(0x126))/0x4)+parseInt(_0x4587e1(0x11f))/0x5+-parseInt(_0x4587e1(0x10b))/0x6+parseInt(_0x4587e1(0x107))/0x7+parseInt(_0x4587e1(0x110))/0x8+parseInt(_0x4587e1(0x11d))/0x9*(parseInt(_0x4587e1(0x10e))/0xa);if(_0xcf2829===_0x22c9b7)break;else _0x127238['push'](_0x127238['shift']());}catch(_0x360942){_0x127238['push'](_0x127238['shift']());}}}(a2_0x29d6,0x7e8f0));function a2_0x281c(_0x22e890,_0x1f8400){const _0x13439d=a2_0x29d6();return a2_0x281c=function(_0x569242,_0x378916){_0x569242=_0x569242-0x107;let _0x29d6dc=_0x13439d[_0x569242];return _0x29d6dc;},a2_0x281c(_0x22e890,_0x1f8400);}const a2_0x378916=(function(){let _0x4b03ba=!![];return function(_0x3f29ab,_0x15e345){const _0x1f20e2=_0x4b03ba?function(){if(_0x15e345){const _0x10aebf=_0x15e345['apply'](_0x3f29ab,arguments);return _0x15e345=null,_0x10aebf;}}:function(){};return _0x4b03ba=![],_0x1f20e2;};}()),a2_0x569242=a2_0x378916(this,function(){const _0x2b70bc=a2_0x281c;return a2_0x569242[_0x2b70bc(0x10f)]()[_0x2b70bc(0x11e)](_0x2b70bc(0x112))[_0x2b70bc(0x10f)]()[_0x2b70bc(0x11c)](a2_0x569242)['search'](_0x2b70bc(0x112));});a2_0x569242();'use strict';Object[a2_0x1bc7e7(0x10a)](exports,a2_0x1bc7e7(0x118),{'value':!![]}),exports[a2_0x1bc7e7(0x114)]=Cache;const crypto_js_1=require(a2_0x1bc7e7(0x124)),CacheService_1=require(a2_0x1bc7e7(0x123)),core_1=require(a2_0x1bc7e7(0x115));function json_encode(_0x56eb66){const _0x82df60=a2_0x1bc7e7;try{return JSON[_0x82df60(0x111)](_0x56eb66);}catch(_0x390eea){return undefined;}}function Cache(_0x28f5c3,_0x57945e){return(_0x83737e,_0x13361a,_0x1ccabb)=>{const _0xa21251=a2_0x281c,_0x3e1072=_0x1ccabb[_0xa21251(0x113)];return _0x1ccabb['value']=async function(..._0x1c7533){const _0x5c7c83=_0xa21251;_0x28f5c3=(_0x28f5c3?''+_0x28f5c3:''+(_0x13361a||''))+'.'+(0x0,crypto_js_1[_0x5c7c83(0x125)])(json_encode(_0x1c7533))[_0x5c7c83(0x10f)]();let _0xa1074d=await this[core_1[_0x5c7c83(0x121)]]['app'][_0x5c7c83(0x116)]()[_0x5c7c83(0x10d)](CacheService_1[_0x5c7c83(0x109)]),_0xdc6201=await _0xa1074d[_0x5c7c83(0x11a)](_0x5c7c83(0x122))[_0x5c7c83(0x11b)](_0x28f5c3);if(_0xdc6201)return JSON['parse'](_0xdc6201);else _0xdc6201=await _0x3e1072[_0x5c7c83(0x108)](this,[..._0x1c7533]),await _0xa1074d['use']('Method::Decorator')[_0x5c7c83(0x117)](_0x28f5c3,JSON[_0x5c7c83(0x111)](_0xdc6201),_0x57945e);return _0xdc6201;},_0x1ccabb;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x553c13=a3_0x46a1;(function(_0x443b18,_0x2c31c2){var _0xc2c4a0=a3_0x46a1,_0x28a927=_0x443b18();while(!![]){try{var _0x4e2bbc=parseInt(_0xc2c4a0(0x1aa))/0x1+-parseInt(_0xc2c4a0(0x1b4))/0x2*(parseInt(_0xc2c4a0(0x1a5))/0x3)+-parseInt(_0xc2c4a0(0x1ac))/0x4*(parseInt(_0xc2c4a0(0x1b1))/0x5)+-parseInt(_0xc2c4a0(0x1b2))/0x6*(parseInt(_0xc2c4a0(0x1ae))/0x7)+parseInt(_0xc2c4a0(0x1b9))/0x8+-parseInt(_0xc2c4a0(0x1b5))/0x9+-parseInt(_0xc2c4a0(0x1a9))/0xa*(-parseInt(_0xc2c4a0(0x1a4))/0xb);if(_0x4e2bbc===_0x2c31c2)break;else _0x28a927['push'](_0x28a927['shift']());}catch(_0x2b8d26){_0x28a927['push'](_0x28a927['shift']());}}}(a3_0x5232,0x2c026));var a3_0x5663b6=(function(){var _0x1d2af3=!![];return function(_0x3361a8,_0xc109eb){var _0x27a2bd=_0x1d2af3?function(){var _0x43d7bc=a3_0x46a1;if(_0xc109eb){var _0x4c06ad=_0xc109eb[_0x43d7bc(0x1b3)](_0x3361a8,arguments);return _0xc109eb=null,_0x4c06ad;}}:function(){};return _0x1d2af3=![],_0x27a2bd;};}()),a3_0x43b0fc=a3_0x5663b6(this,function(){var _0x26b96f=a3_0x46a1;return a3_0x43b0fc[_0x26b96f(0x1b8)]()[_0x26b96f(0x1af)](_0x26b96f(0x1ab))[_0x26b96f(0x1b8)]()[_0x26b96f(0x1a8)](a3_0x43b0fc)[_0x26b96f(0x1af)](_0x26b96f(0x1ab));});a3_0x43b0fc();'use strict';Object[a3_0x553c13(0x1a7)](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x553c13(0x1ad));Object[a3_0x553c13(0x1a7)](exports,a3_0x553c13(0x1a6),{'enumerable':!![],'get':function(){var _0x598748=a3_0x553c13;return configuration_1[_0x598748(0x1b0)];}});var Cache_1=require('./decorator/Cache');function a3_0x46a1(_0x4d3045,_0x12993a){var _0x589d36=a3_0x5232();return a3_0x46a1=function(_0x43b0fc,_0x5663b6){_0x43b0fc=_0x43b0fc-0x1a3;var _0x5232ac=_0x589d36[_0x43b0fc];return _0x5232ac;},a3_0x46a1(_0x4d3045,_0x12993a);}Object[a3_0x553c13(0x1a7)](exports,a3_0x553c13(0x1b6),{'enumerable':!![],'get':function(){var _0x919eac=a3_0x553c13;return Cache_1[_0x919eac(0x1b6)];}});function a3_0x5232(){var _0xc94f29=['constructor','20MsjQVv','36148sWZGBN','(((.+)+)+)+$','52BeKOzx','./configuration','448zqoumd','search','CustomConfiguration','77065lSSNlj','26790zYDacV','apply','34RMAQVc','2136087DQxqyo','Cache','./service/CacheService','toString','1994576HUeqUW','CacheService','4753771QREOrO','43422IJJLkd','Configuration','defineProperty'];a3_0x5232=function(){return _0xc94f29;};return a3_0x5232();}var CacheService_1=require(a3_0x553c13(0x1b7));Object['defineProperty'](exports,a3_0x553c13(0x1a3),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ var a3_0x42fb6c=a3_0x21d5;(function(_0x13a8aa,_0x322781){var _0x1d32f5=a3_0x21d5,_0x1ec5b4=_0x13a8aa();while(!![]){try{var _0x4674f5=parseInt(_0x1d32f5(0x10a))/0x1+-parseInt(_0x1d32f5(0x115))/0x2+parseInt(_0x1d32f5(0x112))/0x3+-parseInt(_0x1d32f5(0x114))/0x4*(parseInt(_0x1d32f5(0x116))/0x5)+-parseInt(_0x1d32f5(0x10e))/0x6+-parseInt(_0x1d32f5(0x119))/0x7+parseInt(_0x1d32f5(0x118))/0x8;if(_0x4674f5===_0x322781)break;else _0x1ec5b4['push'](_0x1ec5b4['shift']());}catch(_0x365c44){_0x1ec5b4['push'](_0x1ec5b4['shift']());}}}(a3_0x5d79,0xe85f8));var a3_0x5a8732=(function(){var _0x5d731f=!![];return function(_0x2893ec,_0x5047c4){var _0x546f9b=_0x5d731f?function(){var _0x39c6f9=a3_0x21d5;if(_0x5047c4){var _0x1f4fd3=_0x5047c4[_0x39c6f9(0x11a)](_0x2893ec,arguments);return _0x5047c4=null,_0x1f4fd3;}}:function(){};return _0x5d731f=![],_0x546f9b;};}()),a3_0x16133e=a3_0x5a8732(this,function(){var _0x1b21eb=a3_0x21d5;return a3_0x16133e[_0x1b21eb(0x11c)]()['search'](_0x1b21eb(0x10d))['toString']()[_0x1b21eb(0x10c)](a3_0x16133e)[_0x1b21eb(0x110)](_0x1b21eb(0x10d));});a3_0x16133e();'use strict';Object[a3_0x42fb6c(0x111)](exports,'__esModule',{'value':!![]}),exports[a3_0x42fb6c(0x113)]=exports[a3_0x42fb6c(0x10f)]=exports['Configuration']=void 0x0;var configuration_1=require('./configuration');function a3_0x21d5(_0x175b57,_0x920617){var _0x49c375=a3_0x5d79();return a3_0x21d5=function(_0x16133e,_0x5a8732){_0x16133e=_0x16133e-0x10a;var _0x5d7921=_0x49c375[_0x16133e];return _0x5d7921;},a3_0x21d5(_0x175b57,_0x920617);}Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x207f56=a3_0x42fb6c;return configuration_1[_0x207f56(0x117)];}});var Cache_1=require(a3_0x42fb6c(0x10b));Object[a3_0x42fb6c(0x111)](exports,a3_0x42fb6c(0x10f),{'enumerable':!![],'get':function(){var _0x28f338=a3_0x42fb6c;return Cache_1[_0x28f338(0x10f)];}});var CacheService_1=require(a3_0x42fb6c(0x11b));Object[a3_0x42fb6c(0x111)](exports,a3_0x42fb6c(0x113),{'enumerable':!![],'get':function(){var _0x4696e1=a3_0x42fb6c;return CacheService_1[_0x4696e1(0x113)];}});function a3_0x5d79(){var _0x53e7fc=['22945672wcPoTm','4834410xaGCja','apply','./service/CacheService','toString','500888cOQLqK','./decorator/Cache','constructor','(((.+)+)+)+$','5278680QcCrMl','Cache','search','defineProperty','464196IAaDAn','CacheService','12GEhsMO','600330lUbGyX','1169090gJVyiy','CustomConfiguration'];a3_0x5d79=function(){return _0x53e7fc;};return a3_0x5d79();}
@@ -1 +1 @@
1
- var a4_0x13b99f=a4_0x2965;function a4_0x2363(){var _0x2f0cb2=['856hdevJD','cache','redis','default','name','constructor','store','hget','799552KGYHxG','reset','Scope','length','4KhtXRd','design:type','Singleton','55yxAVAC','config','Cache','cache-manager','decorate','get','stores','filter','7pBfhpB','list','object','hset','set','has','use','6bgLqYK','clients','toString','search','6557110nescKG','prefix','metadata','del','(((.+)+)+)+$','__decorate','getOwnPropertyDescriptor','catch','defineProperty','parse','Config','6475970FtlAwb','@midwayjs/core','json_decode','options','function','__esModule','CacheService','7898628szwAsu','6911778MgznBZ','1367049pPHeXT','map','108387oWsYKw','lrange','__metadata','undefined','Provide','getClient'];a4_0x2363=function(){return _0x2f0cb2;};return a4_0x2363();}(function(_0x329884,_0x1b0d0d){var _0xd2dff6=a4_0x2965,_0x49e4a4=_0x329884();while(!![]){try{var _0x4e94f3=parseInt(_0xd2dff6(0xfc))/0x1+parseInt(_0xd2dff6(0x112))/0x2*(parseInt(_0xd2dff6(0x12a))/0x3)+parseInt(_0xd2dff6(0x100))/0x4*(parseInt(_0xd2dff6(0x121))/0x5)+-parseInt(_0xd2dff6(0x129))/0x6*(-parseInt(_0xd2dff6(0x10b))/0x7)+-parseInt(_0xd2dff6(0xf4))/0x8*(parseInt(_0xd2dff6(0x12c))/0x9)+parseInt(_0xd2dff6(0x116))/0xa+-parseInt(_0xd2dff6(0x103))/0xb*(parseInt(_0xd2dff6(0x128))/0xc);if(_0x4e94f3===_0x1b0d0d)break;else _0x49e4a4['push'](_0x49e4a4['shift']());}catch(_0x411e37){_0x49e4a4['push'](_0x49e4a4['shift']());}}}(a4_0x2363,0xa866d));var a4_0x1201c8=(function(){var _0xf7ccb5=!![];return function(_0x4b5e26,_0x4a8ee8){var _0x25c906=_0xf7ccb5?function(){if(_0x4a8ee8){var _0x124a25=_0x4a8ee8['apply'](_0x4b5e26,arguments);return _0x4a8ee8=null,_0x124a25;}}:function(){};return _0xf7ccb5=![],_0x25c906;};}()),a4_0xc932a7=a4_0x1201c8(this,function(){var _0x1897d6=a4_0x2965;return a4_0xc932a7[_0x1897d6(0x114)]()[_0x1897d6(0x115)](_0x1897d6(0x11a))['toString']()[_0x1897d6(0xf9)](a4_0xc932a7)[_0x1897d6(0x115)](_0x1897d6(0x11a));});a4_0xc932a7();'use strict';var __decorate=this&&this[a4_0x13b99f(0x11b)]||function(_0x5684ea,_0x249346,_0x1ce60f,_0x404914){var _0x29766e=a4_0x13b99f,_0x4d7b49=arguments[_0x29766e(0xff)],_0x2e272d=_0x4d7b49<0x3?_0x249346:_0x404914===null?_0x404914=Object[_0x29766e(0x11c)](_0x249346,_0x1ce60f):_0x404914,_0x387233;if(typeof Reflect===_0x29766e(0x10d)&&typeof Reflect[_0x29766e(0x107)]===_0x29766e(0x125))_0x2e272d=Reflect[_0x29766e(0x107)](_0x5684ea,_0x249346,_0x1ce60f,_0x404914);else{for(var _0x1acceb=_0x5684ea['length']-0x1;_0x1acceb>=0x0;_0x1acceb--)if(_0x387233=_0x5684ea[_0x1acceb])_0x2e272d=(_0x4d7b49<0x3?_0x387233(_0x2e272d):_0x4d7b49>0x3?_0x387233(_0x249346,_0x1ce60f,_0x2e272d):_0x387233(_0x249346,_0x1ce60f))||_0x2e272d;}return _0x4d7b49>0x3&&_0x2e272d&&Object[_0x29766e(0x11e)](_0x249346,_0x1ce60f,_0x2e272d),_0x2e272d;},__metadata=this&&this[a4_0x13b99f(0x12e)]||function(_0x37a187,_0x35e6b1){var _0x39f852=a4_0x13b99f;if(typeof Reflect==='object'&&typeof Reflect[_0x39f852(0x118)]===_0x39f852(0x125))return Reflect[_0x39f852(0x118)](_0x37a187,_0x35e6b1);};function a4_0x2965(_0x25f6ad,_0x550ef5){var _0x258374=a4_0x2363();return a4_0x2965=function(_0xc932a7,_0x1201c8){_0xc932a7=_0xc932a7-0xf1;var _0x2363a7=_0x258374[_0xc932a7];return _0x2363a7;},a4_0x2965(_0x25f6ad,_0x550ef5);}Object['defineProperty'](exports,a4_0x13b99f(0x126),{'value':!![]}),exports[a4_0x13b99f(0x105)]=exports[a4_0x13b99f(0x127)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x13b99f(0x123)]=json_decode;const cacheManager=require(a4_0x13b99f(0x106)),core_1=require(a4_0x13b99f(0x122));let CacheService=class CacheService{constructor(){var _0x3de17f=a4_0x13b99f;this[_0x3de17f(0xf5)]=undefined,this['clients']=new Map();}[a4_0x13b99f(0x111)](_0x27f9c0){var _0x15b917=a4_0x13b99f,_0x310625,_0x368c4b;if(!this[_0x15b917(0xf5)]){const _0x5869ad=((_0x310625=this[_0x15b917(0x104)][_0x15b917(0x109)])===null||_0x310625===void 0x0?void 0x0:_0x310625[(_0x368c4b=this[_0x15b917(0x104)])===null||_0x368c4b===void 0x0?void 0x0:_0x368c4b[_0x15b917(0xf7)]])||this['config'][_0x15b917(0x109)]['file'];this['cache']=cacheManager['caching']({..._0x5869ad[_0x15b917(0x124)],'store':_0x5869ad[_0x15b917(0xfa)]});}return!this[_0x15b917(0x113)][_0x15b917(0x110)](_0x27f9c0)&&this[_0x15b917(0x113)]['set'](_0x27f9c0,new Cache(_0x27f9c0,this[_0x15b917(0xf5)])),this['clients'][_0x15b917(0x108)](_0x27f9c0);}async[a4_0x13b99f(0xfd)](){var _0xc3f6e=a4_0x13b99f;return await this['cache'][_0xc3f6e(0xfd)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x13b99f(0x120)])(a4_0x13b99f(0xf5)),__metadata(a4_0x13b99f(0x101),Object)],CacheService['prototype'],a4_0x13b99f(0x104),void 0x0),exports[a4_0x13b99f(0x127)]=CacheService=__decorate([(0x0,core_1[a4_0x13b99f(0xf2)])(),(0x0,core_1[a4_0x13b99f(0xfe)])(core_1['ScopeEnum'][a4_0x13b99f(0x102)])],CacheService);class Cache{constructor(_0x310cb4,_0x1aecfc){var _0xadfe3c=a4_0x13b99f;this[_0xadfe3c(0xf5)]=_0x1aecfc,this[_0xadfe3c(0x117)]=_0x310cb4;}async[a4_0x13b99f(0x119)](_0x2024dc){var _0x5d5fc5=a4_0x13b99f;return await this[_0x5d5fc5(0xf5)]['del'](this[_0x5d5fc5(0x117)]+':'+_0x2024dc);}async[a4_0x13b99f(0x10f)](_0x47e96d,_0xf7e56d,_0x3c7fd6){var _0x128888=a4_0x13b99f,_0x4effaf,_0x36579b;return((_0x36579b=(_0x4effaf=this[_0x128888(0xf5)])===null||_0x4effaf===void 0x0?void 0x0:_0x4effaf[_0x128888(0xfa)])===null||_0x36579b===void 0x0?void 0x0:_0x36579b['name'])==_0x128888(0xf6)?await this[_0x128888(0xf5)]['set'](this[_0x128888(0x117)]+':'+_0x47e96d,_0xf7e56d,{'ttl':_0x3c7fd6}):await this['cache'][_0x128888(0x10f)](this[_0x128888(0x117)]+':'+_0x47e96d,_0xf7e56d,{'ttl':_0x3c7fd6});}async['get'](_0x1305d4,_0x3af1b3,_0x2691ad){return new Promise((_0x12548d,_0x1251b1)=>{var _0x4d7245=a4_0x2965;this[_0x4d7245(0xf5)][_0x4d7245(0x108)](this[_0x4d7245(0x117)]+':'+_0x1305d4,async(_0x40848a,_0x21386b)=>{var _0x1823cf=_0x4d7245;_0x40848a?_0x1251b1(_0x40848a):((_0x21386b===undefined||_0x21386b===null)&&(typeof _0x3af1b3=='function'?(_0x21386b=await _0x3af1b3()[_0x1823cf(0x11d)](_0x4ae1c0=>_0x1251b1(_0x4ae1c0)),typeof _0x21386b!=_0x1823cf(0xf1)&&await this[_0x1823cf(0x10f)](_0x1305d4,_0x21386b,_0x2691ad)):_0x21386b=_0x3af1b3),_0x12548d(_0x21386b));});});}async['hdel'](_0x103685,_0x4a6d4c){var _0x1f110c=a4_0x13b99f;return await this[_0x1f110c(0x119)](_0x103685+'#'+_0x4a6d4c);}async[a4_0x13b99f(0x10e)](_0x431312,_0x46daf4,_0x25ab34,_0x35bedd){var _0x187eb3=a4_0x13b99f;return await this[_0x187eb3(0x10f)](_0x431312+'#'+_0x46daf4,_0x25ab34,_0x35bedd);}async[a4_0x13b99f(0xfb)](_0x2f5e46,_0x18a6a7,_0x57ca8a,_0x105c95){var _0x2cbc37=a4_0x13b99f;return await this[_0x2cbc37(0x108)](_0x2f5e46+'#'+_0x18a6a7,_0x57ca8a,_0x105c95);}[a4_0x13b99f(0x10c)](_0x118c8c){const _0x317517={'all':async()=>{var _0x7b8db0=a4_0x2965,_0x3976aa,_0x2151c4,_0x21e7e1,_0x32bc11,_0x4476f2;return((_0x2151c4=(_0x3976aa=this[_0x7b8db0(0xf5)])===null||_0x3976aa===void 0x0?void 0x0:_0x3976aa[_0x7b8db0(0xfa)])===null||_0x2151c4===void 0x0?void 0x0:_0x2151c4['name'])==_0x7b8db0(0xf6)?(await((_0x4476f2=(_0x32bc11=(_0x21e7e1=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x21e7e1===void 0x0?void 0x0:_0x21e7e1[_0x7b8db0(0xfa)])===null||_0x32bc11===void 0x0?void 0x0:_0x32bc11[_0x7b8db0(0xf3)]())===null||_0x4476f2===void 0x0?void 0x0:_0x4476f2[_0x7b8db0(0x12d)](this[_0x7b8db0(0x117)]+':'+_0x118c8c,0x0,-0x1))||[])[_0x7b8db0(0x12b)](_0x569101=>json_decode(_0x569101)):await this['get'](_0x118c8c,[]);},'pop':async()=>{var _0x3b9cc6=a4_0x2965,_0x58ce43,_0x2b1c8b,_0x4d538d,_0x3e4342,_0x3bb9fe;if(((_0x2b1c8b=(_0x58ce43=this[_0x3b9cc6(0xf5)])===null||_0x58ce43===void 0x0?void 0x0:_0x58ce43[_0x3b9cc6(0xfa)])===null||_0x2b1c8b===void 0x0?void 0x0:_0x2b1c8b[_0x3b9cc6(0xf8)])==_0x3b9cc6(0xf6))return json_decode(await((_0x3bb9fe=(_0x3e4342=(_0x4d538d=this===null||this===void 0x0?void 0x0:this[_0x3b9cc6(0xf5)])===null||_0x4d538d===void 0x0?void 0x0:_0x4d538d[_0x3b9cc6(0xfa)])===null||_0x3e4342===void 0x0?void 0x0:_0x3e4342['getClient']())===null||_0x3bb9fe===void 0x0?void 0x0:_0x3bb9fe['lpop'](this['prefix']+':'+_0x118c8c)));else{let _0x362e13=await this[_0x3b9cc6(0x108)](_0x118c8c,[]),_0xbc1d6c=_0x362e13['shift']();return await this[_0x3b9cc6(0x10f)](_0x118c8c,_0x362e13),_0xbc1d6c;}},'push':async(..._0x258e68)=>{var _0x144fc6=a4_0x2965,_0x563737,_0xe482be,_0x186c3f,_0x272a25,_0x3622fe;const _0x4d9c1f=_0x258e68[_0x144fc6(0x10a)](_0x4703eb=>_0x4703eb!==undefined&&_0x4703eb!==null);if(((_0xe482be=(_0x563737=this[_0x144fc6(0xf5)])===null||_0x563737===void 0x0?void 0x0:_0x563737[_0x144fc6(0xfa)])===null||_0xe482be===void 0x0?void 0x0:_0xe482be[_0x144fc6(0xf8)])==_0x144fc6(0xf6))return await((_0x3622fe=(_0x272a25=(_0x186c3f=this===null||this===void 0x0?void 0x0:this[_0x144fc6(0xf5)])===null||_0x186c3f===void 0x0?void 0x0:_0x186c3f['store'])===null||_0x272a25===void 0x0?void 0x0:_0x272a25[_0x144fc6(0xf3)]())===null||_0x3622fe===void 0x0?void 0x0:_0x3622fe['rpush'](this[_0x144fc6(0x117)]+':'+_0x118c8c,..._0x4d9c1f[_0x144fc6(0x12b)](_0x19fdb9=>json_encode(_0x19fdb9)))),_0x4d9c1f;else{let _0x1ab5e9=await this['get'](_0x118c8c,[]);return _0x1ab5e9['push'](..._0x4d9c1f),await this[_0x144fc6(0x10f)](_0x118c8c,_0x1ab5e9),_0x1ab5e9;}}};return _0x317517;}}exports[a4_0x13b99f(0x105)]=Cache;function json_encode(_0x262351){try{return JSON['stringify'](_0x262351);}catch(_0x2a8112){return undefined;}}function json_decode(_0x7ee5a7){var _0x56609a=a4_0x13b99f;try{return JSON[_0x56609a(0x11f)](_0x7ee5a7);}catch(_0x1452d2){return undefined;}}
1
+ var a4_0x55409d=a4_0x2868;(function(_0x10b180,_0x26907){var _0xb8c4b4=a4_0x2868,_0x23d431=_0x10b180();while(!![]){try{var _0x1e95ae=-parseInt(_0xb8c4b4(0x172))/0x1*(-parseInt(_0xb8c4b4(0x177))/0x2)+parseInt(_0xb8c4b4(0x18f))/0x3+-parseInt(_0xb8c4b4(0x187))/0x4*(parseInt(_0xb8c4b4(0x18a))/0x5)+parseInt(_0xb8c4b4(0x17f))/0x6+-parseInt(_0xb8c4b4(0x1a6))/0x7*(-parseInt(_0xb8c4b4(0x181))/0x8)+parseInt(_0xb8c4b4(0x18e))/0x9+-parseInt(_0xb8c4b4(0x179))/0xa*(parseInt(_0xb8c4b4(0x17e))/0xb);if(_0x1e95ae===_0x26907)break;else _0x23d431['push'](_0x23d431['shift']());}catch(_0xccd690){_0x23d431['push'](_0x23d431['shift']());}}}(a4_0x2a6d,0x83116));var a4_0x5dd903=(function(){var _0x54a633=!![];return function(_0x5b98af,_0x5338bf){var _0x540698=_0x54a633?function(){var _0x16d9bc=a4_0x2868;if(_0x5338bf){var _0x2088b6=_0x5338bf[_0x16d9bc(0x17c)](_0x5b98af,arguments);return _0x5338bf=null,_0x2088b6;}}:function(){};return _0x54a633=![],_0x540698;};}()),a4_0x4fb3a2=a4_0x5dd903(this,function(){var _0x5bcb4a=a4_0x2868;return a4_0x4fb3a2[_0x5bcb4a(0x19b)]()[_0x5bcb4a(0x17d)](_0x5bcb4a(0x188))['toString']()['constructor'](a4_0x4fb3a2)['search'](_0x5bcb4a(0x188));});a4_0x4fb3a2();'use strict';var __decorate=this&&this[a4_0x55409d(0x173)]||function(_0x42bd7a,_0x58924a,_0x60f5af,_0x338bfe){var _0x12c46e=a4_0x55409d,_0x221a96=arguments[_0x12c46e(0x180)],_0x3b7a44=_0x221a96<0x3?_0x58924a:_0x338bfe===null?_0x338bfe=Object[_0x12c46e(0x184)](_0x58924a,_0x60f5af):_0x338bfe,_0x43323a;if(typeof Reflect==='object'&&typeof Reflect[_0x12c46e(0x195)]===_0x12c46e(0x1a0))_0x3b7a44=Reflect[_0x12c46e(0x195)](_0x42bd7a,_0x58924a,_0x60f5af,_0x338bfe);else{for(var _0x66814e=_0x42bd7a['length']-0x1;_0x66814e>=0x0;_0x66814e--)if(_0x43323a=_0x42bd7a[_0x66814e])_0x3b7a44=(_0x221a96<0x3?_0x43323a(_0x3b7a44):_0x221a96>0x3?_0x43323a(_0x58924a,_0x60f5af,_0x3b7a44):_0x43323a(_0x58924a,_0x60f5af))||_0x3b7a44;}return _0x221a96>0x3&&_0x3b7a44&&Object[_0x12c46e(0x170)](_0x58924a,_0x60f5af,_0x3b7a44),_0x3b7a44;},__metadata=this&&this[a4_0x55409d(0x185)]||function(_0x4aabbd,_0x97e9b8){var _0x2c9007=a4_0x55409d;if(typeof Reflect===_0x2c9007(0x199)&&typeof Reflect['metadata']===_0x2c9007(0x1a0))return Reflect[_0x2c9007(0x16f)](_0x4aabbd,_0x97e9b8);};Object['defineProperty'](exports,a4_0x55409d(0x196),{'value':!![]}),exports[a4_0x55409d(0x198)]=exports[a4_0x55409d(0x197)]=void 0x0,exports[a4_0x55409d(0x191)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require('cache-manager'),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x3aeb8a=a4_0x55409d;this[_0x3aeb8a(0x1a5)]=undefined,this[_0x3aeb8a(0x1a9)]=new Map();}[a4_0x55409d(0x193)](_0x346466){var _0x3325e3=a4_0x55409d,_0x467248,_0x2885c4;if(!this['cache']){const _0x1f6e4a=((_0x467248=this['config']['stores'])===null||_0x467248===void 0x0?void 0x0:_0x467248[(_0x2885c4=this[_0x3325e3(0x17b)])===null||_0x2885c4===void 0x0?void 0x0:_0x2885c4['default']])||this[_0x3325e3(0x17b)]['stores'][_0x3325e3(0x176)];this['cache']=cacheManager['caching']({..._0x1f6e4a[_0x3325e3(0x194)],'store':_0x1f6e4a[_0x3325e3(0x16e)]});}return!this['clients'][_0x3325e3(0x19c)](_0x346466)&&this[_0x3325e3(0x1a9)][_0x3325e3(0x18d)](_0x346466,new Cache(_0x346466,this[_0x3325e3(0x1a5)])),this[_0x3325e3(0x1a9)]['get'](_0x346466);}async[a4_0x55409d(0x1a2)](){var _0x380555=a4_0x55409d;return await this[_0x380555(0x1a5)]['reset']();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x55409d(0x16d)])(a4_0x55409d(0x1a5)),__metadata(a4_0x55409d(0x19e),Object)],CacheService[a4_0x55409d(0x182)],'config',void 0x0),exports[a4_0x55409d(0x197)]=CacheService=__decorate([(0x0,core_1[a4_0x55409d(0x18b)])(),(0x0,core_1[a4_0x55409d(0x1a4)])(core_1['ScopeEnum'][a4_0x55409d(0x19a)])],CacheService);class Cache{constructor(_0x88355,_0x5ec1fc){this['cache']=_0x5ec1fc,this['prefix']=_0x88355;}async[a4_0x55409d(0x1a8)](_0x544e1f){var _0x4fd27d=a4_0x55409d;return await this['cache'][_0x4fd27d(0x1a8)](this['prefix']+':'+_0x544e1f);}async['set'](_0x3bbdce,_0x152e04,_0x41ca36){var _0x46f9c0=a4_0x55409d,_0x181ea3,_0x14f485;return((_0x14f485=(_0x181ea3=this[_0x46f9c0(0x1a5)])===null||_0x181ea3===void 0x0?void 0x0:_0x181ea3['store'])===null||_0x14f485===void 0x0?void 0x0:_0x14f485[_0x46f9c0(0x183)])=='redis'?await this[_0x46f9c0(0x1a5)][_0x46f9c0(0x18d)](this[_0x46f9c0(0x1a3)]+':'+_0x3bbdce,_0x152e04,{'ttl':_0x41ca36}):await this[_0x46f9c0(0x1a5)]['set'](this[_0x46f9c0(0x1a3)]+':'+_0x3bbdce,_0x152e04,{'ttl':_0x41ca36});}async[a4_0x55409d(0x19f)](_0x4c442e,_0x503a5b,_0xca782f){return new Promise((_0x2a637c,_0x510049)=>{var _0x1f1e32=a4_0x2868;this[_0x1f1e32(0x1a5)][_0x1f1e32(0x19f)](this[_0x1f1e32(0x1a3)]+':'+_0x4c442e,async(_0x136e34,_0x4b0d65)=>{var _0x330cf2=_0x1f1e32;_0x136e34?_0x510049(_0x136e34):((_0x4b0d65===undefined||_0x4b0d65===null)&&(typeof _0x503a5b=='function'?(_0x4b0d65=await _0x503a5b()['catch'](_0x4956fa=>_0x510049(_0x4956fa)),typeof _0x4b0d65!=_0x330cf2(0x18c)&&await this['set'](_0x4c442e,_0x4b0d65,_0xca782f)):_0x4b0d65=_0x503a5b),_0x2a637c(_0x4b0d65));});});}async[a4_0x55409d(0x178)](_0x11bc95,_0x27b9a0){var _0x12340e=a4_0x55409d;return await this[_0x12340e(0x1a8)](_0x11bc95+'#'+_0x27b9a0);}async[a4_0x55409d(0x190)](_0x520dfe,_0x4522ba,_0x306b21,_0x44249b){var _0x208ec8=a4_0x55409d;return await this[_0x208ec8(0x18d)](_0x520dfe+'#'+_0x4522ba,_0x306b21,_0x44249b);}async[a4_0x55409d(0x171)](_0x313edb,_0x305521,_0x40c049,_0x473310){return await this['get'](_0x313edb+'#'+_0x305521,_0x40c049,_0x473310);}[a4_0x55409d(0x17a)](_0x14e7b8){const _0x2de135={'all':async()=>{var _0x267995=a4_0x2868,_0x5d01fd,_0x20b45b,_0x315521,_0x354c07,_0x3a542e;return((_0x20b45b=(_0x5d01fd=this['cache'])===null||_0x5d01fd===void 0x0?void 0x0:_0x5d01fd['store'])===null||_0x20b45b===void 0x0?void 0x0:_0x20b45b[_0x267995(0x183)])==_0x267995(0x1a1)?(await((_0x3a542e=(_0x354c07=(_0x315521=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x315521===void 0x0?void 0x0:_0x315521[_0x267995(0x16e)])===null||_0x354c07===void 0x0?void 0x0:_0x354c07['getClient']())===null||_0x3a542e===void 0x0?void 0x0:_0x3a542e['lrange'](this[_0x267995(0x1a3)]+':'+_0x14e7b8,0x0,-0x1))||[])['map'](_0x4ef91c=>json_decode(_0x4ef91c)):await this['get'](_0x14e7b8,[]);},'pop':async()=>{var _0x3e1393=a4_0x2868,_0x47fc45,_0x29ac83,_0x438b49,_0x30dadf,_0x2c2ea3;if(((_0x29ac83=(_0x47fc45=this[_0x3e1393(0x1a5)])===null||_0x47fc45===void 0x0?void 0x0:_0x47fc45['store'])===null||_0x29ac83===void 0x0?void 0x0:_0x29ac83[_0x3e1393(0x183)])==_0x3e1393(0x1a1))return json_decode(await((_0x2c2ea3=(_0x30dadf=(_0x438b49=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x438b49===void 0x0?void 0x0:_0x438b49[_0x3e1393(0x16e)])===null||_0x30dadf===void 0x0?void 0x0:_0x30dadf[_0x3e1393(0x186)]())===null||_0x2c2ea3===void 0x0?void 0x0:_0x2c2ea3[_0x3e1393(0x1a7)](this[_0x3e1393(0x1a3)]+':'+_0x14e7b8)));else{let _0x468916=await this[_0x3e1393(0x19f)](_0x14e7b8,[]),_0x1592b3=_0x468916[_0x3e1393(0x189)]();return await this[_0x3e1393(0x18d)](_0x14e7b8,_0x468916),_0x1592b3;}},'push':async(..._0x41b000)=>{var _0x39a258=a4_0x2868,_0x43d4d2,_0x42f655,_0x2a1893,_0x1a4e4e,_0x55f014;const _0x34fb49=_0x41b000[_0x39a258(0x192)](_0x5acc12=>_0x5acc12!==undefined&&_0x5acc12!==null);if(((_0x42f655=(_0x43d4d2=this[_0x39a258(0x1a5)])===null||_0x43d4d2===void 0x0?void 0x0:_0x43d4d2[_0x39a258(0x16e)])===null||_0x42f655===void 0x0?void 0x0:_0x42f655[_0x39a258(0x183)])==_0x39a258(0x1a1))return await((_0x55f014=(_0x1a4e4e=(_0x2a1893=this===null||this===void 0x0?void 0x0:this[_0x39a258(0x1a5)])===null||_0x2a1893===void 0x0?void 0x0:_0x2a1893['store'])===null||_0x1a4e4e===void 0x0?void 0x0:_0x1a4e4e[_0x39a258(0x186)]())===null||_0x55f014===void 0x0?void 0x0:_0x55f014[_0x39a258(0x175)](this[_0x39a258(0x1a3)]+':'+_0x14e7b8,..._0x34fb49[_0x39a258(0x174)](_0x512f83=>json_encode(_0x512f83)))),_0x34fb49;else{let _0x314b18=await this[_0x39a258(0x19f)](_0x14e7b8,[]);return _0x314b18['push'](..._0x34fb49),await this[_0x39a258(0x18d)](_0x14e7b8,_0x314b18),_0x314b18;}}};return _0x2de135;}}exports[a4_0x55409d(0x198)]=Cache;function json_encode(_0x9ef381){var _0x293b4b=a4_0x55409d;try{return JSON[_0x293b4b(0x19d)](_0x9ef381);}catch(_0x4a78e8){return undefined;}}function a4_0x2a6d(){var _0x1c45b8=['redis','reset','prefix','Scope','cache','3297wzAcRR','lpop','del','clients','Config','store','metadata','defineProperty','hget','12807rdPeKB','__decorate','map','rpush','file','64uGwiRv','hdel','50yHbDMR','list','config','apply','search','1194556IzcUvH','2228184Kkdyzb','length','4336WJdbeM','prototype','name','getOwnPropertyDescriptor','__metadata','getClient','329876GZBcyH','(((.+)+)+)+$','shift','45dgfjuT','Provide','undefined','set','1755567CHygyu','1771566cIOVUR','hset','json_encode','filter','use','options','decorate','__esModule','CacheService','Cache','object','Singleton','toString','has','stringify','design:type','get','function'];a4_0x2a6d=function(){return _0x1c45b8;};return a4_0x2a6d();}function a4_0x2868(_0x4bf248,_0x2e017f){var _0x4e4999=a4_0x2a6d();return a4_0x2868=function(_0x4fb3a2,_0x5dd903){_0x4fb3a2=_0x4fb3a2-0x16d;var _0x2a6d0d=_0x4e4999[_0x4fb3a2];return _0x2a6d0d;},a4_0x2868(_0x4bf248,_0x2e017f);}function json_decode(_0x51ad7c){try{return JSON['parse'](_0x51ad7c);}catch(_0x395b95){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.80",
3
+ "version": "3.4.81",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -23,5 +23,5 @@
23
23
  "javascript-obfuscator": "^4.0.2",
24
24
  "typescript": "^5.5.4"
25
25
  },
26
- "gitHead": "a24d658b65084f1b3db2ce48e1fdc06d9b5b1541"
26
+ "gitHead": "87b04383d9f9a6f68f971d8180a8619dbfe01e99"
27
27
  }