@anncic-api/cache 3.4.64 → 3.4.65

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_0x5f4827=a0_0xe11e;(function(_0x28ee0f,_0x471785){const _0x161f8d=a0_0xe11e,_0x2b2594=_0x28ee0f();while(!![]){try{const _0x1be390=parseInt(_0x161f8d(0xd3))/0x1+parseInt(_0x161f8d(0xc8))/0x2*(-parseInt(_0x161f8d(0xc6))/0x3)+-parseInt(_0x161f8d(0xc4))/0x4*(parseInt(_0x161f8d(0xbe))/0x5)+parseInt(_0x161f8d(0xd7))/0x6+-parseInt(_0x161f8d(0xc2))/0x7+parseInt(_0x161f8d(0xc5))/0x8*(parseInt(_0x161f8d(0xd2))/0x9)+-parseInt(_0x161f8d(0xd1))/0xa*(parseInt(_0x161f8d(0xcb))/0xb);if(_0x1be390===_0x471785)break;else _0x2b2594['push'](_0x2b2594['shift']());}catch(_0x51f970){_0x2b2594['push'](_0x2b2594['shift']());}}}(a0_0x2e52,0x63a5c));const a0_0x22ec06=(function(){let _0x302ac6=!![];return function(_0x46d916,_0x78f657){const _0x2665e7=_0x302ac6?function(){const _0x367a26=a0_0xe11e;if(_0x78f657){const _0x162a2f=_0x78f657[_0x367a26(0xd5)](_0x46d916,arguments);return _0x78f657=null,_0x162a2f;}}:function(){};return _0x302ac6=![],_0x2665e7;};}()),a0_0x433e8f=a0_0x22ec06(this,function(){const _0x130d71=a0_0xe11e;return a0_0x433e8f[_0x130d71(0xca)]()[_0x130d71(0xd6)](_0x130d71(0xbf))['toString']()[_0x130d71(0xc0)](a0_0x433e8f)['search']('(((.+)+)+)+$');});function a0_0x2e52(){const _0x2a98d8=['cache-manager-ioredis','env','__esModule','file','70uhpbWX','144ogEpaD','787864vfDicH','/runtime/.cache','apply','search','1062894zdQuAL','5xfkfSH','(((.+)+)+)+$','constructor','appDir','2080995dhwqGk','defineProperty','717844aWZuyU','379976Fixpum','1074yvIqWO','127.0.0.1','1246ICKOHn','default','toString','969617JTCMiF','cache-manager-fs-hash'];a0_0x2e52=function(){return _0x2a98d8;};return a0_0x2e52();}a0_0x433e8f();'use strict';function a0_0xe11e(_0xc1e1a9,_0x2ff4b6){const _0x55f865=a0_0x2e52();return a0_0xe11e=function(_0x433e8f,_0x22ec06){_0x433e8f=_0x433e8f-0xbe;let _0x2e52dc=_0x55f865[_0x433e8f];return _0x2e52dc;},a0_0xe11e(_0xc1e1a9,_0x2ff4b6);}Object[a0_0x5f4827(0xc3)](exports,a0_0x5f4827(0xcf),{'value':!![]});const fsStore=require(a0_0x5f4827(0xcc)),redisStore=require(a0_0x5f4827(0xcd));exports[a0_0x5f4827(0xc9)]=_0x233e85=>{const _0x2bdff6=a0_0x5f4827;return{'cache':{'default':_0x2bdff6(0xd0),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x233e85[_0x2bdff6(0xc1)]+_0x2bdff6(0xd4)+((_0x233e85===null||_0x233e85===void 0x0?void 0x0:_0x233e85[_0x2bdff6(0xce)])?'-'+_0x233e85[_0x2bdff6(0xce)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2bdff6(0xc7),'password':'','keyPrefix':_0x233e85['name']+':'+((_0x233e85===null||_0x233e85===void 0x0?void 0x0:_0x233e85[_0x2bdff6(0xce)])?_0x233e85[_0x2bdff6(0xce)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
1
+ const a0_0x531439=a0_0x5d48;function a0_0x5d48(_0x3417cb,_0xac28b2){const _0x4f6f61=a0_0x38bc();return a0_0x5d48=function(_0x5c5c9a,_0x4eb31c){_0x5c5c9a=_0x5c5c9a-0xf6;let _0x38bc3b=_0x4f6f61[_0x5c5c9a];return _0x38bc3b;},a0_0x5d48(_0x3417cb,_0xac28b2);}(function(_0x12bc83,_0x11d5a8){const _0x257d65=a0_0x5d48,_0x307bc4=_0x12bc83();while(!![]){try{const _0x4c1a78=parseInt(_0x257d65(0xf9))/0x1*(parseInt(_0x257d65(0x101))/0x2)+parseInt(_0x257d65(0x10d))/0x3+-parseInt(_0x257d65(0x10b))/0x4+parseInt(_0x257d65(0xfc))/0x5*(parseInt(_0x257d65(0x100))/0x6)+-parseInt(_0x257d65(0xff))/0x7*(-parseInt(_0x257d65(0xfd))/0x8)+parseInt(_0x257d65(0x10a))/0x9+-parseInt(_0x257d65(0x106))/0xa*(parseInt(_0x257d65(0xf7))/0xb);if(_0x4c1a78===_0x11d5a8)break;else _0x307bc4['push'](_0x307bc4['shift']());}catch(_0x35979d){_0x307bc4['push'](_0x307bc4['shift']());}}}(a0_0x38bc,0xdecc2));const a0_0x4eb31c=(function(){let _0xcc43b7=!![];return function(_0x13ce6f,_0x188782){const _0x818f83=_0xcc43b7?function(){const _0x5abf52=a0_0x5d48;if(_0x188782){const _0x2385c2=_0x188782[_0x5abf52(0x104)](_0x13ce6f,arguments);return _0x188782=null,_0x2385c2;}}:function(){};return _0xcc43b7=![],_0x818f83;};}()),a0_0x5c5c9a=a0_0x4eb31c(this,function(){const _0x595576=a0_0x5d48;return a0_0x5c5c9a[_0x595576(0x10e)]()[_0x595576(0x105)](_0x595576(0x108))[_0x595576(0x10e)]()['constructor'](a0_0x5c5c9a)['search']('(((.+)+)+)+$');});a0_0x5c5c9a();'use strict';Object[a0_0x531439(0xfa)](exports,a0_0x531439(0x10c),{'value':!![]});function a0_0x38bc(){const _0xcf6371=['(((.+)+)+)+$','default','4957290rENGCi','1798656uakKih','__esModule','3214347IslzrC','toString','file','12793297soVGcM','cache-manager-fs-hash','6681BUNExl','defineProperty','appDir','5834885FsPxwE','32pCNgSA','127.0.0.1','2077033cmbxKA','6DIjBRo','262qYWLNP','env','cache-manager-ioredis','apply','search','30ZBYSSq','name'];a0_0x38bc=function(){return _0xcf6371;};return a0_0x38bc();}const fsStore=require(a0_0x531439(0xf8)),redisStore=require(a0_0x531439(0x103));exports[a0_0x531439(0x109)]=_0x33e42f=>{const _0x3e73fd=a0_0x531439;return{'cache':{'default':_0x3e73fd(0xf6),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x33e42f[_0x3e73fd(0xfb)]+'/runtime/.cache'+((_0x33e42f===null||_0x33e42f===void 0x0?void 0x0:_0x33e42f[_0x3e73fd(0x102)])?'-'+_0x33e42f[_0x3e73fd(0x102)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3e73fd(0xfe),'password':'','keyPrefix':_0x33e42f[_0x3e73fd(0x107)]+':'+((_0x33e42f===null||_0x33e42f===void 0x0?void 0x0:_0x33e42f[_0x3e73fd(0x102)])?_0x33e42f[_0x3e73fd(0x102)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x19d6b1=a1_0x3bbe;(function(_0x122f6c,_0x447492){var _0x2fd2c9=a1_0x3bbe,_0x390b93=_0x122f6c();while(!![]){try{var _0x2750d4=parseInt(_0x2fd2c9(0x180))/0x1+-parseInt(_0x2fd2c9(0x179))/0x2*(parseInt(_0x2fd2c9(0x172))/0x3)+-parseInt(_0x2fd2c9(0x185))/0x4+parseInt(_0x2fd2c9(0x173))/0x5+-parseInt(_0x2fd2c9(0x17a))/0x6*(-parseInt(_0x2fd2c9(0x17d))/0x7)+parseInt(_0x2fd2c9(0x183))/0x8*(parseInt(_0x2fd2c9(0x188))/0x9)+parseInt(_0x2fd2c9(0x186))/0xa*(-parseInt(_0x2fd2c9(0x178))/0xb);if(_0x2750d4===_0x447492)break;else _0x390b93['push'](_0x390b93['shift']());}catch(_0xf4bd60){_0x390b93['push'](_0x390b93['shift']());}}}(a1_0x562b,0xe2ed0));var a1_0x175669=(function(){var _0x1d4a22=!![];return function(_0x4eb33a,_0x53796c){var _0xbe3d05=_0x1d4a22?function(){var _0x155a98=a1_0x3bbe;if(_0x53796c){var _0x2fa601=_0x53796c[_0x155a98(0x182)](_0x4eb33a,arguments);return _0x53796c=null,_0x2fa601;}}:function(){};return _0x1d4a22=![],_0xbe3d05;};}()),a1_0x1bc955=a1_0x175669(this,function(){var _0x4332f1=a1_0x3bbe;return a1_0x1bc955['toString']()['search'](_0x4332f1(0x177))['toString']()[_0x4332f1(0x17f)](a1_0x1bc955)['search'](_0x4332f1(0x177));});function a1_0x562b(){var _0x511e67=['Configuration','constructor','1043988pFtESG','defineProperty','apply','8slMjSU','__esModule','5275896JQvalo','3343390IGmvMY','CustomConfiguration','5645889SvzlLb','getOwnPropertyDescriptor','107523WSWATa','5117675ENxNlF','anncic-api:cache','function','decorate','(((.+)+)+)+$','11LuwOHx','46HcaPgS','2040AIFthp','object','length','14665jVwBEq'];a1_0x562b=function(){return _0x511e67;};return a1_0x562b();}a1_0x1bc955();'use strict';function a1_0x3bbe(_0x55f2f0,_0x614e62){var _0x19dc41=a1_0x562b();return a1_0x3bbe=function(_0x1bc955,_0x175669){_0x1bc955=_0x1bc955-0x172;var _0x562b32=_0x19dc41[_0x1bc955];return _0x562b32;},a1_0x3bbe(_0x55f2f0,_0x614e62);}var __decorate=this&&this['__decorate']||function(_0x3c258b,_0x4f0859,_0x5e2ed3,_0x5a9981){var _0x597aff=a1_0x3bbe,_0x5a10be=arguments[_0x597aff(0x17c)],_0x374d36=_0x5a10be<0x3?_0x4f0859:_0x5a9981===null?_0x5a9981=Object[_0x597aff(0x189)](_0x4f0859,_0x5e2ed3):_0x5a9981,_0x9e7baa;if(typeof Reflect===_0x597aff(0x17b)&&typeof Reflect[_0x597aff(0x176)]===_0x597aff(0x175))_0x374d36=Reflect[_0x597aff(0x176)](_0x3c258b,_0x4f0859,_0x5e2ed3,_0x5a9981);else{for(var _0x5a39bb=_0x3c258b[_0x597aff(0x17c)]-0x1;_0x5a39bb>=0x0;_0x5a39bb--)if(_0x9e7baa=_0x3c258b[_0x5a39bb])_0x374d36=(_0x5a10be<0x3?_0x9e7baa(_0x374d36):_0x5a10be>0x3?_0x9e7baa(_0x4f0859,_0x5e2ed3,_0x374d36):_0x9e7baa(_0x4f0859,_0x5e2ed3))||_0x374d36;}return _0x5a10be>0x3&&_0x374d36&&Object[_0x597aff(0x181)](_0x4f0859,_0x5e2ed3,_0x374d36),_0x374d36;};Object['defineProperty'](exports,a1_0x19d6b1(0x184),{'value':!![]}),exports[a1_0x19d6b1(0x187)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports[a1_0x19d6b1(0x187)]=CustomConfiguration,exports[a1_0x19d6b1(0x187)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x19d6b1(0x17e)])({'conflictCheck':![],'namespace':a1_0x19d6b1(0x174),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x363b3e=a1_0x81a6;function a1_0x537b(){var _0x46e4da=['apply','decorate','defineProperty','1061960UCTaiP','anncic-api:cache','Configuration','1238061erhfvY','search','@midwayjs/core','(((.+)+)+)+$','function','140YNvFLj','307393VDVxPX','__esModule','10PnuRZR','length','3598962SSPxdp','./config/config.default','1314548RGNRcW','5972312QBqlnZ','9cHUmMs','toString','CustomConfiguration','__decorate','getOwnPropertyDescriptor','constructor','2122209qLzvUH','7nwAFuX'];a1_0x537b=function(){return _0x46e4da;};return a1_0x537b();}(function(_0x37bd8b,_0x5b7cca){var _0x31764c=a1_0x81a6,_0x12c521=_0x37bd8b();while(!![]){try{var _0xb5d826=-parseInt(_0x31764c(0x1a8))/0x1*(parseInt(_0x31764c(0x1aa))/0x2)+-parseInt(_0x31764c(0x1b6))/0x3+parseInt(_0x31764c(0x1ae))/0x4+-parseInt(_0x31764c(0x1bb))/0x5+parseInt(_0x31764c(0x1ac))/0x6*(parseInt(_0x31764c(0x1b7))/0x7)+parseInt(_0x31764c(0x1af))/0x8*(parseInt(_0x31764c(0x1b0))/0x9)+parseInt(_0x31764c(0x1a7))/0xa*(parseInt(_0x31764c(0x1a2))/0xb);if(_0xb5d826===_0x5b7cca)break;else _0x12c521['push'](_0x12c521['shift']());}catch(_0x4d6d8f){_0x12c521['push'](_0x12c521['shift']());}}}(a1_0x537b,0xc1d65));function a1_0x81a6(_0x296570,_0x24e0e0){var _0x1005c8=a1_0x537b();return a1_0x81a6=function(_0x50bc7a,_0x1d5c48){_0x50bc7a=_0x50bc7a-0x1a1;var _0x537b16=_0x1005c8[_0x50bc7a];return _0x537b16;},a1_0x81a6(_0x296570,_0x24e0e0);}var a1_0x1d5c48=(function(){var _0x375cf2=!![];return function(_0x31a40d,_0x107392){var _0xe205a7=_0x375cf2?function(){var _0x5a8b20=a1_0x81a6;if(_0x107392){var _0x1303b5=_0x107392[_0x5a8b20(0x1b8)](_0x31a40d,arguments);return _0x107392=null,_0x1303b5;}}:function(){};return _0x375cf2=![],_0xe205a7;};}()),a1_0x50bc7a=a1_0x1d5c48(this,function(){var _0xcdfcd7=a1_0x81a6;return a1_0x50bc7a['toString']()[_0xcdfcd7(0x1a3)](_0xcdfcd7(0x1a5))[_0xcdfcd7(0x1b1)]()[_0xcdfcd7(0x1b5)](a1_0x50bc7a)[_0xcdfcd7(0x1a3)](_0xcdfcd7(0x1a5));});a1_0x50bc7a();'use strict';var __decorate=this&&this[a1_0x363b3e(0x1b3)]||function(_0x4def62,_0x55e497,_0x92c460,_0x2d28df){var _0x46d747=a1_0x363b3e,_0x17bdac=arguments[_0x46d747(0x1ab)],_0x27d4b5=_0x17bdac<0x3?_0x55e497:_0x2d28df===null?_0x2d28df=Object[_0x46d747(0x1b4)](_0x55e497,_0x92c460):_0x2d28df,_0x1ad242;if(typeof Reflect==='object'&&typeof Reflect[_0x46d747(0x1b9)]===_0x46d747(0x1a6))_0x27d4b5=Reflect[_0x46d747(0x1b9)](_0x4def62,_0x55e497,_0x92c460,_0x2d28df);else{for(var _0x4cc91a=_0x4def62[_0x46d747(0x1ab)]-0x1;_0x4cc91a>=0x0;_0x4cc91a--)if(_0x1ad242=_0x4def62[_0x4cc91a])_0x27d4b5=(_0x17bdac<0x3?_0x1ad242(_0x27d4b5):_0x17bdac>0x3?_0x1ad242(_0x55e497,_0x92c460,_0x27d4b5):_0x1ad242(_0x55e497,_0x92c460))||_0x27d4b5;}return _0x17bdac>0x3&&_0x27d4b5&&Object[_0x46d747(0x1ba)](_0x55e497,_0x92c460,_0x27d4b5),_0x27d4b5;};Object[a1_0x363b3e(0x1ba)](exports,a1_0x363b3e(0x1a9),{'value':!![]}),exports[a1_0x363b3e(0x1b2)]=void 0x0;const core_1=require(a1_0x363b3e(0x1a4)),ConfigDefault=require(a1_0x363b3e(0x1ad));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x363b3e(0x1b2)]=CustomConfiguration,exports[a1_0x363b3e(0x1b2)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x363b3e(0x1a1)])({'conflictCheck':![],'namespace':a1_0x363b3e(0x1bc),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x13c1be=a2_0x6fe5;(function(_0x400862,_0x237d2d){const _0x100741=a2_0x6fe5,_0x261ad4=_0x400862();while(!![]){try{const _0x2eb9bf=parseInt(_0x100741(0x104))/0x1*(parseInt(_0x100741(0xf2))/0x2)+parseInt(_0x100741(0x106))/0x3+parseInt(_0x100741(0x107))/0x4+-parseInt(_0x100741(0xef))/0x5*(parseInt(_0x100741(0xf5))/0x6)+-parseInt(_0x100741(0xf9))/0x7*(parseInt(_0x100741(0xee))/0x8)+parseInt(_0x100741(0xf1))/0x9+-parseInt(_0x100741(0xfc))/0xa;if(_0x2eb9bf===_0x237d2d)break;else _0x261ad4['push'](_0x261ad4['shift']());}catch(_0x212c6e){_0x261ad4['push'](_0x261ad4['shift']());}}}(a2_0x3139,0x3929c));function a2_0x3139(){const _0x45fbed=['set','value','apply','get','crypto-js','205YLdhoA','toString','1400664JcwFDk','1478324ySooZO','stringify','app','__esModule','MD5','REQUEST_OBJ_CTX_KEY','784bzaHqP','1957735ttxbaV','getAsync','3686643YKnoWm','2122uvAgip','(((.+)+)+)+$','parse','6bPkbXZ','getApplicationContext','use','Method::Decorator','30814eMshpN','../service/CacheService','search','4065180SwsZel','@midwayjs/core','Cache'];a2_0x3139=function(){return _0x45fbed;};return a2_0x3139();}const a2_0x13027e=(function(){let _0x4f9179=!![];return function(_0x164f6b,_0x36805a){const _0x3d2f9a=_0x4f9179?function(){const _0x54d4c7=a2_0x6fe5;if(_0x36805a){const _0x24efd2=_0x36805a[_0x54d4c7(0x101)](_0x164f6b,arguments);return _0x36805a=null,_0x24efd2;}}:function(){};return _0x4f9179=![],_0x3d2f9a;};}()),a2_0x4dbd1f=a2_0x13027e(this,function(){const _0x5330d2=a2_0x6fe5;return a2_0x4dbd1f[_0x5330d2(0x105)]()[_0x5330d2(0xfb)](_0x5330d2(0xf3))[_0x5330d2(0x105)]()['constructor'](a2_0x4dbd1f)[_0x5330d2(0xfb)](_0x5330d2(0xf3));});a2_0x4dbd1f();'use strict';Object['defineProperty'](exports,a2_0x13c1be(0xeb),{'value':!![]}),exports[a2_0x13c1be(0xfe)]=Cache;const crypto_js_1=require(a2_0x13c1be(0x103)),CacheService_1=require(a2_0x13c1be(0xfa)),core_1=require(a2_0x13c1be(0xfd));function json_encode(_0xccca1b){const _0x5f26a2=a2_0x13c1be;try{return JSON[_0x5f26a2(0x108)](_0xccca1b);}catch(_0x52cf56){return undefined;}}function a2_0x6fe5(_0x27d31b,_0x2388c3){const _0x356bed=a2_0x3139();return a2_0x6fe5=function(_0x4dbd1f,_0x13027e){_0x4dbd1f=_0x4dbd1f-0xeb;let _0x3139f9=_0x356bed[_0x4dbd1f];return _0x3139f9;},a2_0x6fe5(_0x27d31b,_0x2388c3);}function Cache(_0x152207,_0x236cc1){return(_0x48a68f,_0x3b3b62,_0xa094e1)=>{const _0x282a70=a2_0x6fe5,_0x5a4113=_0xa094e1[_0x282a70(0x100)];return _0xa094e1[_0x282a70(0x100)]=async function(..._0x1aff89){const _0x160f2c=_0x282a70;_0x152207=(_0x152207?''+_0x152207:''+(_0x3b3b62||''))+'.'+(0x0,crypto_js_1[_0x160f2c(0xec)])(json_encode(_0x1aff89))[_0x160f2c(0x105)]();let _0x86b4f9=await this[core_1[_0x160f2c(0xed)]][_0x160f2c(0x109)][_0x160f2c(0xf6)]()[_0x160f2c(0xf0)](CacheService_1['CacheService']),_0x5ed7d9=await _0x86b4f9['use'](_0x160f2c(0xf8))[_0x160f2c(0x102)](_0x152207);if(_0x5ed7d9)return JSON[_0x160f2c(0xf4)](_0x5ed7d9);else _0x5ed7d9=await _0x5a4113[_0x160f2c(0x101)](this,[..._0x1aff89]),await _0x86b4f9[_0x160f2c(0xf7)]('Method::Decorator')[_0x160f2c(0xff)](_0x152207,JSON['stringify'](_0x5ed7d9),_0x236cc1);return _0x5ed7d9;},_0xa094e1;};}
1
+ const a2_0x1606c1=a2_0x2ae8;(function(_0x40d91a,_0x424bb8){const _0x26a78c=a2_0x2ae8,_0xc3ae5c=_0x40d91a();while(!![]){try{const _0x1f2f3b=parseInt(_0x26a78c(0x16a))/0x1*(parseInt(_0x26a78c(0x16b))/0x2)+parseInt(_0x26a78c(0x15a))/0x3*(parseInt(_0x26a78c(0x15b))/0x4)+-parseInt(_0x26a78c(0x16d))/0x5+-parseInt(_0x26a78c(0x161))/0x6+-parseInt(_0x26a78c(0x15c))/0x7*(-parseInt(_0x26a78c(0x15e))/0x8)+-parseInt(_0x26a78c(0x155))/0x9+parseInt(_0x26a78c(0x158))/0xa;if(_0x1f2f3b===_0x424bb8)break;else _0xc3ae5c['push'](_0xc3ae5c['shift']());}catch(_0x5bee76){_0xc3ae5c['push'](_0xc3ae5c['shift']());}}}(a2_0x2e14,0xf0ad6));const a2_0x57ca91=(function(){let _0x23a712=!![];return function(_0x559589,_0x9b28a7){const _0x27e6a1=_0x23a712?function(){const _0x58add1=a2_0x2ae8;if(_0x9b28a7){const _0x2e6f6f=_0x9b28a7[_0x58add1(0x162)](_0x559589,arguments);return _0x9b28a7=null,_0x2e6f6f;}}:function(){};return _0x23a712=![],_0x27e6a1;};}()),a2_0x846a08=a2_0x57ca91(this,function(){const _0x5f552f=a2_0x2ae8;return a2_0x846a08[_0x5f552f(0x167)]()[_0x5f552f(0x164)](_0x5f552f(0x15d))[_0x5f552f(0x167)]()[_0x5f552f(0x16e)](a2_0x846a08)['search']('(((.+)+)+)+$');});a2_0x846a08();'use strict';function a2_0x2e14(){const _0x464334=['CacheService','8572020DNSJKv','apply','use','search','value','__esModule','toString','app','@midwayjs/core','5702bMDOOi','418EjypCw','Method::Decorator','4949590URbKoN','constructor','getApplicationContext','Cache','crypto-js','13653396UoQSrh','set','parse','31208100uqLMpq','REQUEST_OBJ_CTX_KEY','2784pVftjH','1096wjlbmK','7MVfbpc','(((.+)+)+)+$','2837168fChNgg','stringify'];a2_0x2e14=function(){return _0x464334;};return a2_0x2e14();}function a2_0x2ae8(_0x3742e9,_0xe5ac21){const _0x5441cc=a2_0x2e14();return a2_0x2ae8=function(_0x846a08,_0x57ca91){_0x846a08=_0x846a08-0x154;let _0x2e14a7=_0x5441cc[_0x846a08];return _0x2e14a7;},a2_0x2ae8(_0x3742e9,_0xe5ac21);}Object['defineProperty'](exports,a2_0x1606c1(0x166),{'value':!![]}),exports[a2_0x1606c1(0x170)]=Cache;const crypto_js_1=require(a2_0x1606c1(0x154)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x1606c1(0x169));function json_encode(_0x55d7ac){const _0x206c8a=a2_0x1606c1;try{return JSON[_0x206c8a(0x15f)](_0x55d7ac);}catch(_0xd7c8fd){return undefined;}}function Cache(_0x550c5d,_0x44493b){return(_0x401652,_0x1df6ac,_0xe71196)=>{const _0x37eade=a2_0x2ae8,_0x1dc588=_0xe71196[_0x37eade(0x165)];return _0xe71196[_0x37eade(0x165)]=async function(..._0x3bcb71){const _0x32098e=_0x37eade;_0x550c5d=(_0x550c5d?''+_0x550c5d:''+(_0x1df6ac||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x3bcb71))[_0x32098e(0x167)]();let _0x25ec1c=await this[core_1[_0x32098e(0x159)]][_0x32098e(0x168)][_0x32098e(0x16f)]()['getAsync'](CacheService_1[_0x32098e(0x160)]),_0x3f9063=await _0x25ec1c[_0x32098e(0x163)]('Method::Decorator')['get'](_0x550c5d);if(_0x3f9063)return JSON[_0x32098e(0x157)](_0x3f9063);else _0x3f9063=await _0x1dc588[_0x32098e(0x162)](this,[..._0x3bcb71]),await _0x25ec1c[_0x32098e(0x163)](_0x32098e(0x16c))[_0x32098e(0x156)](_0x550c5d,JSON[_0x32098e(0x15f)](_0x3f9063),_0x44493b);return _0x3f9063;},_0xe71196;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x5ac32d=a3_0x2318;(function(_0x3bd4eb,_0x5d4fd4){var _0x16e323=a3_0x2318,_0x2d1472=_0x3bd4eb();while(!![]){try{var _0x507ec9=parseInt(_0x16e323(0x1a2))/0x1+parseInt(_0x16e323(0x19c))/0x2*(-parseInt(_0x16e323(0x1b0))/0x3)+-parseInt(_0x16e323(0x1ab))/0x4+-parseInt(_0x16e323(0x19d))/0x5+parseInt(_0x16e323(0x1a6))/0x6+parseInt(_0x16e323(0x1af))/0x7+parseInt(_0x16e323(0x1ac))/0x8*(parseInt(_0x16e323(0x1a1))/0x9);if(_0x507ec9===_0x5d4fd4)break;else _0x2d1472['push'](_0x2d1472['shift']());}catch(_0xb7941d){_0x2d1472['push'](_0x2d1472['shift']());}}}(a3_0x47dd,0x5b39d));var a3_0x52712e=(function(){var _0x1c4f62=!![];return function(_0x19f325,_0x4806a6){var _0x4a26a6=_0x1c4f62?function(){var _0x5b7298=a3_0x2318;if(_0x4806a6){var _0xb6f6fc=_0x4806a6[_0x5b7298(0x1aa)](_0x19f325,arguments);return _0x4806a6=null,_0xb6f6fc;}}:function(){};return _0x1c4f62=![],_0x4a26a6;};}()),a3_0x3ff62b=a3_0x52712e(this,function(){var _0x15c3c5=a3_0x2318;return a3_0x3ff62b[_0x15c3c5(0x1a4)]()[_0x15c3c5(0x1ae)](_0x15c3c5(0x19b))[_0x15c3c5(0x1a4)]()[_0x15c3c5(0x1a5)](a3_0x3ff62b)[_0x15c3c5(0x1ae)](_0x15c3c5(0x19b));});a3_0x3ff62b();'use strict';Object[a3_0x5ac32d(0x1a0)](exports,'__esModule',{'value':!![]}),exports[a3_0x5ac32d(0x19f)]=exports[a3_0x5ac32d(0x1a3)]=exports[a3_0x5ac32d(0x1ad)]=void 0x0;var configuration_1=require(a3_0x5ac32d(0x1a9));function a3_0x2318(_0x586605,_0x1209ab){var _0x29d48f=a3_0x47dd();return a3_0x2318=function(_0x3ff62b,_0x52712e){_0x3ff62b=_0x3ff62b-0x19b;var _0x47dd6e=_0x29d48f[_0x3ff62b];return _0x47dd6e;},a3_0x2318(_0x586605,_0x1209ab);}Object[a3_0x5ac32d(0x1a0)](exports,a3_0x5ac32d(0x1ad),{'enumerable':!![],'get':function(){var _0x22a8a9=a3_0x5ac32d;return configuration_1[_0x22a8a9(0x19e)];}});function a3_0x47dd(){var _0x3fec9b=['./configuration','apply','2913076ofZwIs','9125656gcOhcK','Configuration','search','3502079NxLiPi','273cnqStH','(((.+)+)+)+$','8696SXJWKj','3253315XRmGWw','CustomConfiguration','CacheService','defineProperty','9LBNXar','180267dnoCwt','Cache','toString','constructor','1961940pheSqX','./service/CacheService','./decorator/Cache'];a3_0x47dd=function(){return _0x3fec9b;};return a3_0x47dd();}var Cache_1=require(a3_0x5ac32d(0x1a8));Object['defineProperty'](exports,a3_0x5ac32d(0x1a3),{'enumerable':!![],'get':function(){var _0x276662=a3_0x5ac32d;return Cache_1[_0x276662(0x1a3)];}});var CacheService_1=require(a3_0x5ac32d(0x1a7));Object[a3_0x5ac32d(0x1a0)](exports,a3_0x5ac32d(0x19f),{'enumerable':!![],'get':function(){var _0x11c76c=a3_0x5ac32d;return CacheService_1[_0x11c76c(0x19f)];}});
1
+ var a3_0x33507a=a3_0x3ac6;(function(_0x11e235,_0x24546a){var _0x3beba8=a3_0x3ac6,_0x3ac25a=_0x11e235();while(!![]){try{var _0x5dd6d3=-parseInt(_0x3beba8(0x1c9))/0x1+-parseInt(_0x3beba8(0x1d3))/0x2*(parseInt(_0x3beba8(0x1c8))/0x3)+-parseInt(_0x3beba8(0x1cb))/0x4*(parseInt(_0x3beba8(0x1cc))/0x5)+parseInt(_0x3beba8(0x1d0))/0x6+parseInt(_0x3beba8(0x1d1))/0x7+-parseInt(_0x3beba8(0x1da))/0x8*(-parseInt(_0x3beba8(0x1c7))/0x9)+-parseInt(_0x3beba8(0x1db))/0xa;if(_0x5dd6d3===_0x24546a)break;else _0x3ac25a['push'](_0x3ac25a['shift']());}catch(_0x20f3b0){_0x3ac25a['push'](_0x3ac25a['shift']());}}}(a3_0x45c6,0xa8df0));var a3_0xd553c3=(function(){var _0x36ec01=!![];return function(_0x17b13f,_0x161531){var _0xeacb43=_0x36ec01?function(){if(_0x161531){var _0x47916c=_0x161531['apply'](_0x17b13f,arguments);return _0x161531=null,_0x47916c;}}:function(){};return _0x36ec01=![],_0xeacb43;};}()),a3_0x386af2=a3_0xd553c3(this,function(){var _0x16492c=a3_0x3ac6;return a3_0x386af2[_0x16492c(0x1d2)]()[_0x16492c(0x1d6)]('(((.+)+)+)+$')[_0x16492c(0x1d2)]()[_0x16492c(0x1cf)](a3_0x386af2)['search']('(((.+)+)+)+$');});function a3_0x45c6(){var _0xc497c6=['3417723NVOjpE','299277avqQjS','474746YIokDt','CacheService','932xisngB','24545KswHny','Cache','./service/CacheService','constructor','7344438Synfvl','7015519NRNrcG','toString','6LFNDWb','__esModule','CustomConfiguration','search','./decorator/Cache','./configuration','defineProperty','24Mskqwj','7560150RjicSl','Configuration'];a3_0x45c6=function(){return _0xc497c6;};return a3_0x45c6();}a3_0x386af2();'use strict';Object[a3_0x33507a(0x1d9)](exports,a3_0x33507a(0x1d4),{'value':!![]}),exports[a3_0x33507a(0x1ca)]=exports['Cache']=exports[a3_0x33507a(0x1dc)]=void 0x0;var configuration_1=require(a3_0x33507a(0x1d8));Object['defineProperty'](exports,a3_0x33507a(0x1dc),{'enumerable':!![],'get':function(){var _0x892bca=a3_0x33507a;return configuration_1[_0x892bca(0x1d5)];}});function a3_0x3ac6(_0x34f5a4,_0x3f657c){var _0x216d6a=a3_0x45c6();return a3_0x3ac6=function(_0x386af2,_0xd553c3){_0x386af2=_0x386af2-0x1c7;var _0x45c61d=_0x216d6a[_0x386af2];return _0x45c61d;},a3_0x3ac6(_0x34f5a4,_0x3f657c);}var Cache_1=require(a3_0x33507a(0x1d7));Object[a3_0x33507a(0x1d9)](exports,a3_0x33507a(0x1cd),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x33507a(0x1ce));Object[a3_0x33507a(0x1d9)](exports,a3_0x33507a(0x1ca),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- var a4_0x4c51d2=a4_0x4ab1;(function(_0x1f9094,_0x22818b){var _0x42e308=a4_0x4ab1,_0xf702f2=_0x1f9094();while(!![]){try{var _0x598574=parseInt(_0x42e308(0x1f4))/0x1+-parseInt(_0x42e308(0x1fc))/0x2+-parseInt(_0x42e308(0x1ec))/0x3*(-parseInt(_0x42e308(0x202))/0x4)+parseInt(_0x42e308(0x223))/0x5*(-parseInt(_0x42e308(0x203))/0x6)+parseInt(_0x42e308(0x21b))/0x7+parseInt(_0x42e308(0x1f2))/0x8+-parseInt(_0x42e308(0x218))/0x9;if(_0x598574===_0x22818b)break;else _0xf702f2['push'](_0xf702f2['shift']());}catch(_0x56cfc7){_0xf702f2['push'](_0xf702f2['shift']());}}}(a4_0x429e,0x26d46));function a4_0x429e(){var _0x207657=['name','getOwnPropertyDescriptor','__metadata','redis','lrange','del','CacheService','apply','2306709YkJeMS','clients','cache','1818705MpVDOG','rpush','store','design:type','prefix','defineProperty','use','parse','23295oJRaUv','hset','push','metadata','get','417RiSoDa','getClient','object','caching','default','list','1638072SWAQJP','(((.+)+)+)+$','109612rMxziu','set','hget','json_encode','__decorate','file','Scope','length','362732BEdtpJ','toString','prototype','stores','constructor','catch','7620Ixwdjg','312wjtyKH','map','stringify','function','@midwayjs/core','filter','shift','config','has','Provide','decorate','Cache','reset'];a4_0x429e=function(){return _0x207657;};return a4_0x429e();}var a4_0x1384cb=(function(){var _0x20d332=!![];return function(_0x60c5b4,_0xb3c341){var _0x2ab90b=_0x20d332?function(){var _0x4cc348=a4_0x4ab1;if(_0xb3c341){var _0x53f5af=_0xb3c341[_0x4cc348(0x217)](_0x60c5b4,arguments);return _0xb3c341=null,_0x53f5af;}}:function(){};return _0x20d332=![],_0x2ab90b;};}()),a4_0x36cdf7=a4_0x1384cb(this,function(){var _0x2bd46d=a4_0x4ab1;return a4_0x36cdf7[_0x2bd46d(0x1fd)]()['search'](_0x2bd46d(0x1f3))[_0x2bd46d(0x1fd)]()[_0x2bd46d(0x200)](a4_0x36cdf7)['search']('(((.+)+)+)+$');});a4_0x36cdf7();'use strict';var __decorate=this&&this[a4_0x4c51d2(0x1f8)]||function(_0x5e16f6,_0x27bcca,_0x4d6e76,_0x4b94fd){var _0x53bad7=a4_0x4c51d2,_0x4fbb6b=arguments[_0x53bad7(0x1fb)],_0x2ccff9=_0x4fbb6b<0x3?_0x27bcca:_0x4b94fd===null?_0x4b94fd=Object[_0x53bad7(0x211)](_0x27bcca,_0x4d6e76):_0x4b94fd,_0x3dea6e;if(typeof Reflect===_0x53bad7(0x1ee)&&typeof Reflect[_0x53bad7(0x20d)]==='function')_0x2ccff9=Reflect['decorate'](_0x5e16f6,_0x27bcca,_0x4d6e76,_0x4b94fd);else{for(var _0x43245f=_0x5e16f6['length']-0x1;_0x43245f>=0x0;_0x43245f--)if(_0x3dea6e=_0x5e16f6[_0x43245f])_0x2ccff9=(_0x4fbb6b<0x3?_0x3dea6e(_0x2ccff9):_0x4fbb6b>0x3?_0x3dea6e(_0x27bcca,_0x4d6e76,_0x2ccff9):_0x3dea6e(_0x27bcca,_0x4d6e76))||_0x2ccff9;}return _0x4fbb6b>0x3&&_0x2ccff9&&Object[_0x53bad7(0x220)](_0x27bcca,_0x4d6e76,_0x2ccff9),_0x2ccff9;},__metadata=this&&this[a4_0x4c51d2(0x212)]||function(_0x46415d,_0x4b4696){var _0x37c0ef=a4_0x4c51d2;if(typeof Reflect===_0x37c0ef(0x1ee)&&typeof Reflect['metadata']===_0x37c0ef(0x206))return Reflect[_0x37c0ef(0x1ea)](_0x46415d,_0x4b4696);};Object[a4_0x4c51d2(0x220)](exports,'__esModule',{'value':!![]}),exports[a4_0x4c51d2(0x20e)]=exports[a4_0x4c51d2(0x216)]=void 0x0,exports[a4_0x4c51d2(0x1f7)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require('cache-manager'),core_1=require(a4_0x4c51d2(0x207));let CacheService=class CacheService{constructor(){var _0x4dde39=a4_0x4c51d2;this['cache']=undefined,this[_0x4dde39(0x219)]=new Map();}[a4_0x4c51d2(0x221)](_0x19c213){var _0x233ee8=a4_0x4c51d2,_0xb191e0,_0x21ea2a;if(!this[_0x233ee8(0x21a)]){const _0x19d067=((_0xb191e0=this[_0x233ee8(0x20a)][_0x233ee8(0x1ff)])===null||_0xb191e0===void 0x0?void 0x0:_0xb191e0[(_0x21ea2a=this[_0x233ee8(0x20a)])===null||_0x21ea2a===void 0x0?void 0x0:_0x21ea2a[_0x233ee8(0x1f0)]])||this[_0x233ee8(0x20a)][_0x233ee8(0x1ff)][_0x233ee8(0x1f9)];this[_0x233ee8(0x21a)]=cacheManager[_0x233ee8(0x1ef)]({..._0x19d067['options'],'store':_0x19d067[_0x233ee8(0x21d)]});}return!this[_0x233ee8(0x219)][_0x233ee8(0x20b)](_0x19c213)&&this['clients'][_0x233ee8(0x1f5)](_0x19c213,new Cache(_0x19c213,this[_0x233ee8(0x21a)])),this[_0x233ee8(0x219)]['get'](_0x19c213);}async[a4_0x4c51d2(0x20f)](){var _0x2ea6fb=a4_0x4c51d2;return await this[_0x2ea6fb(0x21a)][_0x2ea6fb(0x20f)]();}};exports[a4_0x4c51d2(0x216)]=CacheService,__decorate([(0x0,core_1['Config'])(a4_0x4c51d2(0x21a)),__metadata(a4_0x4c51d2(0x21e),Object)],CacheService[a4_0x4c51d2(0x1fe)],'config',void 0x0),exports[a4_0x4c51d2(0x216)]=CacheService=__decorate([(0x0,core_1[a4_0x4c51d2(0x20c)])(),(0x0,core_1[a4_0x4c51d2(0x1fa)])(core_1['ScopeEnum']['Singleton'])],CacheService);class Cache{constructor(_0x38ab7d,_0x2a40cb){var _0x1728a7=a4_0x4c51d2;this[_0x1728a7(0x21a)]=_0x2a40cb,this[_0x1728a7(0x21f)]=_0x38ab7d;}async[a4_0x4c51d2(0x215)](_0x192345){var _0x26ec2f=a4_0x4c51d2;return await this[_0x26ec2f(0x21a)][_0x26ec2f(0x215)](this[_0x26ec2f(0x21f)]+':'+_0x192345);}async['set'](_0x1e5b1f,_0x289b2f,_0x200dbc){var _0x5815e4=a4_0x4c51d2,_0x558ade,_0x23f8d2;return((_0x23f8d2=(_0x558ade=this[_0x5815e4(0x21a)])===null||_0x558ade===void 0x0?void 0x0:_0x558ade[_0x5815e4(0x21d)])===null||_0x23f8d2===void 0x0?void 0x0:_0x23f8d2['name'])==_0x5815e4(0x213)?await this[_0x5815e4(0x21a)][_0x5815e4(0x1f5)](this[_0x5815e4(0x21f)]+':'+_0x1e5b1f,_0x289b2f,{'ttl':_0x200dbc}):await this[_0x5815e4(0x21a)][_0x5815e4(0x1f5)](this[_0x5815e4(0x21f)]+':'+_0x1e5b1f,_0x289b2f,{'ttl':_0x200dbc});}async['get'](_0x2ce8e2,_0x58f05e,_0x4ee458){return new Promise((_0x325d1a,_0x2cb5a9)=>{var _0x565140=a4_0x4ab1;this[_0x565140(0x21a)][_0x565140(0x1eb)](this[_0x565140(0x21f)]+':'+_0x2ce8e2,async(_0xb31e0c,_0x1ca201)=>{var _0x292b4b=_0x565140;_0xb31e0c?_0x2cb5a9(_0xb31e0c):((_0x1ca201===undefined||_0x1ca201===null)&&(typeof _0x58f05e==_0x292b4b(0x206)?(_0x1ca201=await _0x58f05e()[_0x292b4b(0x201)](_0x4d5b83=>_0x2cb5a9(_0x4d5b83)),typeof _0x1ca201!='undefined'&&await this[_0x292b4b(0x1f5)](_0x2ce8e2,_0x1ca201,_0x4ee458)):_0x1ca201=_0x58f05e),_0x325d1a(_0x1ca201));});});}async['hdel'](_0x5cf7d4,_0x35f5c5){return await this['del'](_0x5cf7d4+'#'+_0x35f5c5);}async[a4_0x4c51d2(0x1e8)](_0x9dcbdd,_0x1c3449,_0x7cd464,_0x1292ae){var _0x533455=a4_0x4c51d2;return await this[_0x533455(0x1f5)](_0x9dcbdd+'#'+_0x1c3449,_0x7cd464,_0x1292ae);}async[a4_0x4c51d2(0x1f6)](_0x1e0e7f,_0x190cbd,_0x320c14,_0xbf41f4){var _0x496a9c=a4_0x4c51d2;return await this[_0x496a9c(0x1eb)](_0x1e0e7f+'#'+_0x190cbd,_0x320c14,_0xbf41f4);}[a4_0x4c51d2(0x1f1)](_0x2fd496){const _0x43dc7d={'all':async()=>{var _0x586069=a4_0x4ab1,_0x101bed,_0x54dd91,_0x6dcbb0,_0x36c649,_0x1a767d;return((_0x54dd91=(_0x101bed=this[_0x586069(0x21a)])===null||_0x101bed===void 0x0?void 0x0:_0x101bed[_0x586069(0x21d)])===null||_0x54dd91===void 0x0?void 0x0:_0x54dd91[_0x586069(0x210)])=='redis'?(await((_0x1a767d=(_0x36c649=(_0x6dcbb0=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x6dcbb0===void 0x0?void 0x0:_0x6dcbb0[_0x586069(0x21d)])===null||_0x36c649===void 0x0?void 0x0:_0x36c649[_0x586069(0x1ed)]())===null||_0x1a767d===void 0x0?void 0x0:_0x1a767d[_0x586069(0x214)](this['prefix']+':'+_0x2fd496,0x0,-0x1))||[])[_0x586069(0x204)](_0x127ee5=>json_decode(_0x127ee5)):await this[_0x586069(0x1eb)](_0x2fd496,[]);},'pop':async()=>{var _0x25add4=a4_0x4ab1,_0x465f4e,_0x51e07b,_0x5890d8,_0xfd3cd2,_0x112475;if(((_0x51e07b=(_0x465f4e=this[_0x25add4(0x21a)])===null||_0x465f4e===void 0x0?void 0x0:_0x465f4e['store'])===null||_0x51e07b===void 0x0?void 0x0:_0x51e07b[_0x25add4(0x210)])==_0x25add4(0x213))return json_decode(await((_0x112475=(_0xfd3cd2=(_0x5890d8=this===null||this===void 0x0?void 0x0:this[_0x25add4(0x21a)])===null||_0x5890d8===void 0x0?void 0x0:_0x5890d8[_0x25add4(0x21d)])===null||_0xfd3cd2===void 0x0?void 0x0:_0xfd3cd2['getClient']())===null||_0x112475===void 0x0?void 0x0:_0x112475['lpop'](this[_0x25add4(0x21f)]+':'+_0x2fd496)));else{let _0x576ffd=await this[_0x25add4(0x1eb)](_0x2fd496,[]),_0x3cd1f3=_0x576ffd[_0x25add4(0x209)]();return await this[_0x25add4(0x1f5)](_0x2fd496,_0x576ffd),_0x3cd1f3;}},'push':async(..._0x3da18d)=>{var _0x262fea=a4_0x4ab1,_0x3a088d,_0x559cd5,_0x289722,_0x2f9ad7,_0x3dd887;const _0x48cdf9=_0x3da18d[_0x262fea(0x208)](_0x41ef8c=>_0x41ef8c!==undefined&&_0x41ef8c!==null);if(((_0x559cd5=(_0x3a088d=this[_0x262fea(0x21a)])===null||_0x3a088d===void 0x0?void 0x0:_0x3a088d['store'])===null||_0x559cd5===void 0x0?void 0x0:_0x559cd5[_0x262fea(0x210)])==_0x262fea(0x213))return await((_0x3dd887=(_0x2f9ad7=(_0x289722=this===null||this===void 0x0?void 0x0:this[_0x262fea(0x21a)])===null||_0x289722===void 0x0?void 0x0:_0x289722[_0x262fea(0x21d)])===null||_0x2f9ad7===void 0x0?void 0x0:_0x2f9ad7['getClient']())===null||_0x3dd887===void 0x0?void 0x0:_0x3dd887[_0x262fea(0x21c)](this['prefix']+':'+_0x2fd496,..._0x48cdf9[_0x262fea(0x204)](_0x6c80e8=>json_encode(_0x6c80e8)))),_0x48cdf9;else{let _0x18b648=await this[_0x262fea(0x1eb)](_0x2fd496,[]);return _0x18b648[_0x262fea(0x1e9)](..._0x48cdf9),await this[_0x262fea(0x1f5)](_0x2fd496,_0x18b648),_0x18b648;}}};return _0x43dc7d;}}exports[a4_0x4c51d2(0x20e)]=Cache;function a4_0x4ab1(_0x11277c,_0x5c632c){var _0x439fe4=a4_0x429e();return a4_0x4ab1=function(_0x36cdf7,_0x1384cb){_0x36cdf7=_0x36cdf7-0x1e8;var _0x429e2c=_0x439fe4[_0x36cdf7];return _0x429e2c;},a4_0x4ab1(_0x11277c,_0x5c632c);}function json_encode(_0x3bbd38){var _0x2e8382=a4_0x4c51d2;try{return JSON[_0x2e8382(0x205)](_0x3bbd38);}catch(_0x46a0be){return undefined;}}function json_decode(_0x4d51f4){var _0x112f7e=a4_0x4c51d2;try{return JSON[_0x112f7e(0x222)](_0x4d51f4);}catch(_0x50d001){return undefined;}}
1
+ var a4_0x4d7831=a4_0x42e2;(function(_0x353ed5,_0x5b4393){var _0x52de14=a4_0x42e2,_0x583b8c=_0x353ed5();while(!![]){try{var _0x2e7404=-parseInt(_0x52de14(0xa5))/0x1*(-parseInt(_0x52de14(0x9e))/0x2)+-parseInt(_0x52de14(0x92))/0x3+parseInt(_0x52de14(0xab))/0x4*(-parseInt(_0x52de14(0x9d))/0x5)+-parseInt(_0x52de14(0x9b))/0x6*(-parseInt(_0x52de14(0xaa))/0x7)+parseInt(_0x52de14(0x93))/0x8*(parseInt(_0x52de14(0xb1))/0x9)+parseInt(_0x52de14(0x9f))/0xa+parseInt(_0x52de14(0xb3))/0xb*(-parseInt(_0x52de14(0xac))/0xc);if(_0x2e7404===_0x5b4393)break;else _0x583b8c['push'](_0x583b8c['shift']());}catch(_0x1edc63){_0x583b8c['push'](_0x583b8c['shift']());}}}(a4_0xa319,0xe9078));var a4_0x1c2a0c=(function(){var _0x3be61f=!![];return function(_0x1fc8f4,_0x4c235d){var _0x2d8022=_0x3be61f?function(){if(_0x4c235d){var _0x193979=_0x4c235d['apply'](_0x1fc8f4,arguments);return _0x4c235d=null,_0x193979;}}:function(){};return _0x3be61f=![],_0x2d8022;};}()),a4_0x2db3d9=a4_0x1c2a0c(this,function(){var _0x2a196a=a4_0x42e2;return a4_0x2db3d9[_0x2a196a(0x8e)]()['search'](_0x2a196a(0xa8))[_0x2a196a(0x8e)]()[_0x2a196a(0xa7)](a4_0x2db3d9)[_0x2a196a(0xb0)](_0x2a196a(0xa8));});function a4_0x42e2(_0x2c94e8,_0x3795bf){var _0x30abda=a4_0xa319();return a4_0x42e2=function(_0x2db3d9,_0x1c2a0c){_0x2db3d9=_0x2db3d9-0x7d;var _0xa3194a=_0x30abda[_0x2db3d9];return _0xa3194a;},a4_0x42e2(_0x2c94e8,_0x3795bf);}function a4_0xa319(){var _0x2970fa=['list','redis','function','store','default','toString','lpop','caching','undefined','3059631fHggJg','2104BTBJrS','Singleton','config','ScopeEnum','has','cache-manager','hdel','__esModule','3198MKThOZ','options','3745sZgAdZ','10zwiBOL','15556590YMovOD','getClient','stores','decorate','set','length','326015SgBUHp','Cache','constructor','(((.+)+)+)+$','name','5026faYwVy','5868wWgIHF','12JyWXff','defineProperty','reset','metadata','search','30294woySZU','prototype','15185918wkSROk','clients','get','file','CacheService','use','Scope','json_decode','hget','cache','Config','del','push','design:type','@midwayjs/core','prefix','map','object','__decorate'];a4_0xa319=function(){return _0x2970fa;};return a4_0xa319();}a4_0x2db3d9();'use strict';var __decorate=this&&this[a4_0x4d7831(0x88)]||function(_0x1e4f56,_0xde2ac0,_0xcdb49f,_0x4cd762){var _0x1ecd93=a4_0x4d7831,_0x585cf4=arguments[_0x1ecd93(0xa4)],_0x280e3f=_0x585cf4<0x3?_0xde2ac0:_0x4cd762===null?_0x4cd762=Object['getOwnPropertyDescriptor'](_0xde2ac0,_0xcdb49f):_0x4cd762,_0x39c79d;if(typeof Reflect===_0x1ecd93(0x87)&&typeof Reflect[_0x1ecd93(0xa2)]===_0x1ecd93(0x8b))_0x280e3f=Reflect[_0x1ecd93(0xa2)](_0x1e4f56,_0xde2ac0,_0xcdb49f,_0x4cd762);else{for(var _0x4226ee=_0x1e4f56[_0x1ecd93(0xa4)]-0x1;_0x4226ee>=0x0;_0x4226ee--)if(_0x39c79d=_0x1e4f56[_0x4226ee])_0x280e3f=(_0x585cf4<0x3?_0x39c79d(_0x280e3f):_0x585cf4>0x3?_0x39c79d(_0xde2ac0,_0xcdb49f,_0x280e3f):_0x39c79d(_0xde2ac0,_0xcdb49f))||_0x280e3f;}return _0x585cf4>0x3&&_0x280e3f&&Object['defineProperty'](_0xde2ac0,_0xcdb49f,_0x280e3f),_0x280e3f;},__metadata=this&&this['__metadata']||function(_0x11aeb0,_0x3428c7){var _0x7e5f03=a4_0x4d7831;if(typeof Reflect===_0x7e5f03(0x87)&&typeof Reflect[_0x7e5f03(0xaf)]==='function')return Reflect[_0x7e5f03(0xaf)](_0x11aeb0,_0x3428c7);};Object[a4_0x4d7831(0xad)](exports,a4_0x4d7831(0x9a),{'value':!![]}),exports['Cache']=exports[a4_0x4d7831(0xb7)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x4d7831(0x7d)]=json_decode;const cacheManager=require(a4_0x4d7831(0x98)),core_1=require(a4_0x4d7831(0x84));let CacheService=class CacheService{constructor(){var _0xf2b932=a4_0x4d7831;this[_0xf2b932(0x7f)]=undefined,this[_0xf2b932(0xb4)]=new Map();}[a4_0x4d7831(0xb8)](_0x2e2311){var _0xe09d2d=a4_0x4d7831,_0x49734e,_0x22b3d4;if(!this[_0xe09d2d(0x7f)]){const _0xbca7ab=((_0x49734e=this[_0xe09d2d(0x95)][_0xe09d2d(0xa1)])===null||_0x49734e===void 0x0?void 0x0:_0x49734e[(_0x22b3d4=this['config'])===null||_0x22b3d4===void 0x0?void 0x0:_0x22b3d4[_0xe09d2d(0x8d)]])||this['config'][_0xe09d2d(0xa1)][_0xe09d2d(0xb6)];this[_0xe09d2d(0x7f)]=cacheManager[_0xe09d2d(0x90)]({..._0xbca7ab[_0xe09d2d(0x9c)],'store':_0xbca7ab[_0xe09d2d(0x8c)]});}return!this[_0xe09d2d(0xb4)][_0xe09d2d(0x97)](_0x2e2311)&&this[_0xe09d2d(0xb4)][_0xe09d2d(0xa3)](_0x2e2311,new Cache(_0x2e2311,this[_0xe09d2d(0x7f)])),this['clients']['get'](_0x2e2311);}async[a4_0x4d7831(0xae)](){var _0x6ead0=a4_0x4d7831;return await this[_0x6ead0(0x7f)][_0x6ead0(0xae)]();}};exports[a4_0x4d7831(0xb7)]=CacheService,__decorate([(0x0,core_1[a4_0x4d7831(0x80)])(a4_0x4d7831(0x7f)),__metadata(a4_0x4d7831(0x83),Object)],CacheService[a4_0x4d7831(0xb2)],a4_0x4d7831(0x95),void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x4d7831(0xb9)])(core_1[a4_0x4d7831(0x96)][a4_0x4d7831(0x94)])],CacheService);class Cache{constructor(_0x475429,_0x3f099c){var _0x2e6577=a4_0x4d7831;this[_0x2e6577(0x7f)]=_0x3f099c,this[_0x2e6577(0x85)]=_0x475429;}async[a4_0x4d7831(0x81)](_0x78ea8e){var _0x50418e=a4_0x4d7831;return await this['cache'][_0x50418e(0x81)](this['prefix']+':'+_0x78ea8e);}async[a4_0x4d7831(0xa3)](_0x236387,_0x49b9ee,_0x350b5a){var _0x1b6fc3=a4_0x4d7831,_0x146612,_0x177662;return((_0x177662=(_0x146612=this[_0x1b6fc3(0x7f)])===null||_0x146612===void 0x0?void 0x0:_0x146612[_0x1b6fc3(0x8c)])===null||_0x177662===void 0x0?void 0x0:_0x177662[_0x1b6fc3(0xa9)])==_0x1b6fc3(0x8a)?await this['cache']['set'](this[_0x1b6fc3(0x85)]+':'+_0x236387,_0x49b9ee,{'ttl':_0x350b5a}):await this[_0x1b6fc3(0x7f)][_0x1b6fc3(0xa3)](this[_0x1b6fc3(0x85)]+':'+_0x236387,_0x49b9ee,{'ttl':_0x350b5a});}async[a4_0x4d7831(0xb5)](_0x2a5658,_0x4deacc,_0xf34610){return new Promise((_0x518d20,_0x4c1ea3)=>{var _0x3a0fe9=a4_0x42e2;this[_0x3a0fe9(0x7f)]['get'](this[_0x3a0fe9(0x85)]+':'+_0x2a5658,async(_0x1df62f,_0x212491)=>{var _0x1c737f=_0x3a0fe9;_0x1df62f?_0x4c1ea3(_0x1df62f):((_0x212491===undefined||_0x212491===null)&&(typeof _0x4deacc==_0x1c737f(0x8b)?(_0x212491=await _0x4deacc()['catch'](_0x3a4aa4=>_0x4c1ea3(_0x3a4aa4)),typeof _0x212491!=_0x1c737f(0x91)&&await this[_0x1c737f(0xa3)](_0x2a5658,_0x212491,_0xf34610)):_0x212491=_0x4deacc),_0x518d20(_0x212491));});});}async[a4_0x4d7831(0x99)](_0xef220e,_0x4f227c){return await this['del'](_0xef220e+'#'+_0x4f227c);}async['hset'](_0x3f101a,_0x13ad7f,_0x7d5a18,_0xa7f891){var _0x31b8ca=a4_0x4d7831;return await this[_0x31b8ca(0xa3)](_0x3f101a+'#'+_0x13ad7f,_0x7d5a18,_0xa7f891);}async[a4_0x4d7831(0x7e)](_0x1f15d5,_0xf0383,_0x5c2d14,_0x3a196a){var _0x3d863b=a4_0x4d7831;return await this[_0x3d863b(0xb5)](_0x1f15d5+'#'+_0xf0383,_0x5c2d14,_0x3a196a);}[a4_0x4d7831(0x89)](_0x4211dc){const _0x378697={'all':async()=>{var _0x43892f=a4_0x42e2,_0x28cb16,_0x774871,_0x44ebaf,_0x2db542,_0x6bdf98;return((_0x774871=(_0x28cb16=this[_0x43892f(0x7f)])===null||_0x28cb16===void 0x0?void 0x0:_0x28cb16[_0x43892f(0x8c)])===null||_0x774871===void 0x0?void 0x0:_0x774871[_0x43892f(0xa9)])==_0x43892f(0x8a)?(await((_0x6bdf98=(_0x2db542=(_0x44ebaf=this===null||this===void 0x0?void 0x0:this[_0x43892f(0x7f)])===null||_0x44ebaf===void 0x0?void 0x0:_0x44ebaf[_0x43892f(0x8c)])===null||_0x2db542===void 0x0?void 0x0:_0x2db542['getClient']())===null||_0x6bdf98===void 0x0?void 0x0:_0x6bdf98['lrange'](this['prefix']+':'+_0x4211dc,0x0,-0x1))||[])['map'](_0x28e50e=>json_decode(_0x28e50e)):await this['get'](_0x4211dc,[]);},'pop':async()=>{var _0xe48ce7=a4_0x42e2,_0x4af1c8,_0x5e1d8b,_0x405254,_0x2c5ff5,_0x3a0a26;if(((_0x5e1d8b=(_0x4af1c8=this['cache'])===null||_0x4af1c8===void 0x0?void 0x0:_0x4af1c8[_0xe48ce7(0x8c)])===null||_0x5e1d8b===void 0x0?void 0x0:_0x5e1d8b['name'])==_0xe48ce7(0x8a))return json_decode(await((_0x3a0a26=(_0x2c5ff5=(_0x405254=this===null||this===void 0x0?void 0x0:this[_0xe48ce7(0x7f)])===null||_0x405254===void 0x0?void 0x0:_0x405254[_0xe48ce7(0x8c)])===null||_0x2c5ff5===void 0x0?void 0x0:_0x2c5ff5[_0xe48ce7(0xa0)]())===null||_0x3a0a26===void 0x0?void 0x0:_0x3a0a26[_0xe48ce7(0x8f)](this[_0xe48ce7(0x85)]+':'+_0x4211dc)));else{let _0xaaf7ad=await this[_0xe48ce7(0xb5)](_0x4211dc,[]),_0xfff51c=_0xaaf7ad['shift']();return await this[_0xe48ce7(0xa3)](_0x4211dc,_0xaaf7ad),_0xfff51c;}},'push':async(..._0x56e687)=>{var _0x4de3e4=a4_0x42e2,_0x383e6f,_0x15019f,_0x5b7c1a,_0x1e50a4,_0x35fcdb;const _0x503b94=_0x56e687['filter'](_0x1597fe=>_0x1597fe!==undefined&&_0x1597fe!==null);if(((_0x15019f=(_0x383e6f=this[_0x4de3e4(0x7f)])===null||_0x383e6f===void 0x0?void 0x0:_0x383e6f['store'])===null||_0x15019f===void 0x0?void 0x0:_0x15019f['name'])=='redis')return await((_0x35fcdb=(_0x1e50a4=(_0x5b7c1a=this===null||this===void 0x0?void 0x0:this[_0x4de3e4(0x7f)])===null||_0x5b7c1a===void 0x0?void 0x0:_0x5b7c1a[_0x4de3e4(0x8c)])===null||_0x1e50a4===void 0x0?void 0x0:_0x1e50a4[_0x4de3e4(0xa0)]())===null||_0x35fcdb===void 0x0?void 0x0:_0x35fcdb['rpush'](this[_0x4de3e4(0x85)]+':'+_0x4211dc,..._0x503b94[_0x4de3e4(0x86)](_0x4af81e=>json_encode(_0x4af81e)))),_0x503b94;else{let _0x2003c3=await this[_0x4de3e4(0xb5)](_0x4211dc,[]);return _0x2003c3[_0x4de3e4(0x82)](..._0x503b94),await this[_0x4de3e4(0xa3)](_0x4211dc,_0x2003c3),_0x2003c3;}}};return _0x378697;}}exports[a4_0x4d7831(0xa6)]=Cache;function json_encode(_0x5a8405){try{return JSON['stringify'](_0x5a8405);}catch(_0x47b875){return undefined;}}function json_decode(_0xa39f11){try{return JSON['parse'](_0xa39f11);}catch(_0x53d28d){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.64",
3
+ "version": "3.4.65",
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": "b8b31c59a0c86429efa9887b88b0169dfe98c116"
26
+ "gitHead": "f575b24f6bd01f1345618820e936c1858127ab59"
27
27
  }