@anncic-api/cache 3.4.63 → 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_0x458fa0=a0_0x5682;function a0_0x2fe7(){const _0x1cd2b4=['memory','env','1545980htfjlQ','name','file','cache-manager-fs-hash','defineProperty','558630AywWVR','1458348cBeuli','5315810sCwLLG','appDir','search','3cEtqwt','1182203kVtSOS','__esModule','9LLItsT','constructor','851375YGsVJH','1Bxdkno','apply','default','4312vSyrBG','/runtime/.cache','3626ejbMGV','cache-manager-ioredis','(((.+)+)+)+$','toString','127.0.0.1'];a0_0x2fe7=function(){return _0x1cd2b4;};return a0_0x2fe7();}(function(_0x1ac4ef,_0x2eb42c){const _0x10aaf1=a0_0x5682,_0x46b659=_0x1ac4ef();while(!![]){try{const _0x2880cf=parseInt(_0x10aaf1(0x6a))/0x1*(parseInt(_0x10aaf1(0x7b))/0x2)+parseInt(_0x10aaf1(0x80))/0x3*(-parseInt(_0x10aaf1(0x76))/0x4)+-parseInt(_0x10aaf1(0x69))/0x5+parseInt(_0x10aaf1(0x7c))/0x6+parseInt(_0x10aaf1(0x6f))/0x7*(-parseInt(_0x10aaf1(0x6d))/0x8)+-parseInt(_0x10aaf1(0x67))/0x9*(-parseInt(_0x10aaf1(0x7d))/0xa)+parseInt(_0x10aaf1(0x65))/0xb;if(_0x2880cf===_0x2eb42c)break;else _0x46b659['push'](_0x46b659['shift']());}catch(_0xaa5394){_0x46b659['push'](_0x46b659['shift']());}}}(a0_0x2fe7,0x4f74f));function a0_0x5682(_0x2f5318,_0x5d5a74){const _0x229519=a0_0x2fe7();return a0_0x5682=function(_0x18d049,_0x4737da){_0x18d049=_0x18d049-0x65;let _0x2fe7c2=_0x229519[_0x18d049];return _0x2fe7c2;},a0_0x5682(_0x2f5318,_0x5d5a74);}const a0_0x4737da=(function(){let _0x46ce81=!![];return function(_0x4058ec,_0x21d0f9){const _0x211b0a=_0x46ce81?function(){const _0x5b607d=a0_0x5682;if(_0x21d0f9){const _0x4e61be=_0x21d0f9[_0x5b607d(0x6b)](_0x4058ec,arguments);return _0x21d0f9=null,_0x4e61be;}}:function(){};return _0x46ce81=![],_0x211b0a;};}()),a0_0x18d049=a0_0x4737da(this,function(){const _0x34f85b=a0_0x5682;return a0_0x18d049['toString']()['search']('(((.+)+)+)+$')[_0x34f85b(0x72)]()[_0x34f85b(0x68)](a0_0x18d049)[_0x34f85b(0x7f)](_0x34f85b(0x71));});a0_0x18d049();'use strict';Object[a0_0x458fa0(0x7a)](exports,a0_0x458fa0(0x66),{'value':!![]});const fsStore=require(a0_0x458fa0(0x79)),redisStore=require(a0_0x458fa0(0x70));exports[a0_0x458fa0(0x6c)]=_0x5b26a4=>{const _0x198d03=a0_0x458fa0;return{'cache':{'default':_0x198d03(0x78),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x5b26a4[_0x198d03(0x7e)]+_0x198d03(0x6e)+((_0x5b26a4===null||_0x5b26a4===void 0x0?void 0x0:_0x5b26a4[_0x198d03(0x75)])?'-'+_0x5b26a4[_0x198d03(0x75)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x198d03(0x73),'password':'','keyPrefix':_0x5b26a4[_0x198d03(0x77)]+':'+((_0x5b26a4===null||_0x5b26a4===void 0x0?void 0x0:_0x5b26a4[_0x198d03(0x75)])?_0x5b26a4[_0x198d03(0x75)]+':':'')}},'memory':{'store':_0x198d03(0x74),'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_0x210270=a1_0x4395;(function(_0x4e5e88,_0x33831d){var _0x5a7ab1=a1_0x4395,_0x29578b=_0x4e5e88();while(!![]){try{var _0x227a4c=parseInt(_0x5a7ab1(0x114))/0x1*(parseInt(_0x5a7ab1(0x110))/0x2)+parseInt(_0x5a7ab1(0x10b))/0x3*(-parseInt(_0x5a7ab1(0x10f))/0x4)+parseInt(_0x5a7ab1(0x11c))/0x5*(-parseInt(_0x5a7ab1(0x118))/0x6)+-parseInt(_0x5a7ab1(0x11b))/0x7+parseInt(_0x5a7ab1(0x10a))/0x8+-parseInt(_0x5a7ab1(0x115))/0x9*(-parseInt(_0x5a7ab1(0x106))/0xa)+-parseInt(_0x5a7ab1(0x11f))/0xb*(-parseInt(_0x5a7ab1(0x117))/0xc);if(_0x227a4c===_0x33831d)break;else _0x29578b['push'](_0x29578b['shift']());}catch(_0x53b747){_0x29578b['push'](_0x29578b['shift']());}}}(a1_0x1777,0xd1074));var a1_0x27e7c9=(function(){var _0x19a7ef=!![];return function(_0x5ccc88,_0x592e2f){var _0x33dec6=_0x19a7ef?function(){var _0x311fcf=a1_0x4395;if(_0x592e2f){var _0x3bbef6=_0x592e2f[_0x311fcf(0x108)](_0x5ccc88,arguments);return _0x592e2f=null,_0x3bbef6;}}:function(){};return _0x19a7ef=![],_0x33dec6;};}()),a1_0x265f34=a1_0x27e7c9(this,function(){var _0x232d59=a1_0x4395;return a1_0x265f34['toString']()[_0x232d59(0x112)](_0x232d59(0x119))[_0x232d59(0x116)]()[_0x232d59(0x11d)](a1_0x265f34)[_0x232d59(0x112)]('(((.+)+)+)+$');});a1_0x265f34();function a1_0x1777(){var _0x1d7a26=['60wiuLUQ','length','apply','defineProperty','1280256FqXfUO','3Mejeij','anncic-api:cache','CustomConfiguration','__esModule','2379044sYNFHS','2264ogoHKM','function','search','__decorate','9EVSfRW','195390uVHAUg','toString','8373288hdJTSN','1046022hpLEkj','(((.+)+)+)+$','object','10264086eqoIhd','5vlspry','constructor','@midwayjs/core','44miOxxK','decorate'];a1_0x1777=function(){return _0x1d7a26;};return a1_0x1777();}'use strict';var __decorate=this&&this[a1_0x210270(0x113)]||function(_0x4eba28,_0x405736,_0x2c9643,_0x198122){var _0x3cce5c=a1_0x210270,_0x4b311e=arguments[_0x3cce5c(0x107)],_0x41a49d=_0x4b311e<0x3?_0x405736:_0x198122===null?_0x198122=Object['getOwnPropertyDescriptor'](_0x405736,_0x2c9643):_0x198122,_0x3d786d;if(typeof Reflect===_0x3cce5c(0x11a)&&typeof Reflect[_0x3cce5c(0x105)]===_0x3cce5c(0x111))_0x41a49d=Reflect[_0x3cce5c(0x105)](_0x4eba28,_0x405736,_0x2c9643,_0x198122);else{for(var _0x1e1e58=_0x4eba28[_0x3cce5c(0x107)]-0x1;_0x1e1e58>=0x0;_0x1e1e58--)if(_0x3d786d=_0x4eba28[_0x1e1e58])_0x41a49d=(_0x4b311e<0x3?_0x3d786d(_0x41a49d):_0x4b311e>0x3?_0x3d786d(_0x405736,_0x2c9643,_0x41a49d):_0x3d786d(_0x405736,_0x2c9643))||_0x41a49d;}return _0x4b311e>0x3&&_0x41a49d&&Object['defineProperty'](_0x405736,_0x2c9643,_0x41a49d),_0x41a49d;};Object[a1_0x210270(0x109)](exports,a1_0x210270(0x10e),{'value':!![]}),exports[a1_0x210270(0x10d)]=void 0x0;function a1_0x4395(_0x13230b,_0x159b8f){var _0x83a7ae=a1_0x1777();return a1_0x4395=function(_0x265f34,_0x27e7c9){_0x265f34=_0x265f34-0x105;var _0x177705=_0x83a7ae[_0x265f34];return _0x177705;},a1_0x4395(_0x13230b,_0x159b8f);}const core_1=require(a1_0x210270(0x11e)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports[a1_0x210270(0x10d)]=CustomConfiguration,exports[a1_0x210270(0x10d)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x210270(0x10c),'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_0x4951be=a2_0xbdb3;function a2_0xbdb3(_0x404721,_0x2542f4){const _0x32772f=a2_0x39ac();return a2_0xbdb3=function(_0x3b0259,_0x3fb7ac){_0x3b0259=_0x3b0259-0xb2;let _0x39acd6=_0x32772f[_0x3b0259];return _0x39acd6;},a2_0xbdb3(_0x404721,_0x2542f4);}(function(_0x178309,_0x44eed4){const _0x56591f=a2_0xbdb3,_0x4ad580=_0x178309();while(!![]){try{const _0x57aabd=parseInt(_0x56591f(0xca))/0x1+parseInt(_0x56591f(0xc1))/0x2+parseInt(_0x56591f(0xcf))/0x3*(parseInt(_0x56591f(0xbc))/0x4)+-parseInt(_0x56591f(0xcb))/0x5*(-parseInt(_0x56591f(0xb3))/0x6)+parseInt(_0x56591f(0xc2))/0x7+parseInt(_0x56591f(0xbf))/0x8+-parseInt(_0x56591f(0xc5))/0x9*(parseInt(_0x56591f(0xc0))/0xa);if(_0x57aabd===_0x44eed4)break;else _0x4ad580['push'](_0x4ad580['shift']());}catch(_0x5011d5){_0x4ad580['push'](_0x4ad580['shift']());}}}(a2_0x39ac,0x7f159));function a2_0x39ac(){const _0x397705=['use','70344bwuVrL','../service/CacheService','apply','get','value','366956vROGOK','15855GevMuT','stringify','@midwayjs/core','toString','156435EIpmbm','(((.+)+)+)+$','REQUEST_OBJ_CTX_KEY','1332Uoeloc','MD5','parse','crypto-js','app','__esModule','constructor','Cache','CacheService','28bAmqwu','search','set','3256200wrfDYm','2240UrAwmw','347558AxeUAv','1782088UXDlRv','Method::Decorator'];a2_0x39ac=function(){return _0x397705;};return a2_0x39ac();}const a2_0x3fb7ac=(function(){let _0x451a44=!![];return function(_0xfd445d,_0x5b3af4){const _0x5002ea=_0x451a44?function(){const _0x21c504=a2_0xbdb3;if(_0x5b3af4){const _0x3cc974=_0x5b3af4[_0x21c504(0xc7)](_0xfd445d,arguments);return _0x5b3af4=null,_0x3cc974;}}:function(){};return _0x451a44=![],_0x5002ea;};}()),a2_0x3b0259=a2_0x3fb7ac(this,function(){const _0x1be24e=a2_0xbdb3;return a2_0x3b0259[_0x1be24e(0xce)]()['search'](_0x1be24e(0xd0))[_0x1be24e(0xce)]()[_0x1be24e(0xb9)](a2_0x3b0259)[_0x1be24e(0xbd)](_0x1be24e(0xd0));});a2_0x3b0259();'use strict';Object['defineProperty'](exports,a2_0x4951be(0xb8),{'value':!![]}),exports[a2_0x4951be(0xba)]=Cache;const crypto_js_1=require(a2_0x4951be(0xb6)),CacheService_1=require(a2_0x4951be(0xc6)),core_1=require(a2_0x4951be(0xcd));function json_encode(_0x32a9a3){const _0x1cdb6e=a2_0x4951be;try{return JSON[_0x1cdb6e(0xcc)](_0x32a9a3);}catch(_0x1c0717){return undefined;}}function Cache(_0x214247,_0x13e7c0){return(_0x179b4e,_0x12b635,_0xb597a8)=>{const _0x5abe5b=a2_0xbdb3,_0x492ed3=_0xb597a8[_0x5abe5b(0xc9)];return _0xb597a8[_0x5abe5b(0xc9)]=async function(..._0x359768){const _0x3aca4d=_0x5abe5b;_0x214247=(_0x214247?''+_0x214247:''+(_0x12b635||''))+'.'+(0x0,crypto_js_1[_0x3aca4d(0xb4)])(json_encode(_0x359768))[_0x3aca4d(0xce)]();let _0x4b5b74=await this[core_1[_0x3aca4d(0xb2)]][_0x3aca4d(0xb7)]['getApplicationContext']()['getAsync'](CacheService_1[_0x3aca4d(0xbb)]),_0x4df6ac=await _0x4b5b74[_0x3aca4d(0xc4)](_0x3aca4d(0xc3))[_0x3aca4d(0xc8)](_0x214247);if(_0x4df6ac)return JSON[_0x3aca4d(0xb5)](_0x4df6ac);else _0x4df6ac=await _0x492ed3[_0x3aca4d(0xc7)](this,[..._0x359768]),await _0x4b5b74['use'](_0x3aca4d(0xc3))[_0x3aca4d(0xbe)](_0x214247,JSON[_0x3aca4d(0xcc)](_0x4df6ac),_0x13e7c0);return _0x4df6ac;},_0xb597a8;};}
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_0x32691c=a3_0x25a6;function a3_0x25a6(_0x742aa4,_0x472114){var _0x42cf67=a3_0x8afb();return a3_0x25a6=function(_0xfe3d04,_0x5225d3){_0xfe3d04=_0xfe3d04-0x13a;var _0x8afbef=_0x42cf67[_0xfe3d04];return _0x8afbef;},a3_0x25a6(_0x742aa4,_0x472114);}(function(_0x34c1fc,_0x4cfa73){var _0x550870=a3_0x25a6,_0x3bccf1=_0x34c1fc();while(!![]){try{var _0x25939c=parseInt(_0x550870(0x14f))/0x1+-parseInt(_0x550870(0x149))/0x2*(-parseInt(_0x550870(0x148))/0x3)+parseInt(_0x550870(0x147))/0x4*(-parseInt(_0x550870(0x14c))/0x5)+-parseInt(_0x550870(0x13e))/0x6+parseInt(_0x550870(0x13c))/0x7*(-parseInt(_0x550870(0x14d))/0x8)+-parseInt(_0x550870(0x13b))/0x9+-parseInt(_0x550870(0x14e))/0xa*(-parseInt(_0x550870(0x142))/0xb);if(_0x25939c===_0x4cfa73)break;else _0x3bccf1['push'](_0x3bccf1['shift']());}catch(_0x41192e){_0x3bccf1['push'](_0x3bccf1['shift']());}}}(a3_0x8afb,0xb3f66));var a3_0x5225d3=(function(){var _0x5d4ae6=!![];return function(_0x537db9,_0x572fa5){var _0x27d63d=_0x5d4ae6?function(){if(_0x572fa5){var _0x147aee=_0x572fa5['apply'](_0x537db9,arguments);return _0x572fa5=null,_0x147aee;}}:function(){};return _0x5d4ae6=![],_0x27d63d;};}()),a3_0xfe3d04=a3_0x5225d3(this,function(){var _0x14b884=a3_0x25a6;return a3_0xfe3d04['toString']()[_0x14b884(0x151)](_0x14b884(0x146))[_0x14b884(0x141)]()[_0x14b884(0x140)](a3_0xfe3d04)[_0x14b884(0x151)]('(((.+)+)+)+$');});a3_0xfe3d04();'use strict';Object['defineProperty'](exports,a3_0x32691c(0x13a),{'value':!![]}),exports['CacheService']=exports['Cache']=exports[a3_0x32691c(0x143)]=void 0x0;var configuration_1=require(a3_0x32691c(0x14b));Object['defineProperty'](exports,a3_0x32691c(0x143),{'enumerable':!![],'get':function(){var _0x57199a=a3_0x32691c;return configuration_1[_0x57199a(0x14a)];}});function a3_0x8afb(){var _0x5e250f=['Configuration','./decorator/Cache','./service/CacheService','(((.+)+)+)+$','4Drbfnw','3476883rsmNXf','2hehAMT','CustomConfiguration','./configuration','5882385aEhngV','96oxqIXU','2176980UnivSU','983866ZiWXwg','Cache','search','__esModule','1471554OQzDZO','208516NcloLd','CacheService','8699076ovziLs','defineProperty','constructor','toString','88qkgzzH'];a3_0x8afb=function(){return _0x5e250f;};return a3_0x8afb();}var Cache_1=require(a3_0x32691c(0x144));Object[a3_0x32691c(0x13f)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x192038=a3_0x32691c;return Cache_1[_0x192038(0x150)];}});var CacheService_1=require(a3_0x32691c(0x145));Object['defineProperty'](exports,a3_0x32691c(0x13d),{'enumerable':!![],'get':function(){var _0x3db563=a3_0x32691c;return CacheService_1[_0x3db563(0x13d)];}});
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_0x4f0cb7=a4_0x3973;(function(_0x1fd9b0,_0x54b27b){var _0x1ad409=a4_0x3973,_0x2021e8=_0x1fd9b0();while(!![]){try{var _0x584582=parseInt(_0x1ad409(0xa3))/0x1+-parseInt(_0x1ad409(0xa2))/0x2*(parseInt(_0x1ad409(0xcc))/0x3)+parseInt(_0x1ad409(0xc9))/0x4+parseInt(_0x1ad409(0xd9))/0x5*(-parseInt(_0x1ad409(0xa9))/0x6)+parseInt(_0x1ad409(0x9e))/0x7*(-parseInt(_0x1ad409(0xbc))/0x8)+-parseInt(_0x1ad409(0xb7))/0x9+parseInt(_0x1ad409(0xd8))/0xa*(parseInt(_0x1ad409(0xad))/0xb);if(_0x584582===_0x54b27b)break;else _0x2021e8['push'](_0x2021e8['shift']());}catch(_0x593bec){_0x2021e8['push'](_0x2021e8['shift']());}}}(a4_0x7991,0x7d6b4));var a4_0x1a4fbb=(function(){var _0x20c8ab=!![];return function(_0x33befb,_0xc9cc08){var _0x11015d=_0x20c8ab?function(){var _0x39cc5=a4_0x3973;if(_0xc9cc08){var _0x14287c=_0xc9cc08[_0x39cc5(0xae)](_0x33befb,arguments);return _0xc9cc08=null,_0x14287c;}}:function(){};return _0x20c8ab=![],_0x11015d;};}()),a4_0x1f2a06=a4_0x1a4fbb(this,function(){var _0x1d3776=a4_0x3973;return a4_0x1f2a06[_0x1d3776(0xaf)]()['search'](_0x1d3776(0xd2))[_0x1d3776(0xaf)]()['constructor'](a4_0x1f2a06)[_0x1d3776(0xbe)](_0x1d3776(0xd2));});a4_0x1f2a06();'use strict';var __decorate=this&&this[a4_0x4f0cb7(0xa0)]||function(_0x159c0a,_0x4f7a81,_0x1e9b64,_0x7d99ec){var _0x228d3f=a4_0x4f0cb7,_0x778c27=arguments[_0x228d3f(0xb6)],_0x26c214=_0x778c27<0x3?_0x4f7a81:_0x7d99ec===null?_0x7d99ec=Object['getOwnPropertyDescriptor'](_0x4f7a81,_0x1e9b64):_0x7d99ec,_0x62513d;if(typeof Reflect===_0x228d3f(0xbb)&&typeof Reflect['decorate']===_0x228d3f(0xc5))_0x26c214=Reflect['decorate'](_0x159c0a,_0x4f7a81,_0x1e9b64,_0x7d99ec);else{for(var _0x3fce3a=_0x159c0a[_0x228d3f(0xb6)]-0x1;_0x3fce3a>=0x0;_0x3fce3a--)if(_0x62513d=_0x159c0a[_0x3fce3a])_0x26c214=(_0x778c27<0x3?_0x62513d(_0x26c214):_0x778c27>0x3?_0x62513d(_0x4f7a81,_0x1e9b64,_0x26c214):_0x62513d(_0x4f7a81,_0x1e9b64))||_0x26c214;}return _0x778c27>0x3&&_0x26c214&&Object[_0x228d3f(0xd0)](_0x4f7a81,_0x1e9b64,_0x26c214),_0x26c214;},__metadata=this&&this[a4_0x4f0cb7(0xb8)]||function(_0x3385e3,_0x3910b1){var _0xb95e5f=a4_0x4f0cb7;if(typeof Reflect==='object'&&typeof Reflect[_0xb95e5f(0xcd)]===_0xb95e5f(0xc5))return Reflect[_0xb95e5f(0xcd)](_0x3385e3,_0x3910b1);};function a4_0x3973(_0x52d89e,_0x540350){var _0x3999df=a4_0x7991();return a4_0x3973=function(_0x1f2a06,_0x1a4fbb){_0x1f2a06=_0x1f2a06-0x9e;var _0x79910d=_0x3999df[_0x1f2a06];return _0x79910d;},a4_0x3973(_0x52d89e,_0x540350);}Object[a4_0x4f0cb7(0xd0)](exports,a4_0x4f0cb7(0xc0),{'value':!![]}),exports[a4_0x4f0cb7(0xac)]=exports[a4_0x4f0cb7(0xd3)]=void 0x0,exports[a4_0x4f0cb7(0xc2)]=json_encode,exports[a4_0x4f0cb7(0xb1)]=json_decode;function a4_0x7991(){var _0x222dd4=['design:type','stringify','object','1152120qHhePE','@midwayjs/core','search','caching','__esModule','prefix','json_encode','prototype','ScopeEnum','function','cache','lrange','filter','1389068YHlyeT','options','clients','3CswndU','metadata','cache-manager','use','defineProperty','name','(((.+)+)+)+$','CacheService','set','rpush','store','stores','190AdzWke','15lVAShU','catch','redis','35ExnMGy','parse','__decorate','default','2009860sxqNEX','46752ZCAlKd','getClient','file','get','Provide','config','1483878zieyuP','lpop','Scope','Cache','1836428LoruRj','apply','toString','reset','json_decode','hset','map','hdel','has','length','5268339qvFiTp','__metadata'];a4_0x7991=function(){return _0x222dd4;};return a4_0x7991();}const cacheManager=require(a4_0x4f0cb7(0xce)),core_1=require(a4_0x4f0cb7(0xbd));let CacheService=class CacheService{constructor(){var _0x549b3f=a4_0x4f0cb7;this['cache']=undefined,this[_0x549b3f(0xcb)]=new Map();}[a4_0x4f0cb7(0xcf)](_0xd888f3){var _0x26bb2d=a4_0x4f0cb7,_0x2010c7,_0x3dc31f;if(!this[_0x26bb2d(0xc6)]){const _0x453129=((_0x2010c7=this[_0x26bb2d(0xa8)]['stores'])===null||_0x2010c7===void 0x0?void 0x0:_0x2010c7[(_0x3dc31f=this[_0x26bb2d(0xa8)])===null||_0x3dc31f===void 0x0?void 0x0:_0x3dc31f[_0x26bb2d(0xa1)]])||this[_0x26bb2d(0xa8)][_0x26bb2d(0xd7)][_0x26bb2d(0xa5)];this[_0x26bb2d(0xc6)]=cacheManager[_0x26bb2d(0xbf)]({..._0x453129[_0x26bb2d(0xca)],'store':_0x453129['store']});}return!this[_0x26bb2d(0xcb)][_0x26bb2d(0xb5)](_0xd888f3)&&this[_0x26bb2d(0xcb)][_0x26bb2d(0xd4)](_0xd888f3,new Cache(_0xd888f3,this[_0x26bb2d(0xc6)])),this[_0x26bb2d(0xcb)][_0x26bb2d(0xa6)](_0xd888f3);}async[a4_0x4f0cb7(0xb0)](){var _0x4d126e=a4_0x4f0cb7;return await this['cache'][_0x4d126e(0xb0)]();}};exports[a4_0x4f0cb7(0xd3)]=CacheService,__decorate([(0x0,core_1['Config'])(a4_0x4f0cb7(0xc6)),__metadata(a4_0x4f0cb7(0xb9),Object)],CacheService[a4_0x4f0cb7(0xc3)],a4_0x4f0cb7(0xa8),void 0x0),exports[a4_0x4f0cb7(0xd3)]=CacheService=__decorate([(0x0,core_1[a4_0x4f0cb7(0xa7)])(),(0x0,core_1[a4_0x4f0cb7(0xab)])(core_1[a4_0x4f0cb7(0xc4)]['Singleton'])],CacheService);class Cache{constructor(_0x3fe025,_0x192aac){var _0x276785=a4_0x4f0cb7;this[_0x276785(0xc6)]=_0x192aac,this['prefix']=_0x3fe025;}async['del'](_0x37cc54){var _0x5a3301=a4_0x4f0cb7;return await this[_0x5a3301(0xc6)]['del'](this[_0x5a3301(0xc1)]+':'+_0x37cc54);}async[a4_0x4f0cb7(0xd4)](_0x5232cc,_0x31e2e1,_0x18dee9){var _0x5015e5=a4_0x4f0cb7,_0x34056d,_0x3828de;return((_0x3828de=(_0x34056d=this[_0x5015e5(0xc6)])===null||_0x34056d===void 0x0?void 0x0:_0x34056d[_0x5015e5(0xd6)])===null||_0x3828de===void 0x0?void 0x0:_0x3828de[_0x5015e5(0xd1)])==_0x5015e5(0xdb)?await this[_0x5015e5(0xc6)][_0x5015e5(0xd4)](this[_0x5015e5(0xc1)]+':'+_0x5232cc,_0x31e2e1,{'ttl':_0x18dee9}):await this[_0x5015e5(0xc6)]['set'](this[_0x5015e5(0xc1)]+':'+_0x5232cc,_0x31e2e1,{'ttl':_0x18dee9});}async['get'](_0x439f0b,_0x4e5465,_0x1bfa29){return new Promise((_0x7dbff1,_0x46bbb8)=>{var _0x33bf33=a4_0x3973;this[_0x33bf33(0xc6)][_0x33bf33(0xa6)](this[_0x33bf33(0xc1)]+':'+_0x439f0b,async(_0x3f631b,_0x317fd1)=>{var _0x4f12d2=_0x33bf33;_0x3f631b?_0x46bbb8(_0x3f631b):((_0x317fd1===undefined||_0x317fd1===null)&&(typeof _0x4e5465==_0x4f12d2(0xc5)?(_0x317fd1=await _0x4e5465()[_0x4f12d2(0xda)](_0x4668f4=>_0x46bbb8(_0x4668f4)),typeof _0x317fd1!='undefined'&&await this[_0x4f12d2(0xd4)](_0x439f0b,_0x317fd1,_0x1bfa29)):_0x317fd1=_0x4e5465),_0x7dbff1(_0x317fd1));});});}async[a4_0x4f0cb7(0xb4)](_0x382570,_0x44ffd0){return await this['del'](_0x382570+'#'+_0x44ffd0);}async[a4_0x4f0cb7(0xb2)](_0x1e0a7a,_0x358e1c,_0x4cf608,_0x27a897){var _0x1b224=a4_0x4f0cb7;return await this[_0x1b224(0xd4)](_0x1e0a7a+'#'+_0x358e1c,_0x4cf608,_0x27a897);}async['hget'](_0x51ae08,_0x5cc74c,_0x48a453,_0x5eca07){var _0x2cc5e5=a4_0x4f0cb7;return await this[_0x2cc5e5(0xa6)](_0x51ae08+'#'+_0x5cc74c,_0x48a453,_0x5eca07);}['list'](_0x569f38){const _0x4ec825={'all':async()=>{var _0xf808f0=a4_0x3973,_0x3dc5d9,_0x4c74be,_0x53b2fa,_0xe6738f,_0x29b940;return((_0x4c74be=(_0x3dc5d9=this[_0xf808f0(0xc6)])===null||_0x3dc5d9===void 0x0?void 0x0:_0x3dc5d9['store'])===null||_0x4c74be===void 0x0?void 0x0:_0x4c74be[_0xf808f0(0xd1)])==_0xf808f0(0xdb)?(await((_0x29b940=(_0xe6738f=(_0x53b2fa=this===null||this===void 0x0?void 0x0:this[_0xf808f0(0xc6)])===null||_0x53b2fa===void 0x0?void 0x0:_0x53b2fa['store'])===null||_0xe6738f===void 0x0?void 0x0:_0xe6738f['getClient']())===null||_0x29b940===void 0x0?void 0x0:_0x29b940[_0xf808f0(0xc7)](this[_0xf808f0(0xc1)]+':'+_0x569f38,0x0,-0x1))||[])[_0xf808f0(0xb3)](_0x105e7a=>json_decode(_0x105e7a)):await this[_0xf808f0(0xa6)](_0x569f38,[]);},'pop':async()=>{var _0x19c10c=a4_0x3973,_0x20678d,_0x5491a0,_0x36db84,_0x559619,_0x158fe8;if(((_0x5491a0=(_0x20678d=this[_0x19c10c(0xc6)])===null||_0x20678d===void 0x0?void 0x0:_0x20678d[_0x19c10c(0xd6)])===null||_0x5491a0===void 0x0?void 0x0:_0x5491a0['name'])=='redis')return json_decode(await((_0x158fe8=(_0x559619=(_0x36db84=this===null||this===void 0x0?void 0x0:this[_0x19c10c(0xc6)])===null||_0x36db84===void 0x0?void 0x0:_0x36db84[_0x19c10c(0xd6)])===null||_0x559619===void 0x0?void 0x0:_0x559619['getClient']())===null||_0x158fe8===void 0x0?void 0x0:_0x158fe8[_0x19c10c(0xaa)](this[_0x19c10c(0xc1)]+':'+_0x569f38)));else{let _0x24ee4c=await this[_0x19c10c(0xa6)](_0x569f38,[]),_0x199c8a=_0x24ee4c['shift']();return await this[_0x19c10c(0xd4)](_0x569f38,_0x24ee4c),_0x199c8a;}},'push':async(..._0x33309b)=>{var _0x4a1690=a4_0x3973,_0x18588e,_0x1c8f9a,_0x372341,_0x34f0b0,_0x427253;const _0x353703=_0x33309b[_0x4a1690(0xc8)](_0x203504=>_0x203504!==undefined&&_0x203504!==null);if(((_0x1c8f9a=(_0x18588e=this[_0x4a1690(0xc6)])===null||_0x18588e===void 0x0?void 0x0:_0x18588e[_0x4a1690(0xd6)])===null||_0x1c8f9a===void 0x0?void 0x0:_0x1c8f9a[_0x4a1690(0xd1)])==_0x4a1690(0xdb))return await((_0x427253=(_0x34f0b0=(_0x372341=this===null||this===void 0x0?void 0x0:this[_0x4a1690(0xc6)])===null||_0x372341===void 0x0?void 0x0:_0x372341[_0x4a1690(0xd6)])===null||_0x34f0b0===void 0x0?void 0x0:_0x34f0b0[_0x4a1690(0xa4)]())===null||_0x427253===void 0x0?void 0x0:_0x427253[_0x4a1690(0xd5)](this[_0x4a1690(0xc1)]+':'+_0x569f38,..._0x353703[_0x4a1690(0xb3)](_0x2ae4d0=>json_encode(_0x2ae4d0)))),_0x353703;else{let _0x447c28=await this['get'](_0x569f38,[]);return _0x447c28['push'](..._0x353703),await this[_0x4a1690(0xd4)](_0x569f38,_0x447c28),_0x447c28;}}};return _0x4ec825;}}exports[a4_0x4f0cb7(0xac)]=Cache;function json_encode(_0xb97e93){var _0x34a4ed=a4_0x4f0cb7;try{return JSON[_0x34a4ed(0xba)](_0xb97e93);}catch(_0x142f63){return undefined;}}function json_decode(_0x105a3d){var _0x20529e=a4_0x4f0cb7;try{return JSON[_0x20529e(0x9f)](_0x105a3d);}catch(_0x194fb){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.63",
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": "8d60bd907f567f3e7a7b00f05f33435aa18acb07"
26
+ "gitHead": "f575b24f6bd01f1345618820e936c1858127ab59"
27
27
  }