@anncic-api/cache 3.4.80 → 3.4.82

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_0x281d28=a0_0x1eea;(function(_0xd979c,_0x1ede08){const _0x224a79=a0_0x1eea,_0x4f40fe=_0xd979c();while(!![]){try{const _0x1e1b4e=-parseInt(_0x224a79(0x198))/0x1+parseInt(_0x224a79(0x195))/0x2*(-parseInt(_0x224a79(0x1a4))/0x3)+parseInt(_0x224a79(0x19f))/0x4+parseInt(_0x224a79(0x1aa))/0x5+-parseInt(_0x224a79(0x19c))/0x6+parseInt(_0x224a79(0x196))/0x7+-parseInt(_0x224a79(0x19b))/0x8*(-parseInt(_0x224a79(0x1a5))/0x9);if(_0x1e1b4e===_0x1ede08)break;else _0x4f40fe['push'](_0x4f40fe['shift']());}catch(_0x20544d){_0x4f40fe['push'](_0x4f40fe['shift']());}}}(a0_0x1ff7,0x3f3e1));const a0_0xa01e02=(function(){let _0x2e78f8=!![];return function(_0x2086dd,_0x49816b){const _0x1c6fff=_0x2e78f8?function(){const _0x5eb808=a0_0x1eea;if(_0x49816b){const _0x43eeea=_0x49816b[_0x5eb808(0x19e)](_0x2086dd,arguments);return _0x49816b=null,_0x43eeea;}}:function(){};return _0x2e78f8=![],_0x1c6fff;};}()),a0_0x338525=a0_0xa01e02(this,function(){const _0x514f4c=a0_0x1eea;return a0_0x338525[_0x514f4c(0x1a9)]()['search']('(((.+)+)+)+$')[_0x514f4c(0x1a9)]()[_0x514f4c(0x1a1)](a0_0x338525)[_0x514f4c(0x199)]('(((.+)+)+)+$');});a0_0x338525();function a0_0x1eea(_0xec64f5,_0xcaa56b){const _0x16d88f=a0_0x1ff7();return a0_0x1eea=function(_0x338525,_0xa01e02){_0x338525=_0x338525-0x195;let _0x1ff71c=_0x16d88f[_0x338525];return _0x1ff71c;},a0_0x1eea(_0xec64f5,_0xcaa56b);}'use strict';Object['defineProperty'](exports,a0_0x281d28(0x19a),{'value':!![]});const fsStore=require(a0_0x281d28(0x1a8)),redisStore=require(a0_0x281d28(0x197));function a0_0x1ff7(){const _0x28e470=['434482DnMSDB','1410038DUywvd','cache-manager-ioredis','332030tQkALS','search','__esModule','362888knSaeg','975372qihnXA','/runtime/.cache','apply','1988096AXpaNH','appDir','constructor','file','memory','3ZUWdyO','27TZgiff','name','env','cache-manager-fs-hash','toString','681665srxSTn'];a0_0x1ff7=function(){return _0x28e470;};return a0_0x1ff7();}exports['default']=_0x2e18a0=>{const _0x5c4551=a0_0x281d28;return{'cache':{'default':_0x5c4551(0x1a2),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x2e18a0[_0x5c4551(0x1a0)]+_0x5c4551(0x19d)+((_0x2e18a0===null||_0x2e18a0===void 0x0?void 0x0:_0x2e18a0[_0x5c4551(0x1a7)])?'-'+_0x2e18a0[_0x5c4551(0x1a7)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x2e18a0[_0x5c4551(0x1a6)]+':'+((_0x2e18a0===null||_0x2e18a0===void 0x0?void 0x0:_0x2e18a0[_0x5c4551(0x1a7)])?_0x2e18a0[_0x5c4551(0x1a7)]+':':'')}},'memory':{'store':_0x5c4551(0x1a3),'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_0x43db8e=a1_0x3626;(function(_0x4c5de6,_0x505dc5){var _0x2c3694=a1_0x3626,_0x220285=_0x4c5de6();while(!![]){try{var _0x40e2e3=parseInt(_0x2c3694(0x102))/0x1+-parseInt(_0x2c3694(0x117))/0x2+parseInt(_0x2c3694(0x110))/0x3*(-parseInt(_0x2c3694(0x118))/0x4)+parseInt(_0x2c3694(0x10b))/0x5*(-parseInt(_0x2c3694(0x103))/0x6)+parseInt(_0x2c3694(0x119))/0x7+parseInt(_0x2c3694(0x100))/0x8*(parseInt(_0x2c3694(0x10c))/0x9)+-parseInt(_0x2c3694(0x115))/0xa;if(_0x40e2e3===_0x505dc5)break;else _0x220285['push'](_0x220285['shift']());}catch(_0x937ca3){_0x220285['push'](_0x220285['shift']());}}}(a1_0x1967,0x57d04));var a1_0x2b107a=(function(){var _0x156221=!![];return function(_0x537a8e,_0x465ee0){var _0x3ecfc6=_0x156221?function(){var _0x5f567e=a1_0x3626;if(_0x465ee0){var _0x56611c=_0x465ee0[_0x5f567e(0x10d)](_0x537a8e,arguments);return _0x465ee0=null,_0x56611c;}}:function(){};return _0x156221=![],_0x3ecfc6;};}()),a1_0x2b0dcb=a1_0x2b107a(this,function(){var _0x97343=a1_0x3626;return a1_0x2b0dcb[_0x97343(0x10e)]()['search'](_0x97343(0x109))[_0x97343(0x10e)]()[_0x97343(0x104)](a1_0x2b0dcb)[_0x97343(0x107)](_0x97343(0x109));});a1_0x2b0dcb();function a1_0x1967(){var _0x2e952d=['defineProperty','decorate','6059650pnFyrI','object','1382100ehGhkE','8PPkYBj','3731028VEbQtF','__esModule','8WLVaib','anncic-api:cache','595390psiNDQ','174630SLjrZO','constructor','CustomConfiguration','@midwayjs/core','search','length','(((.+)+)+)+$','Configuration','10YtQfEI','5689053nHBQUs','apply','toString','function','68403hoJSfQ','getOwnPropertyDescriptor','./config/config.default'];a1_0x1967=function(){return _0x2e952d;};return a1_0x1967();}function a1_0x3626(_0xc0ff33,_0x5b2c5a){var _0x2eda59=a1_0x1967();return a1_0x3626=function(_0x2b0dcb,_0x2b107a){_0x2b0dcb=_0x2b0dcb-0xff;var _0x196762=_0x2eda59[_0x2b0dcb];return _0x196762;},a1_0x3626(_0xc0ff33,_0x5b2c5a);}'use strict';var __decorate=this&&this['__decorate']||function(_0x52cb1f,_0x2eae4a,_0x5936a9,_0x1bef55){var _0x78952f=a1_0x3626,_0x5ac6bf=arguments[_0x78952f(0x108)],_0x11ced0=_0x5ac6bf<0x3?_0x2eae4a:_0x1bef55===null?_0x1bef55=Object[_0x78952f(0x111)](_0x2eae4a,_0x5936a9):_0x1bef55,_0x4f648e;if(typeof Reflect===_0x78952f(0x116)&&typeof Reflect['decorate']===_0x78952f(0x10f))_0x11ced0=Reflect[_0x78952f(0x114)](_0x52cb1f,_0x2eae4a,_0x5936a9,_0x1bef55);else{for(var _0x4c117e=_0x52cb1f[_0x78952f(0x108)]-0x1;_0x4c117e>=0x0;_0x4c117e--)if(_0x4f648e=_0x52cb1f[_0x4c117e])_0x11ced0=(_0x5ac6bf<0x3?_0x4f648e(_0x11ced0):_0x5ac6bf>0x3?_0x4f648e(_0x2eae4a,_0x5936a9,_0x11ced0):_0x4f648e(_0x2eae4a,_0x5936a9))||_0x11ced0;}return _0x5ac6bf>0x3&&_0x11ced0&&Object[_0x78952f(0x113)](_0x2eae4a,_0x5936a9,_0x11ced0),_0x11ced0;};Object[a1_0x43db8e(0x113)](exports,a1_0x43db8e(0xff),{'value':!![]}),exports[a1_0x43db8e(0x105)]=void 0x0;const core_1=require(a1_0x43db8e(0x106)),ConfigDefault=require(a1_0x43db8e(0x112));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x43db8e(0x105)]=CustomConfiguration,exports[a1_0x43db8e(0x105)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x43db8e(0x10a)])({'conflictCheck':![],'namespace':a1_0x43db8e(0x101),'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_0x23dbfc=a2_0x4f59;(function(_0x54235f,_0x457539){const _0x27dfb7=a2_0x4f59,_0x3a6caa=_0x54235f();while(!![]){try{const _0x55dd62=-parseInt(_0x27dfb7(0x7d))/0x1+-parseInt(_0x27dfb7(0x7c))/0x2+-parseInt(_0x27dfb7(0x80))/0x3*(-parseInt(_0x27dfb7(0x6c))/0x4)+parseInt(_0x27dfb7(0x76))/0x5+-parseInt(_0x27dfb7(0x78))/0x6+-parseInt(_0x27dfb7(0x69))/0x7+parseInt(_0x27dfb7(0x6b))/0x8*(parseInt(_0x27dfb7(0x85))/0x9);if(_0x55dd62===_0x457539)break;else _0x3a6caa['push'](_0x3a6caa['shift']());}catch(_0x4d31ec){_0x3a6caa['push'](_0x3a6caa['shift']());}}}(a2_0x1c26,0x9f373));const a2_0x160536=(function(){let _0x16891b=!![];return function(_0x59c151,_0x526f52){const _0x503ef7=_0x16891b?function(){if(_0x526f52){const _0x453828=_0x526f52['apply'](_0x59c151,arguments);return _0x526f52=null,_0x453828;}}:function(){};return _0x16891b=![],_0x503ef7;};}()),a2_0x9a0625=a2_0x160536(this,function(){const _0x5b4269=a2_0x4f59;return a2_0x9a0625['toString']()[_0x5b4269(0x7a)](_0x5b4269(0x81))[_0x5b4269(0x6a)]()['constructor'](a2_0x9a0625)[_0x5b4269(0x7a)](_0x5b4269(0x81));});a2_0x9a0625();'use strict';Object[a2_0x23dbfc(0x71)](exports,a2_0x23dbfc(0x6d),{'value':!![]}),exports[a2_0x23dbfc(0x6f)]=Cache;const crypto_js_1=require(a2_0x23dbfc(0x6e)),CacheService_1=require(a2_0x23dbfc(0x84)),core_1=require(a2_0x23dbfc(0x87));function json_encode(_0x1aa406){try{return JSON['stringify'](_0x1aa406);}catch(_0xe252af){return undefined;}}function a2_0x4f59(_0x1d1c54,_0x47bb67){const _0x5b3de7=a2_0x1c26();return a2_0x4f59=function(_0x9a0625,_0x160536){_0x9a0625=_0x9a0625-0x69;let _0x1c26fa=_0x5b3de7[_0x9a0625];return _0x1c26fa;},a2_0x4f59(_0x1d1c54,_0x47bb67);}function a2_0x1c26(){const _0x3c7eaa=['CacheService','Method::Decorator','5706955ilcHtl','REQUEST_OBJ_CTX_KEY','1055964EpumVv','MD5','search','getApplicationContext','311134gzyMEN','1168633AczMXU','value','stringify','6CuBPVo','(((.+)+)+)+$','parse','get','../service/CacheService','1848114gmIExB','app','@midwayjs/core','3173856GYdmXf','toString','8EwWGMm','2518024VHFMaK','__esModule','crypto-js','Cache','apply','defineProperty','getAsync','use'];a2_0x1c26=function(){return _0x3c7eaa;};return a2_0x1c26();}function Cache(_0x56af6a,_0x265961){return(_0x5a4bfa,_0x2004ac,_0xe692c9)=>{const _0x20a00b=a2_0x4f59,_0x58c975=_0xe692c9[_0x20a00b(0x7e)];return _0xe692c9[_0x20a00b(0x7e)]=async function(..._0x397346){const _0x5f04a1=_0x20a00b;_0x56af6a=(_0x56af6a?''+_0x56af6a:''+(_0x2004ac||''))+'.'+(0x0,crypto_js_1[_0x5f04a1(0x79)])(json_encode(_0x397346))[_0x5f04a1(0x6a)]();let _0x87c6ef=await this[core_1[_0x5f04a1(0x77)]][_0x5f04a1(0x86)][_0x5f04a1(0x7b)]()[_0x5f04a1(0x72)](CacheService_1[_0x5f04a1(0x74)]),_0x5a445e=await _0x87c6ef[_0x5f04a1(0x73)](_0x5f04a1(0x75))[_0x5f04a1(0x83)](_0x56af6a);if(_0x5a445e)return JSON[_0x5f04a1(0x82)](_0x5a445e);else _0x5a445e=await _0x58c975[_0x5f04a1(0x70)](this,[..._0x397346]),await _0x87c6ef[_0x5f04a1(0x73)](_0x5f04a1(0x75))['set'](_0x56af6a,JSON[_0x5f04a1(0x7f)](_0x5a445e),_0x265961);return _0x5a445e;},_0xe692c9;};}
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_0x926af7=a3_0x3b7c;(function(_0x322c27,_0x591473){var _0x3532a6=a3_0x3b7c,_0x550fe4=_0x322c27();while(!![]){try{var _0x9cb75c=parseInt(_0x3532a6(0xd8))/0x1*(parseInt(_0x3532a6(0xd4))/0x2)+-parseInt(_0x3532a6(0xe6))/0x3+parseInt(_0x3532a6(0xda))/0x4*(-parseInt(_0x3532a6(0xd7))/0x5)+parseInt(_0x3532a6(0xde))/0x6*(-parseInt(_0x3532a6(0xdd))/0x7)+parseInt(_0x3532a6(0xe0))/0x8*(-parseInt(_0x3532a6(0xe9))/0x9)+-parseInt(_0x3532a6(0xe4))/0xa+-parseInt(_0x3532a6(0xd3))/0xb*(-parseInt(_0x3532a6(0xe2))/0xc);if(_0x9cb75c===_0x591473)break;else _0x550fe4['push'](_0x550fe4['shift']());}catch(_0x31c35a){_0x550fe4['push'](_0x550fe4['shift']());}}}(a3_0x3350,0xab508));var a3_0x1b6ade=(function(){var _0x9dffbe=!![];return function(_0x2ac501,_0xc5dc87){var _0x46f406=_0x9dffbe?function(){var _0x1d3c85=a3_0x3b7c;if(_0xc5dc87){var _0x1672f4=_0xc5dc87[_0x1d3c85(0xdc)](_0x2ac501,arguments);return _0xc5dc87=null,_0x1672f4;}}:function(){};return _0x9dffbe=![],_0x46f406;};}()),a3_0x33d497=a3_0x1b6ade(this,function(){var _0x2c1ce4=a3_0x3b7c;return a3_0x33d497[_0x2c1ce4(0xe1)]()['search'](_0x2c1ce4(0xd9))[_0x2c1ce4(0xe1)]()[_0x2c1ce4(0xea)](a3_0x33d497)[_0x2c1ce4(0xe8)](_0x2c1ce4(0xd9));});a3_0x33d497();'use strict';Object['defineProperty'](exports,a3_0x926af7(0xd6),{'value':!![]}),exports[a3_0x926af7(0xd5)]=exports['Cache']=exports[a3_0x926af7(0xe3)]=void 0x0;var configuration_1=require(a3_0x926af7(0xdf));Object[a3_0x926af7(0xe5)](exports,a3_0x926af7(0xe3),{'enumerable':!![],'get':function(){var _0x5dc9e5=a3_0x926af7;return configuration_1[_0x5dc9e5(0xe7)];}});var Cache_1=require(a3_0x926af7(0xdb));function a3_0x3b7c(_0x2d497e,_0x58daf2){var _0x5abaa0=a3_0x3350();return a3_0x3b7c=function(_0x33d497,_0x1b6ade){_0x33d497=_0x33d497-0xd3;var _0x335050=_0x5abaa0[_0x33d497];return _0x335050;},a3_0x3b7c(_0x2d497e,_0x58daf2);}Object[a3_0x926af7(0xe5)](exports,'Cache',{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require('./service/CacheService');Object[a3_0x926af7(0xe5)](exports,a3_0x926af7(0xd5),{'enumerable':!![],'get':function(){var _0x1f74d1=a3_0x926af7;return CacheService_1[_0x1f74d1(0xd5)];}});function a3_0x3350(){var _0x26af30=['./decorator/Cache','apply','35EEXxNA','197004qGklvb','./configuration','688mbQMYA','toString','1524YLIEfi','Configuration','925870qxAgmd','defineProperty','1959033UUWPte','CustomConfiguration','search','28908lybbKA','constructor','185119WHSBJB','78896mapccq','CacheService','__esModule','2825815hKDkrd','8ZEGfLN','(((.+)+)+)+$','4cmDuox'];a3_0x3350=function(){return _0x26af30;};return a3_0x3350();}
@@ -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_0x1e3134=a4_0x45bd;(function(_0x35e1bd,_0x4255aa){var _0x31faa6=a4_0x45bd,_0x5ad04d=_0x35e1bd();while(!![]){try{var _0x47018d=-parseInt(_0x31faa6(0x126))/0x1*(-parseInt(_0x31faa6(0x140))/0x2)+-parseInt(_0x31faa6(0x133))/0x3+-parseInt(_0x31faa6(0x131))/0x4+parseInt(_0x31faa6(0x14d))/0x5+-parseInt(_0x31faa6(0x13e))/0x6*(parseInt(_0x31faa6(0x157))/0x7)+parseInt(_0x31faa6(0x15b))/0x8*(-parseInt(_0x31faa6(0x134))/0x9)+parseInt(_0x31faa6(0x125))/0xa;if(_0x47018d===_0x4255aa)break;else _0x5ad04d['push'](_0x5ad04d['shift']());}catch(_0x39c9f9){_0x5ad04d['push'](_0x5ad04d['shift']());}}}(a4_0x312d,0x7a837));var a4_0x2f4ef1=(function(){var _0x2186de=!![];return function(_0x477788,_0x266861){var _0x5c632b=_0x2186de?function(){var _0x478916=a4_0x45bd;if(_0x266861){var _0xe2d3c0=_0x266861[_0x478916(0x14a)](_0x477788,arguments);return _0x266861=null,_0xe2d3c0;}}:function(){};return _0x2186de=![],_0x5c632b;};}()),a4_0x4e13ee=a4_0x2f4ef1(this,function(){var _0x5e51f9=a4_0x45bd;return a4_0x4e13ee[_0x5e51f9(0x158)]()[_0x5e51f9(0x14b)](_0x5e51f9(0x15e))[_0x5e51f9(0x158)]()['constructor'](a4_0x4e13ee)[_0x5e51f9(0x14b)]('(((.+)+)+)+$');});a4_0x4e13ee();'use strict';var __decorate=this&&this[a4_0x1e3134(0x142)]||function(_0x380412,_0x378276,_0xb749f4,_0x4f11f5){var _0x3e7e99=a4_0x1e3134,_0x2e6d24=arguments[_0x3e7e99(0x14f)],_0x336384=_0x2e6d24<0x3?_0x378276:_0x4f11f5===null?_0x4f11f5=Object[_0x3e7e99(0x141)](_0x378276,_0xb749f4):_0x4f11f5,_0x417204;if(typeof Reflect===_0x3e7e99(0x15f)&&typeof Reflect[_0x3e7e99(0x15d)]==='function')_0x336384=Reflect[_0x3e7e99(0x15d)](_0x380412,_0x378276,_0xb749f4,_0x4f11f5);else{for(var _0x299d3a=_0x380412[_0x3e7e99(0x14f)]-0x1;_0x299d3a>=0x0;_0x299d3a--)if(_0x417204=_0x380412[_0x299d3a])_0x336384=(_0x2e6d24<0x3?_0x417204(_0x336384):_0x2e6d24>0x3?_0x417204(_0x378276,_0xb749f4,_0x336384):_0x417204(_0x378276,_0xb749f4))||_0x336384;}return _0x2e6d24>0x3&&_0x336384&&Object[_0x3e7e99(0x143)](_0x378276,_0xb749f4,_0x336384),_0x336384;},__metadata=this&&this['__metadata']||function(_0x886d9b,_0x30226d){var _0x4604cc=a4_0x1e3134;if(typeof Reflect===_0x4604cc(0x15f)&&typeof Reflect[_0x4604cc(0x139)]===_0x4604cc(0x159))return Reflect['metadata'](_0x886d9b,_0x30226d);};Object[a4_0x1e3134(0x143)](exports,'__esModule',{'value':!![]}),exports['Cache']=exports[a4_0x1e3134(0x149)]=void 0x0,exports[a4_0x1e3134(0x128)]=json_encode,exports[a4_0x1e3134(0x14e)]=json_decode;function a4_0x312d(){var _0x3d2501=['hdel','Config','map','stores','has','set','cache-manager','3183524yKkGPP','clients','2933649PnBxAS','1251hdoLnV','use','rpush','store','stringify','metadata','del','Singleton','Scope','reset','15408hobfHD','default','13130jShVgV','getOwnPropertyDescriptor','__decorate','defineProperty','prefix','Provide','get','name','file','CacheService','apply','search','lpop','2332870mSCLbs','json_decode','length','cache','undefined','list','parse','redis','@midwayjs/core','push','2520yEmMOV','toString','function','lrange','3856lGXsxL','getClient','decorate','(((.+)+)+)+$','object','shift','27742230FpYhwy','4cfApAc','prototype','json_encode','config'];a4_0x312d=function(){return _0x3d2501;};return a4_0x312d();}function a4_0x45bd(_0xa8e02b,_0x2eeaab){var _0xc1b766=a4_0x312d();return a4_0x45bd=function(_0x4e13ee,_0x2f4ef1){_0x4e13ee=_0x4e13ee-0x124;var _0x312d2c=_0xc1b766[_0x4e13ee];return _0x312d2c;},a4_0x45bd(_0xa8e02b,_0x2eeaab);}const cacheManager=require(a4_0x1e3134(0x130)),core_1=require(a4_0x1e3134(0x155));let CacheService=class CacheService{constructor(){var _0x334f0d=a4_0x1e3134;this[_0x334f0d(0x150)]=undefined,this[_0x334f0d(0x132)]=new Map();}[a4_0x1e3134(0x135)](_0x4821c0){var _0x32209b=a4_0x1e3134,_0x242d4f,_0x1ee5fd;if(!this[_0x32209b(0x150)]){const _0x385b7f=((_0x242d4f=this[_0x32209b(0x129)][_0x32209b(0x12d)])===null||_0x242d4f===void 0x0?void 0x0:_0x242d4f[(_0x1ee5fd=this[_0x32209b(0x129)])===null||_0x1ee5fd===void 0x0?void 0x0:_0x1ee5fd[_0x32209b(0x13f)]])||this['config'][_0x32209b(0x12d)][_0x32209b(0x148)];this[_0x32209b(0x150)]=cacheManager['caching']({..._0x385b7f['options'],'store':_0x385b7f[_0x32209b(0x137)]});}return!this[_0x32209b(0x132)][_0x32209b(0x12e)](_0x4821c0)&&this[_0x32209b(0x132)][_0x32209b(0x12f)](_0x4821c0,new Cache(_0x4821c0,this[_0x32209b(0x150)])),this[_0x32209b(0x132)][_0x32209b(0x146)](_0x4821c0);}async[a4_0x1e3134(0x13d)](){var _0x1bb381=a4_0x1e3134;return await this[_0x1bb381(0x150)][_0x1bb381(0x13d)]();}};exports[a4_0x1e3134(0x149)]=CacheService,__decorate([(0x0,core_1[a4_0x1e3134(0x12b)])('cache'),__metadata('design:type',Object)],CacheService[a4_0x1e3134(0x127)],a4_0x1e3134(0x129),void 0x0),exports[a4_0x1e3134(0x149)]=CacheService=__decorate([(0x0,core_1[a4_0x1e3134(0x145)])(),(0x0,core_1[a4_0x1e3134(0x13c)])(core_1['ScopeEnum'][a4_0x1e3134(0x13b)])],CacheService);class Cache{constructor(_0x3fd409,_0x229a58){var _0x91e3be=a4_0x1e3134;this['cache']=_0x229a58,this[_0x91e3be(0x144)]=_0x3fd409;}async['del'](_0x51072b){var _0x4620e2=a4_0x1e3134;return await this[_0x4620e2(0x150)][_0x4620e2(0x13a)](this[_0x4620e2(0x144)]+':'+_0x51072b);}async['set'](_0xed6854,_0x443a94,_0x156856){var _0xa5d7f7=a4_0x1e3134,_0x325acb,_0x51a980;return((_0x51a980=(_0x325acb=this['cache'])===null||_0x325acb===void 0x0?void 0x0:_0x325acb[_0xa5d7f7(0x137)])===null||_0x51a980===void 0x0?void 0x0:_0x51a980[_0xa5d7f7(0x147)])==_0xa5d7f7(0x154)?await this[_0xa5d7f7(0x150)][_0xa5d7f7(0x12f)](this[_0xa5d7f7(0x144)]+':'+_0xed6854,_0x443a94,{'ttl':_0x156856}):await this[_0xa5d7f7(0x150)][_0xa5d7f7(0x12f)](this['prefix']+':'+_0xed6854,_0x443a94,{'ttl':_0x156856});}async[a4_0x1e3134(0x146)](_0x343a17,_0x2c2533,_0x5ea0fb){return new Promise((_0x5bc222,_0x28a64e)=>{var _0x7aaab7=a4_0x45bd;this['cache'][_0x7aaab7(0x146)](this[_0x7aaab7(0x144)]+':'+_0x343a17,async(_0xe57df8,_0x2b9b29)=>{var _0x24fa2e=_0x7aaab7;_0xe57df8?_0x28a64e(_0xe57df8):((_0x2b9b29===undefined||_0x2b9b29===null)&&(typeof _0x2c2533==_0x24fa2e(0x159)?(_0x2b9b29=await _0x2c2533()['catch'](_0x3f008c=>_0x28a64e(_0x3f008c)),typeof _0x2b9b29!=_0x24fa2e(0x151)&&await this[_0x24fa2e(0x12f)](_0x343a17,_0x2b9b29,_0x5ea0fb)):_0x2b9b29=_0x2c2533),_0x5bc222(_0x2b9b29));});});}async[a4_0x1e3134(0x12a)](_0x244bfa,_0x5a299b){var _0x1ed40f=a4_0x1e3134;return await this[_0x1ed40f(0x13a)](_0x244bfa+'#'+_0x5a299b);}async['hset'](_0x26049a,_0x156bc1,_0x10dad1,_0x83f76f){var _0x20b183=a4_0x1e3134;return await this[_0x20b183(0x12f)](_0x26049a+'#'+_0x156bc1,_0x10dad1,_0x83f76f);}async['hget'](_0xaa2abf,_0x51110a,_0x42fbd1,_0x57e48f){var _0x38cace=a4_0x1e3134;return await this[_0x38cace(0x146)](_0xaa2abf+'#'+_0x51110a,_0x42fbd1,_0x57e48f);}[a4_0x1e3134(0x152)](_0x241623){const _0x6afd3a={'all':async()=>{var _0x51c504=a4_0x45bd,_0xeb83e1,_0x212ef4,_0x2c1147,_0x32c138,_0x37a9ed;return((_0x212ef4=(_0xeb83e1=this['cache'])===null||_0xeb83e1===void 0x0?void 0x0:_0xeb83e1[_0x51c504(0x137)])===null||_0x212ef4===void 0x0?void 0x0:_0x212ef4[_0x51c504(0x147)])==_0x51c504(0x154)?(await((_0x37a9ed=(_0x32c138=(_0x2c1147=this===null||this===void 0x0?void 0x0:this[_0x51c504(0x150)])===null||_0x2c1147===void 0x0?void 0x0:_0x2c1147[_0x51c504(0x137)])===null||_0x32c138===void 0x0?void 0x0:_0x32c138[_0x51c504(0x15c)]())===null||_0x37a9ed===void 0x0?void 0x0:_0x37a9ed[_0x51c504(0x15a)](this['prefix']+':'+_0x241623,0x0,-0x1))||[])[_0x51c504(0x12c)](_0x342a24=>json_decode(_0x342a24)):await this[_0x51c504(0x146)](_0x241623,[]);},'pop':async()=>{var _0x352532=a4_0x45bd,_0x3ac8a4,_0x4e5803,_0x4af2cd,_0x4af301,_0x1a789b;if(((_0x4e5803=(_0x3ac8a4=this[_0x352532(0x150)])===null||_0x3ac8a4===void 0x0?void 0x0:_0x3ac8a4[_0x352532(0x137)])===null||_0x4e5803===void 0x0?void 0x0:_0x4e5803[_0x352532(0x147)])==_0x352532(0x154))return json_decode(await((_0x1a789b=(_0x4af301=(_0x4af2cd=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x4af2cd===void 0x0?void 0x0:_0x4af2cd['store'])===null||_0x4af301===void 0x0?void 0x0:_0x4af301[_0x352532(0x15c)]())===null||_0x1a789b===void 0x0?void 0x0:_0x1a789b[_0x352532(0x14c)](this[_0x352532(0x144)]+':'+_0x241623)));else{let _0x2a903b=await this[_0x352532(0x146)](_0x241623,[]),_0x1d20b1=_0x2a903b[_0x352532(0x124)]();return await this[_0x352532(0x12f)](_0x241623,_0x2a903b),_0x1d20b1;}},'push':async(..._0x54d01d)=>{var _0x337484=a4_0x45bd,_0x2ec00f,_0x18b5af,_0x1b03d9,_0x264476,_0x27eac4;const _0x5d9134=_0x54d01d['filter'](_0x42519a=>_0x42519a!==undefined&&_0x42519a!==null);if(((_0x18b5af=(_0x2ec00f=this[_0x337484(0x150)])===null||_0x2ec00f===void 0x0?void 0x0:_0x2ec00f[_0x337484(0x137)])===null||_0x18b5af===void 0x0?void 0x0:_0x18b5af[_0x337484(0x147)])=='redis')return await((_0x27eac4=(_0x264476=(_0x1b03d9=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x1b03d9===void 0x0?void 0x0:_0x1b03d9[_0x337484(0x137)])===null||_0x264476===void 0x0?void 0x0:_0x264476[_0x337484(0x15c)]())===null||_0x27eac4===void 0x0?void 0x0:_0x27eac4[_0x337484(0x136)](this[_0x337484(0x144)]+':'+_0x241623,..._0x5d9134[_0x337484(0x12c)](_0x34e92c=>json_encode(_0x34e92c)))),_0x5d9134;else{let _0xb60913=await this[_0x337484(0x146)](_0x241623,[]);return _0xb60913[_0x337484(0x156)](..._0x5d9134),await this[_0x337484(0x12f)](_0x241623,_0xb60913),_0xb60913;}}};return _0x6afd3a;}}exports['Cache']=Cache;function json_encode(_0xd9d89d){var _0x333ae=a4_0x1e3134;try{return JSON[_0x333ae(0x138)](_0xd9d89d);}catch(_0x414b57){return undefined;}}function json_decode(_0xb2bc7f){var _0x3a98f1=a4_0x1e3134;try{return JSON[_0x3a98f1(0x153)](_0xb2bc7f);}catch(_0x5c5366){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.82",
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": "debe00dc13507e7dba6c7f28a31fa8562715c946"
27
27
  }