@anncic-api/cache 3.4.74 → 3.4.76

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_0x59ad28=a0_0x512f;function a0_0x45f5(){const _0x4f85b6=['name','784714nXXNjW','search','4593760Zwziqv','toString','env','apply','113100hygZVO','(((.+)+)+)+$','52cyLhqG','defineProperty','1214316ivWoAH','9wvnThp','29355xrabsF','constructor','615100ZdKApd','default','file','368764CNPWZU','cache-manager-ioredis','127.0.0.1','/runtime/.cache'];a0_0x45f5=function(){return _0x4f85b6;};return a0_0x45f5();}function a0_0x512f(_0x1231f7,_0x2f0db0){const _0xe8b6a0=a0_0x45f5();return a0_0x512f=function(_0x5ef97b,_0x20d648){_0x5ef97b=_0x5ef97b-0x1b0;let _0x45f53b=_0xe8b6a0[_0x5ef97b];return _0x45f53b;},a0_0x512f(_0x1231f7,_0x2f0db0);}(function(_0x4eaa8b,_0x226faa){const _0x3155b9=a0_0x512f,_0x2105a7=_0x4eaa8b();while(!![]){try{const _0x5a8ac8=-parseInt(_0x3155b9(0x1c0))/0x1+-parseInt(_0x3155b9(0x1b5))/0x2+parseInt(_0x3155b9(0x1b0))/0x3*(-parseInt(_0x3155b9(0x1c2))/0x4)+-parseInt(_0x3155b9(0x1b2))/0x5+parseInt(_0x3155b9(0x1c4))/0x6+-parseInt(_0x3155b9(0x1ba))/0x7+parseInt(_0x3155b9(0x1bc))/0x8*(parseInt(_0x3155b9(0x1c5))/0x9);if(_0x5a8ac8===_0x226faa)break;else _0x2105a7['push'](_0x2105a7['shift']());}catch(_0x2d42e8){_0x2105a7['push'](_0x2105a7['shift']());}}}(a0_0x45f5,0x1c83d));const a0_0x20d648=(function(){let _0xa41846=!![];return function(_0x69deb8,_0xf65efd){const _0x2b57ba=_0xa41846?function(){const _0x550d16=a0_0x512f;if(_0xf65efd){const _0x13a6f4=_0xf65efd[_0x550d16(0x1bf)](_0x69deb8,arguments);return _0xf65efd=null,_0x13a6f4;}}:function(){};return _0xa41846=![],_0x2b57ba;};}()),a0_0x5ef97b=a0_0x20d648(this,function(){const _0x313a10=a0_0x512f;return a0_0x5ef97b[_0x313a10(0x1bd)]()[_0x313a10(0x1bb)]('(((.+)+)+)+$')[_0x313a10(0x1bd)]()[_0x313a10(0x1b1)](a0_0x5ef97b)[_0x313a10(0x1bb)](_0x313a10(0x1c1));});a0_0x5ef97b();'use strict';Object[a0_0x59ad28(0x1c3)](exports,'__esModule',{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x59ad28(0x1b6));exports[a0_0x59ad28(0x1b3)]=_0x24029b=>{const _0x2af52a=a0_0x59ad28;return{'cache':{'default':_0x2af52a(0x1b4),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x24029b['appDir']+_0x2af52a(0x1b8)+((_0x24029b===null||_0x24029b===void 0x0?void 0x0:_0x24029b[_0x2af52a(0x1be)])?'-'+_0x24029b[_0x2af52a(0x1be)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2af52a(0x1b7),'password':'','keyPrefix':_0x24029b[_0x2af52a(0x1b9)]+':'+((_0x24029b===null||_0x24029b===void 0x0?void 0x0:_0x24029b[_0x2af52a(0x1be)])?_0x24029b[_0x2af52a(0x1be)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
1
+ const a0_0x3f1d93=a0_0x26d3;(function(_0x22db16,_0x14c0d0){const _0x176b5a=a0_0x26d3,_0x59d606=_0x22db16();while(!![]){try{const _0xf3ccee=-parseInt(_0x176b5a(0xff))/0x1*(-parseInt(_0x176b5a(0x114))/0x2)+-parseInt(_0x176b5a(0x104))/0x3*(parseInt(_0x176b5a(0x107))/0x4)+parseInt(_0x176b5a(0x10b))/0x5*(parseInt(_0x176b5a(0x102))/0x6)+-parseInt(_0x176b5a(0x10e))/0x7+-parseInt(_0x176b5a(0x100))/0x8+-parseInt(_0x176b5a(0x111))/0x9*(-parseInt(_0x176b5a(0x108))/0xa)+-parseInt(_0x176b5a(0x101))/0xb*(-parseInt(_0x176b5a(0x112))/0xc);if(_0xf3ccee===_0x14c0d0)break;else _0x59d606['push'](_0x59d606['shift']());}catch(_0x29419b){_0x59d606['push'](_0x59d606['shift']());}}}(a0_0x297f,0x8c50a));const a0_0x9547a6=(function(){let _0x2563a9=!![];return function(_0x25fb97,_0x503fd3){const _0x4436f8=_0x2563a9?function(){const _0xdb15ea=a0_0x26d3;if(_0x503fd3){const _0x7fd44=_0x503fd3[_0xdb15ea(0xfd)](_0x25fb97,arguments);return _0x503fd3=null,_0x7fd44;}}:function(){};return _0x2563a9=![],_0x4436f8;};}()),a0_0x48ee61=a0_0x9547a6(this,function(){const _0x5c99ea=a0_0x26d3;return a0_0x48ee61[_0x5c99ea(0xfb)]()['search'](_0x5c99ea(0xfc))[_0x5c99ea(0xfb)]()[_0x5c99ea(0x103)](a0_0x48ee61)[_0x5c99ea(0xfe)]('(((.+)+)+)+$');});a0_0x48ee61();function a0_0x297f(){const _0x466852=['1953329hBKbTQ','cache-manager-ioredis','env','1062yBeCiX','348kPsTpm','memory','1917686WluGMA','toString','(((.+)+)+)+$','apply','search','1WvMAWS','936888lmBXFg','133276lMjINS','52194uUhtry','constructor','315297UeYvuy','defineProperty','name','36Vzitzr','49930QAwVdS','cache-manager-fs-hash','appDir','10sWMHJn','/runtime/.cache','default'];a0_0x297f=function(){return _0x466852;};return a0_0x297f();}'use strict';Object[a0_0x3f1d93(0x105)](exports,'__esModule',{'value':!![]});function a0_0x26d3(_0x54ec89,_0x5b4b00){const _0x228560=a0_0x297f();return a0_0x26d3=function(_0x48ee61,_0x9547a6){_0x48ee61=_0x48ee61-0xfb;let _0x297f2d=_0x228560[_0x48ee61];return _0x297f2d;},a0_0x26d3(_0x54ec89,_0x5b4b00);}const fsStore=require(a0_0x3f1d93(0x109)),redisStore=require(a0_0x3f1d93(0x10f));exports[a0_0x3f1d93(0x10d)]=_0x47ff34=>{const _0x28ee70=a0_0x3f1d93;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x47ff34[_0x28ee70(0x10a)]+_0x28ee70(0x10c)+((_0x47ff34===null||_0x47ff34===void 0x0?void 0x0:_0x47ff34[_0x28ee70(0x110)])?'-'+_0x47ff34[_0x28ee70(0x110)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x47ff34[_0x28ee70(0x106)]+':'+((_0x47ff34===null||_0x47ff34===void 0x0?void 0x0:_0x47ff34[_0x28ee70(0x110)])?_0x47ff34['env']+':':'')}},'memory':{'store':_0x28ee70(0x113),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- function a1_0x579b(_0x2bddc8,_0x32d88a){var _0xf0b6f9=a1_0x351d();return a1_0x579b=function(_0xcda2e1,_0x3ba0d2){_0xcda2e1=_0xcda2e1-0x1cf;var _0x351d76=_0xf0b6f9[_0xcda2e1];return _0x351d76;},a1_0x579b(_0x2bddc8,_0x32d88a);}var a1_0x47e152=a1_0x579b;(function(_0x332d8f,_0x2bff50){var _0x4adc7c=a1_0x579b,_0x430597=_0x332d8f();while(!![]){try{var _0x2379ce=parseInt(_0x4adc7c(0x1cf))/0x1*(-parseInt(_0x4adc7c(0x1e4))/0x2)+-parseInt(_0x4adc7c(0x1e3))/0x3*(-parseInt(_0x4adc7c(0x1d6))/0x4)+-parseInt(_0x4adc7c(0x1d8))/0x5*(parseInt(_0x4adc7c(0x1db))/0x6)+-parseInt(_0x4adc7c(0x1de))/0x7+-parseInt(_0x4adc7c(0x1e1))/0x8*(parseInt(_0x4adc7c(0x1e6))/0x9)+parseInt(_0x4adc7c(0x1d5))/0xa*(parseInt(_0x4adc7c(0x1e0))/0xb)+parseInt(_0x4adc7c(0x1dd))/0xc;if(_0x2379ce===_0x2bff50)break;else _0x430597['push'](_0x430597['shift']());}catch(_0x2b70e2){_0x430597['push'](_0x430597['shift']());}}}(a1_0x351d,0x66444));var a1_0x3ba0d2=(function(){var _0x24db3c=!![];return function(_0x5447d2,_0x2af813){var _0x4ae343=_0x24db3c?function(){if(_0x2af813){var _0x3e400e=_0x2af813['apply'](_0x5447d2,arguments);return _0x2af813=null,_0x3e400e;}}:function(){};return _0x24db3c=![],_0x4ae343;};}()),a1_0xcda2e1=a1_0x3ba0d2(this,function(){var _0x132342=a1_0x579b;return a1_0xcda2e1[_0x132342(0x1e8)]()['search'](_0x132342(0x1d1))['toString']()[_0x132342(0x1df)](a1_0xcda2e1)[_0x132342(0x1dc)](_0x132342(0x1d1));});a1_0xcda2e1();'use strict';var __decorate=this&&this[a1_0x47e152(0x1da)]||function(_0x2e90aa,_0x561402,_0x7a5945,_0x349e78){var _0x4ee90e=a1_0x47e152,_0x431bc9=arguments[_0x4ee90e(0x1d4)],_0x40cb0a=_0x431bc9<0x3?_0x561402:_0x349e78===null?_0x349e78=Object['getOwnPropertyDescriptor'](_0x561402,_0x7a5945):_0x349e78,_0x2051ce;if(typeof Reflect===_0x4ee90e(0x1d3)&&typeof Reflect[_0x4ee90e(0x1e7)]===_0x4ee90e(0x1e5))_0x40cb0a=Reflect[_0x4ee90e(0x1e7)](_0x2e90aa,_0x561402,_0x7a5945,_0x349e78);else{for(var _0x75a2f2=_0x2e90aa[_0x4ee90e(0x1d4)]-0x1;_0x75a2f2>=0x0;_0x75a2f2--)if(_0x2051ce=_0x2e90aa[_0x75a2f2])_0x40cb0a=(_0x431bc9<0x3?_0x2051ce(_0x40cb0a):_0x431bc9>0x3?_0x2051ce(_0x561402,_0x7a5945,_0x40cb0a):_0x2051ce(_0x561402,_0x7a5945))||_0x40cb0a;}return _0x431bc9>0x3&&_0x40cb0a&&Object[_0x4ee90e(0x1d2)](_0x561402,_0x7a5945,_0x40cb0a),_0x40cb0a;};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x47e152(0x1d7)]=void 0x0;const core_1=require(a1_0x47e152(0x1d9)),ConfigDefault=require(a1_0x47e152(0x1d0));function a1_0x351d(){var _0x5ce4eb=['./config/config.default','(((.+)+)+)+$','defineProperty','object','length','10QTKhQE','2584664pZDYoG','CustomConfiguration','2775AOIDLe','@midwayjs/core','__decorate','2010nHrJpe','search','15987540fzJeBq','4714626ksuNMW','constructor','523622kCVddT','8AiBqAf','anncic-api:cache','3NyvpyK','256966NyXTNa','function','5573277FiqsGQ','decorate','toString','Configuration','1Hvguta'];a1_0x351d=function(){return _0x5ce4eb;};return a1_0x351d();}let CustomConfiguration=class CustomConfiguration{};exports[a1_0x47e152(0x1d7)]=CustomConfiguration,exports[a1_0x47e152(0x1d7)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x47e152(0x1e9)])({'conflictCheck':![],'namespace':a1_0x47e152(0x1e2),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x2f9b08=a1_0x42a4;(function(_0x7fc3f9,_0x3f3c8c){var _0x4cbae4=a1_0x42a4,_0x1e30cd=_0x7fc3f9();while(!![]){try{var _0x6ea291=parseInt(_0x4cbae4(0x135))/0x1*(-parseInt(_0x4cbae4(0x129))/0x2)+parseInt(_0x4cbae4(0x12f))/0x3*(parseInt(_0x4cbae4(0x12b))/0x4)+-parseInt(_0x4cbae4(0x128))/0x5+parseInt(_0x4cbae4(0x131))/0x6+-parseInt(_0x4cbae4(0x133))/0x7*(parseInt(_0x4cbae4(0x122))/0x8)+parseInt(_0x4cbae4(0x127))/0x9+parseInt(_0x4cbae4(0x136))/0xa;if(_0x6ea291===_0x3f3c8c)break;else _0x1e30cd['push'](_0x1e30cd['shift']());}catch(_0x3a3462){_0x1e30cd['push'](_0x1e30cd['shift']());}}}(a1_0x54f3,0x6658c));function a1_0x54f3(){var _0x3c9301=['./config/config.default','constructor','anncic-api:cache','defineProperty','5899806fMkEqE','901575iideHx','54HmJdGO','search','743116FDyyHX','function','CustomConfiguration','(((.+)+)+)+$','3NmORCQ','object','1916184RhfPYC','Configuration','119NRHvRa','length','21995GWLNXA','7404080hHfmod','getOwnPropertyDescriptor','decorate','__decorate','333032wYakDJ'];a1_0x54f3=function(){return _0x3c9301;};return a1_0x54f3();}var a1_0x450a4c=(function(){var _0x464e10=!![];return function(_0x4b49dc,_0x3560fc){var _0xf18d45=_0x464e10?function(){if(_0x3560fc){var _0x301407=_0x3560fc['apply'](_0x4b49dc,arguments);return _0x3560fc=null,_0x301407;}}:function(){};return _0x464e10=![],_0xf18d45;};}()),a1_0x325b22=a1_0x450a4c(this,function(){var _0x8b56aa=a1_0x42a4;return a1_0x325b22['toString']()['search'](_0x8b56aa(0x12e))['toString']()[_0x8b56aa(0x124)](a1_0x325b22)[_0x8b56aa(0x12a)](_0x8b56aa(0x12e));});a1_0x325b22();function a1_0x42a4(_0x1c675a,_0x2c7811){var _0xbdb37c=a1_0x54f3();return a1_0x42a4=function(_0x325b22,_0x450a4c){_0x325b22=_0x325b22-0x121;var _0x54f3a9=_0xbdb37c[_0x325b22];return _0x54f3a9;},a1_0x42a4(_0x1c675a,_0x2c7811);}'use strict';var __decorate=this&&this[a1_0x2f9b08(0x121)]||function(_0x2a2463,_0x493048,_0x4ec276,_0x598817){var _0x23bb0e=a1_0x2f9b08,_0x57a844=arguments[_0x23bb0e(0x134)],_0x478191=_0x57a844<0x3?_0x493048:_0x598817===null?_0x598817=Object[_0x23bb0e(0x137)](_0x493048,_0x4ec276):_0x598817,_0x49c440;if(typeof Reflect===_0x23bb0e(0x130)&&typeof Reflect[_0x23bb0e(0x138)]===_0x23bb0e(0x12c))_0x478191=Reflect['decorate'](_0x2a2463,_0x493048,_0x4ec276,_0x598817);else{for(var _0x18c5f2=_0x2a2463[_0x23bb0e(0x134)]-0x1;_0x18c5f2>=0x0;_0x18c5f2--)if(_0x49c440=_0x2a2463[_0x18c5f2])_0x478191=(_0x57a844<0x3?_0x49c440(_0x478191):_0x57a844>0x3?_0x49c440(_0x493048,_0x4ec276,_0x478191):_0x49c440(_0x493048,_0x4ec276))||_0x478191;}return _0x57a844>0x3&&_0x478191&&Object[_0x23bb0e(0x126)](_0x493048,_0x4ec276,_0x478191),_0x478191;};Object[a1_0x2f9b08(0x126)](exports,'__esModule',{'value':!![]}),exports[a1_0x2f9b08(0x12d)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x2f9b08(0x123));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x2f9b08(0x12d)]=CustomConfiguration,exports[a1_0x2f9b08(0x12d)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x2f9b08(0x132)])({'conflictCheck':![],'namespace':a1_0x2f9b08(0x125),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0xefd5ab=a2_0x4e7e;function a2_0x4e7e(_0x1811c8,_0x5bfd73){const _0x1ce7cf=a2_0xd8fb();return a2_0x4e7e=function(_0x4081ca,_0x2f2713){_0x4081ca=_0x4081ca-0x69;let _0xd8fb51=_0x1ce7cf[_0x4081ca];return _0xd8fb51;},a2_0x4e7e(_0x1811c8,_0x5bfd73);}(function(_0x92e4c4,_0x508456){const _0x1c40ca=a2_0x4e7e,_0x24b125=_0x92e4c4();while(!![]){try{const _0x264077=-parseInt(_0x1c40ca(0x82))/0x1+parseInt(_0x1c40ca(0x84))/0x2+parseInt(_0x1c40ca(0x72))/0x3*(parseInt(_0x1c40ca(0x76))/0x4)+-parseInt(_0x1c40ca(0x7b))/0x5+-parseInt(_0x1c40ca(0x7f))/0x6*(parseInt(_0x1c40ca(0x7e))/0x7)+-parseInt(_0x1c40ca(0x78))/0x8+parseInt(_0x1c40ca(0x7d))/0x9;if(_0x264077===_0x508456)break;else _0x24b125['push'](_0x24b125['shift']());}catch(_0x392b3f){_0x24b125['push'](_0x24b125['shift']());}}}(a2_0xd8fb,0x916b6));const a2_0x2f2713=(function(){let _0x277f76=!![];return function(_0x33e91e,_0x2dc9bb){const _0x52bfb6=_0x277f76?function(){const _0x2f55c7=a2_0x4e7e;if(_0x2dc9bb){const _0x422ce0=_0x2dc9bb[_0x2f55c7(0x6d)](_0x33e91e,arguments);return _0x2dc9bb=null,_0x422ce0;}}:function(){};return _0x277f76=![],_0x52bfb6;};}()),a2_0x4081ca=a2_0x2f2713(this,function(){const _0x3e7c77=a2_0x4e7e;return a2_0x4081ca[_0x3e7c77(0x6a)]()[_0x3e7c77(0x70)](_0x3e7c77(0x75))['toString']()[_0x3e7c77(0x80)](a2_0x4081ca)['search']('(((.+)+)+)+$');});a2_0x4081ca();'use strict';Object['defineProperty'](exports,a2_0xefd5ab(0x7a),{'value':!![]}),exports[a2_0xefd5ab(0x69)]=Cache;const crypto_js_1=require('crypto-js'),CacheService_1=require('../service/CacheService'),core_1=require(a2_0xefd5ab(0x73));function a2_0xd8fb(){const _0x3fbab9=['Cache','toString','getAsync','get','apply','CacheService','value','search','stringify','1048683NkdNcV','@midwayjs/core','Method::Decorator','(((.+)+)+)+$','8HRHHAx','MD5','9336008EITDih','app','__esModule','2515535cmUJhq','set','24155721ZaDOaA','4753hcywnc','1926MBFifa','constructor','REQUEST_OBJ_CTX_KEY','1158531QqvSBl','use','518290qURotV'];a2_0xd8fb=function(){return _0x3fbab9;};return a2_0xd8fb();}function json_encode(_0xda4319){const _0x51c6b7=a2_0xefd5ab;try{return JSON[_0x51c6b7(0x71)](_0xda4319);}catch(_0x548836){return undefined;}}function Cache(_0x3bbd62,_0x906f4){return(_0x13a071,_0x47d8d1,_0x2042c0)=>{const _0x367fe8=a2_0x4e7e,_0x55091c=_0x2042c0[_0x367fe8(0x6f)];return _0x2042c0[_0x367fe8(0x6f)]=async function(..._0xd947a0){const _0x55294c=_0x367fe8;_0x3bbd62=(_0x3bbd62?''+_0x3bbd62:''+(_0x47d8d1||''))+'.'+(0x0,crypto_js_1[_0x55294c(0x77)])(json_encode(_0xd947a0))['toString']();let _0x530c53=await this[core_1[_0x55294c(0x81)]][_0x55294c(0x79)]['getApplicationContext']()[_0x55294c(0x6b)](CacheService_1[_0x55294c(0x6e)]),_0x4e248b=await _0x530c53[_0x55294c(0x83)](_0x55294c(0x74))[_0x55294c(0x6c)](_0x3bbd62);if(_0x4e248b)return JSON['parse'](_0x4e248b);else _0x4e248b=await _0x55091c[_0x55294c(0x6d)](this,[..._0xd947a0]),await _0x530c53[_0x55294c(0x83)](_0x55294c(0x74))[_0x55294c(0x7c)](_0x3bbd62,JSON['stringify'](_0x4e248b),_0x906f4);return _0x4e248b;},_0x2042c0;};}
1
+ const a2_0x9be4ca=a2_0x2ff7;(function(_0x258189,_0x56e33d){const _0x4dbd98=a2_0x2ff7,_0x1b628a=_0x258189();while(!![]){try{const _0x7aaf9a=-parseInt(_0x4dbd98(0x1e6))/0x1*(parseInt(_0x4dbd98(0x1e2))/0x2)+-parseInt(_0x4dbd98(0x1f3))/0x3*(parseInt(_0x4dbd98(0x1dc))/0x4)+-parseInt(_0x4dbd98(0x1d9))/0x5+-parseInt(_0x4dbd98(0x1f1))/0x6*(parseInt(_0x4dbd98(0x1ea))/0x7)+parseInt(_0x4dbd98(0x1e3))/0x8+-parseInt(_0x4dbd98(0x1de))/0x9+-parseInt(_0x4dbd98(0x1db))/0xa*(-parseInt(_0x4dbd98(0x1e5))/0xb);if(_0x7aaf9a===_0x56e33d)break;else _0x1b628a['push'](_0x1b628a['shift']());}catch(_0x4dda13){_0x1b628a['push'](_0x1b628a['shift']());}}}(a2_0x2193,0x42035));const a2_0x412e1b=(function(){let _0x274bbc=!![];return function(_0x4084e5,_0x1292e4){const _0x75e6b7=_0x274bbc?function(){const _0x2ef7df=a2_0x2ff7;if(_0x1292e4){const _0x2bfc9c=_0x1292e4[_0x2ef7df(0x1d7)](_0x4084e5,arguments);return _0x1292e4=null,_0x2bfc9c;}}:function(){};return _0x274bbc=![],_0x75e6b7;};}()),a2_0x1ca132=a2_0x412e1b(this,function(){const _0x3af67f=a2_0x2ff7;return a2_0x1ca132['toString']()[_0x3af67f(0x1f2)](_0x3af67f(0x1eb))[_0x3af67f(0x1d4)]()[_0x3af67f(0x1e4)](a2_0x1ca132)[_0x3af67f(0x1f2)](_0x3af67f(0x1eb));});a2_0x1ca132();'use strict';Object[a2_0x9be4ca(0x1e8)](exports,a2_0x9be4ca(0x1e1),{'value':!![]}),exports[a2_0x9be4ca(0x1e7)]=Cache;function a2_0x2ff7(_0x4d6a57,_0x1c7d57){const _0x2457b9=a2_0x2193();return a2_0x2ff7=function(_0x1ca132,_0x412e1b){_0x1ca132=_0x1ca132-0x1d3;let _0x219308=_0x2457b9[_0x1ca132];return _0x219308;},a2_0x2ff7(_0x4d6a57,_0x1c7d57);}function a2_0x2193(){const _0x175a7f=['crypto-js','app','@midwayjs/core','102TcKpLn','search','381MJzlwI','parse','MD5','toString','use','stringify','apply','set','449760gGKYYw','../service/CacheService','30PDdOYP','10316UQbkeC','getAsync','3877776eAUMkG','value','get','__esModule','349326zKtBch','3271016YkitgD','constructor','5986145TjEYEv','3GacYYG','Cache','defineProperty','Method::Decorator','164185EemOJb','(((.+)+)+)+$','getApplicationContext','CacheService'];a2_0x2193=function(){return _0x175a7f;};return a2_0x2193();}const crypto_js_1=require(a2_0x9be4ca(0x1ee)),CacheService_1=require(a2_0x9be4ca(0x1da)),core_1=require(a2_0x9be4ca(0x1f0));function json_encode(_0x5a63f4){const _0x3a5a5f=a2_0x9be4ca;try{return JSON[_0x3a5a5f(0x1d6)](_0x5a63f4);}catch(_0x423149){return undefined;}}function Cache(_0x409f2b,_0x3cfe46){return(_0x2223fd,_0x476988,_0x380463)=>{const _0x387672=a2_0x2ff7,_0x517ea2=_0x380463[_0x387672(0x1df)];return _0x380463[_0x387672(0x1df)]=async function(..._0x2916a0){const _0x536de1=_0x387672;_0x409f2b=(_0x409f2b?''+_0x409f2b:''+(_0x476988||''))+'.'+(0x0,crypto_js_1[_0x536de1(0x1d3)])(json_encode(_0x2916a0))[_0x536de1(0x1d4)]();let _0x449e1e=await this[core_1['REQUEST_OBJ_CTX_KEY']][_0x536de1(0x1ef)][_0x536de1(0x1ec)]()[_0x536de1(0x1dd)](CacheService_1[_0x536de1(0x1ed)]),_0xf56afe=await _0x449e1e[_0x536de1(0x1d5)](_0x536de1(0x1e9))[_0x536de1(0x1e0)](_0x409f2b);if(_0xf56afe)return JSON[_0x536de1(0x1f4)](_0xf56afe);else _0xf56afe=await _0x517ea2[_0x536de1(0x1d7)](this,[..._0x2916a0]),await _0x449e1e[_0x536de1(0x1d5)]('Method::Decorator')[_0x536de1(0x1d8)](_0x409f2b,JSON[_0x536de1(0x1d6)](_0xf56afe),_0x3cfe46);return _0xf56afe;},_0x380463;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function a3_0x3268(){var _0x10b86d=['1074344krRcUE','./decorator/Cache','33560ZHAKFX','1233GsziwQ','1175576DJgXYF','Configuration','constructor','1847365QsoHvY','21GoeDKL','defineProperty','apply','search','./service/CacheService','CacheService','Cache','583016koPgiB','(((.+)+)+)+$','__esModule','4379568dspLsv','141852ZJRkDa','toString','9XafOXA'];a3_0x3268=function(){return _0x10b86d;};return a3_0x3268();}var a3_0x4a8858=a3_0x1200;(function(_0x4042f8,_0x2f6026){var _0x3339ed=a3_0x1200,_0x22eb21=_0x4042f8();while(!![]){try{var _0x45f2c6=-parseInt(_0x3339ed(0xb0))/0x1+parseInt(_0x3339ed(0xa1))/0x2+-parseInt(_0x3339ed(0xb2))/0x3*(-parseInt(_0x3339ed(0xac))/0x4)+-parseInt(_0x3339ed(0xa4))/0x5+parseInt(_0x3339ed(0xaf))/0x6+parseInt(_0x3339ed(0xa5))/0x7*(-parseInt(_0x3339ed(0xb3))/0x8)+parseInt(_0x3339ed(0xb6))/0x9*(-parseInt(_0x3339ed(0xb5))/0xa);if(_0x45f2c6===_0x2f6026)break;else _0x22eb21['push'](_0x22eb21['shift']());}catch(_0x1fa0ec){_0x22eb21['push'](_0x22eb21['shift']());}}}(a3_0x3268,0x5d04a));var a3_0x3eccb8=(function(){var _0x1e1eb3=!![];return function(_0x2115e8,_0x4ebc26){var _0x451909=_0x1e1eb3?function(){var _0x3027cd=a3_0x1200;if(_0x4ebc26){var _0x48f4dd=_0x4ebc26[_0x3027cd(0xa7)](_0x2115e8,arguments);return _0x4ebc26=null,_0x48f4dd;}}:function(){};return _0x1e1eb3=![],_0x451909;};}()),a3_0x268c7b=a3_0x3eccb8(this,function(){var _0x19a056=a3_0x1200;return a3_0x268c7b[_0x19a056(0xb1)]()[_0x19a056(0xa8)](_0x19a056(0xad))['toString']()[_0x19a056(0xa3)](a3_0x268c7b)[_0x19a056(0xa8)](_0x19a056(0xad));});a3_0x268c7b();'use strict';Object[a3_0x4a8858(0xa6)](exports,a3_0x4a8858(0xae),{'value':!![]}),exports[a3_0x4a8858(0xaa)]=exports[a3_0x4a8858(0xab)]=exports[a3_0x4a8858(0xa2)]=void 0x0;var configuration_1=require('./configuration');Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a3_0x1200(_0x3f0f75,_0x10142c){var _0x13ae4f=a3_0x3268();return a3_0x1200=function(_0x268c7b,_0x3eccb8){_0x268c7b=_0x268c7b-0xa1;var _0x32686c=_0x13ae4f[_0x268c7b];return _0x32686c;},a3_0x1200(_0x3f0f75,_0x10142c);}var Cache_1=require(a3_0x4a8858(0xb4));Object[a3_0x4a8858(0xa6)](exports,a3_0x4a8858(0xab),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x4a8858(0xa9));Object['defineProperty'](exports,a3_0x4a8858(0xaa),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ var a3_0x1ac2f8=a3_0x5b55;(function(_0xb468a0,_0x56bb08){var _0x5371b5=a3_0x5b55,_0x4a6d67=_0xb468a0();while(!![]){try{var _0x18c974=-parseInt(_0x5371b5(0x8a))/0x1+-parseInt(_0x5371b5(0x89))/0x2*(-parseInt(_0x5371b5(0x8c))/0x3)+parseInt(_0x5371b5(0x97))/0x4*(-parseInt(_0x5371b5(0x95))/0x5)+parseInt(_0x5371b5(0x85))/0x6+parseInt(_0x5371b5(0x87))/0x7+-parseInt(_0x5371b5(0x98))/0x8+parseInt(_0x5371b5(0x8f))/0x9;if(_0x18c974===_0x56bb08)break;else _0x4a6d67['push'](_0x4a6d67['shift']());}catch(_0x2ac057){_0x4a6d67['push'](_0x4a6d67['shift']());}}}(a3_0x482c,0xda0fa));var a3_0x597db1=(function(){var _0x166509=!![];return function(_0x226932,_0x3733ee){var _0x347eb2=_0x166509?function(){var _0x236646=a3_0x5b55;if(_0x3733ee){var _0x5557e1=_0x3733ee[_0x236646(0x96)](_0x226932,arguments);return _0x3733ee=null,_0x5557e1;}}:function(){};return _0x166509=![],_0x347eb2;};}()),a3_0x4c6fa2=a3_0x597db1(this,function(){var _0x363cbb=a3_0x5b55;return a3_0x4c6fa2['toString']()[_0x363cbb(0x83)](_0x363cbb(0x94))[_0x363cbb(0x8e)]()[_0x363cbb(0x8d)](a3_0x4c6fa2)[_0x363cbb(0x83)](_0x363cbb(0x94));});a3_0x4c6fa2();function a3_0x482c(){var _0x51000a=['11237976umiXdX','Cache','CacheService','./service/CacheService','__esModule','(((.+)+)+)+$','35sfLAqP','apply','539804ssgHxZ','11303080xjEObI','Configuration','search','defineProperty','7795296unpDpu','./configuration','284767oVGZDL','CustomConfiguration','292beWqsi','20099ZzPqQB','./decorator/Cache','14019qUwbNi','constructor','toString'];a3_0x482c=function(){return _0x51000a;};return a3_0x482c();}function a3_0x5b55(_0x3db182,_0x3b2e99){var _0x1973df=a3_0x482c();return a3_0x5b55=function(_0x4c6fa2,_0x597db1){_0x4c6fa2=_0x4c6fa2-0x82;var _0x482c31=_0x1973df[_0x4c6fa2];return _0x482c31;},a3_0x5b55(_0x3db182,_0x3b2e99);}'use strict';Object[a3_0x1ac2f8(0x84)](exports,a3_0x1ac2f8(0x93),{'value':!![]}),exports[a3_0x1ac2f8(0x91)]=exports[a3_0x1ac2f8(0x90)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x1ac2f8(0x86));Object[a3_0x1ac2f8(0x84)](exports,a3_0x1ac2f8(0x82),{'enumerable':!![],'get':function(){var _0x526734=a3_0x1ac2f8;return configuration_1[_0x526734(0x88)];}});var Cache_1=require(a3_0x1ac2f8(0x8b));Object[a3_0x1ac2f8(0x84)](exports,a3_0x1ac2f8(0x90),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x1ac2f8(0x92));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x54f2e8=a3_0x1ac2f8;return CacheService_1[_0x54f2e8(0x91)];}});
@@ -1 +1 @@
1
- var a4_0x870b07=a4_0x5960;(function(_0x203fea,_0x31aaff){var _0x159c59=a4_0x5960,_0x547144=_0x203fea();while(!![]){try{var _0x3de4fa=-parseInt(_0x159c59(0x1fa))/0x1*(parseInt(_0x159c59(0x1f8))/0x2)+parseInt(_0x159c59(0x1ec))/0x3+-parseInt(_0x159c59(0x1fe))/0x4+parseInt(_0x159c59(0x1c9))/0x5*(-parseInt(_0x159c59(0x1dc))/0x6)+parseInt(_0x159c59(0x1e3))/0x7+parseInt(_0x159c59(0x1f2))/0x8+parseInt(_0x159c59(0x1ce))/0x9;if(_0x3de4fa===_0x31aaff)break;else _0x547144['push'](_0x547144['shift']());}catch(_0x1788e0){_0x547144['push'](_0x547144['shift']());}}}(a4_0x5d59,0x30c45));function a4_0x5960(_0x1155b1,_0x280aed){var _0x580623=a4_0x5d59();return a4_0x5960=function(_0x43aa07,_0x58320c){_0x43aa07=_0x43aa07-0x1c4;var _0x5d59cc=_0x580623[_0x43aa07];return _0x5d59cc;},a4_0x5960(_0x1155b1,_0x280aed);}var a4_0x58320c=(function(){var _0x3e8c70=!![];return function(_0xca7995,_0x51d7b1){var _0x39ffb2=_0x3e8c70?function(){var _0x5b808e=a4_0x5960;if(_0x51d7b1){var _0x34f276=_0x51d7b1[_0x5b808e(0x1d5)](_0xca7995,arguments);return _0x51d7b1=null,_0x34f276;}}:function(){};return _0x3e8c70=![],_0x39ffb2;};}()),a4_0x43aa07=a4_0x58320c(this,function(){var _0x297866=a4_0x5960;return a4_0x43aa07[_0x297866(0x1f3)]()['search']('(((.+)+)+)+$')['toString']()[_0x297866(0x1cf)](a4_0x43aa07)['search'](_0x297866(0x1d0));});a4_0x43aa07();'use strict';var __decorate=this&&this[a4_0x870b07(0x1da)]||function(_0x517b36,_0x30c87c,_0x3d361f,_0x1f39bd){var _0x351414=a4_0x870b07,_0x5f2311=arguments['length'],_0x2d3d6a=_0x5f2311<0x3?_0x30c87c:_0x1f39bd===null?_0x1f39bd=Object[_0x351414(0x1ea)](_0x30c87c,_0x3d361f):_0x1f39bd,_0x595cfe;if(typeof Reflect===_0x351414(0x1d9)&&typeof Reflect[_0x351414(0x1e7)]==='function')_0x2d3d6a=Reflect[_0x351414(0x1e7)](_0x517b36,_0x30c87c,_0x3d361f,_0x1f39bd);else{for(var _0x3dbda1=_0x517b36[_0x351414(0x1ee)]-0x1;_0x3dbda1>=0x0;_0x3dbda1--)if(_0x595cfe=_0x517b36[_0x3dbda1])_0x2d3d6a=(_0x5f2311<0x3?_0x595cfe(_0x2d3d6a):_0x5f2311>0x3?_0x595cfe(_0x30c87c,_0x3d361f,_0x2d3d6a):_0x595cfe(_0x30c87c,_0x3d361f))||_0x2d3d6a;}return _0x5f2311>0x3&&_0x2d3d6a&&Object['defineProperty'](_0x30c87c,_0x3d361f,_0x2d3d6a),_0x2d3d6a;},__metadata=this&&this[a4_0x870b07(0x1c5)]||function(_0x336bc5,_0x382816){var _0x31665e=a4_0x870b07;if(typeof Reflect===_0x31665e(0x1d9)&&typeof Reflect[_0x31665e(0x1fd)]===_0x31665e(0x1f7))return Reflect['metadata'](_0x336bc5,_0x382816);};Object[a4_0x870b07(0x200)](exports,a4_0x870b07(0x1de),{'value':!![]}),exports['Cache']=exports[a4_0x870b07(0x1d8)]=void 0x0,exports[a4_0x870b07(0x1ef)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require(a4_0x870b07(0x1e6)),core_1=require(a4_0x870b07(0x1e1));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x870b07(0x1f1)](_0x4754db){var _0x22bb05=a4_0x870b07,_0x4b8d08,_0x19d97e;if(!this['cache']){const _0x31d1fa=((_0x4b8d08=this[_0x22bb05(0x1fc)][_0x22bb05(0x1d6)])===null||_0x4b8d08===void 0x0?void 0x0:_0x4b8d08[(_0x19d97e=this[_0x22bb05(0x1fc)])===null||_0x19d97e===void 0x0?void 0x0:_0x19d97e[_0x22bb05(0x1d4)]])||this[_0x22bb05(0x1fc)][_0x22bb05(0x1d6)][_0x22bb05(0x1e9)];this[_0x22bb05(0x1df)]=cacheManager[_0x22bb05(0x1ed)]({..._0x31d1fa[_0x22bb05(0x1c7)],'store':_0x31d1fa[_0x22bb05(0x1d7)]});}return!this[_0x22bb05(0x1f5)][_0x22bb05(0x1d1)](_0x4754db)&&this[_0x22bb05(0x1f5)][_0x22bb05(0x1cc)](_0x4754db,new Cache(_0x4754db,this[_0x22bb05(0x1df)])),this[_0x22bb05(0x1f5)][_0x22bb05(0x1e8)](_0x4754db);}async['reset'](){var _0x3589c3=a4_0x870b07;return await this['cache'][_0x3589c3(0x1f4)]();}};function a4_0x5d59(){var _0x27e432=['1070335zSCdrX','del','redis','cache-manager','decorate','get','file','getOwnPropertyDescriptor','list','935607QEZhth','caching','length','json_encode','hdel','use','2040464NfxaMr','toString','reset','clients','rpush','function','50eYnKAE','catch','2243oegZCV','hget','config','metadata','682656yXhbUT','Provide','defineProperty','filter','name','__metadata','Cache','options','prefix','653465RbDLGO','map','parse','set','ScopeEnum','888615tBLBXr','constructor','(((.+)+)+)+$','has','Singleton','design:type','default','apply','stores','store','CacheService','object','__decorate','stringify','18WuqueY','getClient','__esModule','cache','hset','@midwayjs/core','Config'];a4_0x5d59=function(){return _0x27e432;};return a4_0x5d59();}exports[a4_0x870b07(0x1d8)]=CacheService,__decorate([(0x0,core_1[a4_0x870b07(0x1e2)])(a4_0x870b07(0x1df)),__metadata(a4_0x870b07(0x1d3),Object)],CacheService['prototype'],'config',void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1[a4_0x870b07(0x1ff)])(),(0x0,core_1['Scope'])(core_1[a4_0x870b07(0x1cd)][a4_0x870b07(0x1d2)])],CacheService);class Cache{constructor(_0xf28689,_0x594cfb){var _0x24a787=a4_0x870b07;this[_0x24a787(0x1df)]=_0x594cfb,this[_0x24a787(0x1c8)]=_0xf28689;}async[a4_0x870b07(0x1e4)](_0x2ecb9f){var _0x27f5a3=a4_0x870b07;return await this[_0x27f5a3(0x1df)]['del'](this['prefix']+':'+_0x2ecb9f);}async[a4_0x870b07(0x1cc)](_0x524930,_0x462315,_0x3b8884){var _0xa14dc=a4_0x870b07,_0x4299bd,_0x5ea82f;return((_0x5ea82f=(_0x4299bd=this[_0xa14dc(0x1df)])===null||_0x4299bd===void 0x0?void 0x0:_0x4299bd['store'])===null||_0x5ea82f===void 0x0?void 0x0:_0x5ea82f[_0xa14dc(0x1c4)])==_0xa14dc(0x1e5)?await this['cache'][_0xa14dc(0x1cc)](this[_0xa14dc(0x1c8)]+':'+_0x524930,_0x462315,{'ttl':_0x3b8884}):await this[_0xa14dc(0x1df)][_0xa14dc(0x1cc)](this[_0xa14dc(0x1c8)]+':'+_0x524930,_0x462315,{'ttl':_0x3b8884});}async[a4_0x870b07(0x1e8)](_0x42e48f,_0xae425e,_0x3a3e52){return new Promise((_0x4f253a,_0x2f59b9)=>{var _0xe14061=a4_0x5960;this['cache'][_0xe14061(0x1e8)](this[_0xe14061(0x1c8)]+':'+_0x42e48f,async(_0x2ea53f,_0x4fd057)=>{var _0x22b3ad=_0xe14061;_0x2ea53f?_0x2f59b9(_0x2ea53f):((_0x4fd057===undefined||_0x4fd057===null)&&(typeof _0xae425e==_0x22b3ad(0x1f7)?(_0x4fd057=await _0xae425e()[_0x22b3ad(0x1f9)](_0x359ef4=>_0x2f59b9(_0x359ef4)),typeof _0x4fd057!='undefined'&&await this[_0x22b3ad(0x1cc)](_0x42e48f,_0x4fd057,_0x3a3e52)):_0x4fd057=_0xae425e),_0x4f253a(_0x4fd057));});});}async[a4_0x870b07(0x1f0)](_0x5ceb3e,_0x287a68){return await this['del'](_0x5ceb3e+'#'+_0x287a68);}async[a4_0x870b07(0x1e0)](_0x1ec899,_0x5f59bb,_0x524497,_0x1304b1){return await this['set'](_0x1ec899+'#'+_0x5f59bb,_0x524497,_0x1304b1);}async[a4_0x870b07(0x1fb)](_0x723d63,_0x125f11,_0x20a9dd,_0x1f3b8b){var _0x996833=a4_0x870b07;return await this[_0x996833(0x1e8)](_0x723d63+'#'+_0x125f11,_0x20a9dd,_0x1f3b8b);}[a4_0x870b07(0x1eb)](_0xfb3281){const _0xcf62aa={'all':async()=>{var _0x550b69=a4_0x5960,_0x5cf307,_0x3749ba,_0x2d5728,_0x26439e,_0x475734;return((_0x3749ba=(_0x5cf307=this['cache'])===null||_0x5cf307===void 0x0?void 0x0:_0x5cf307[_0x550b69(0x1d7)])===null||_0x3749ba===void 0x0?void 0x0:_0x3749ba[_0x550b69(0x1c4)])=='redis'?(await((_0x475734=(_0x26439e=(_0x2d5728=this===null||this===void 0x0?void 0x0:this[_0x550b69(0x1df)])===null||_0x2d5728===void 0x0?void 0x0:_0x2d5728[_0x550b69(0x1d7)])===null||_0x26439e===void 0x0?void 0x0:_0x26439e[_0x550b69(0x1dd)]())===null||_0x475734===void 0x0?void 0x0:_0x475734['lrange'](this[_0x550b69(0x1c8)]+':'+_0xfb3281,0x0,-0x1))||[])[_0x550b69(0x1ca)](_0x4db3fc=>json_decode(_0x4db3fc)):await this[_0x550b69(0x1e8)](_0xfb3281,[]);},'pop':async()=>{var _0x777164=a4_0x5960,_0x46a162,_0x4a1cdf,_0x311d00,_0x30245e,_0x1f031f;if(((_0x4a1cdf=(_0x46a162=this[_0x777164(0x1df)])===null||_0x46a162===void 0x0?void 0x0:_0x46a162[_0x777164(0x1d7)])===null||_0x4a1cdf===void 0x0?void 0x0:_0x4a1cdf[_0x777164(0x1c4)])==_0x777164(0x1e5))return json_decode(await((_0x1f031f=(_0x30245e=(_0x311d00=this===null||this===void 0x0?void 0x0:this[_0x777164(0x1df)])===null||_0x311d00===void 0x0?void 0x0:_0x311d00[_0x777164(0x1d7)])===null||_0x30245e===void 0x0?void 0x0:_0x30245e[_0x777164(0x1dd)]())===null||_0x1f031f===void 0x0?void 0x0:_0x1f031f['lpop'](this[_0x777164(0x1c8)]+':'+_0xfb3281)));else{let _0x5662ef=await this[_0x777164(0x1e8)](_0xfb3281,[]),_0x2cda1f=_0x5662ef['shift']();return await this[_0x777164(0x1cc)](_0xfb3281,_0x5662ef),_0x2cda1f;}},'push':async(..._0x51d810)=>{var _0x378b55=a4_0x5960,_0x58dfb1,_0x3463ae,_0x506bdf,_0x42e093,_0x15e30e;const _0x38fc13=_0x51d810[_0x378b55(0x201)](_0x171a5e=>_0x171a5e!==undefined&&_0x171a5e!==null);if(((_0x3463ae=(_0x58dfb1=this['cache'])===null||_0x58dfb1===void 0x0?void 0x0:_0x58dfb1['store'])===null||_0x3463ae===void 0x0?void 0x0:_0x3463ae[_0x378b55(0x1c4)])==_0x378b55(0x1e5))return await((_0x15e30e=(_0x42e093=(_0x506bdf=this===null||this===void 0x0?void 0x0:this[_0x378b55(0x1df)])===null||_0x506bdf===void 0x0?void 0x0:_0x506bdf[_0x378b55(0x1d7)])===null||_0x42e093===void 0x0?void 0x0:_0x42e093[_0x378b55(0x1dd)]())===null||_0x15e30e===void 0x0?void 0x0:_0x15e30e[_0x378b55(0x1f6)](this[_0x378b55(0x1c8)]+':'+_0xfb3281,..._0x38fc13['map'](_0x10890e=>json_encode(_0x10890e)))),_0x38fc13;else{let _0x4b794f=await this[_0x378b55(0x1e8)](_0xfb3281,[]);return _0x4b794f['push'](..._0x38fc13),await this[_0x378b55(0x1cc)](_0xfb3281,_0x4b794f),_0x4b794f;}}};return _0xcf62aa;}}exports[a4_0x870b07(0x1c6)]=Cache;function json_encode(_0x12ccb0){var _0x1e698e=a4_0x870b07;try{return JSON[_0x1e698e(0x1db)](_0x12ccb0);}catch(_0xecb676){return undefined;}}function json_decode(_0x303d88){var _0x5d9560=a4_0x870b07;try{return JSON[_0x5d9560(0x1cb)](_0x303d88);}catch(_0x1c72f8){return undefined;}}
1
+ var a4_0x58710f=a4_0x417c;(function(_0x3d4688,_0x2d0141){var _0x4c6af4=a4_0x417c,_0x39d5fe=_0x3d4688();while(!![]){try{var _0x5613c9=parseInt(_0x4c6af4(0xee))/0x1*(-parseInt(_0x4c6af4(0xed))/0x2)+parseInt(_0x4c6af4(0xf8))/0x3+-parseInt(_0x4c6af4(0xc6))/0x4*(-parseInt(_0x4c6af4(0xec))/0x5)+parseInt(_0x4c6af4(0xe3))/0x6+-parseInt(_0x4c6af4(0xca))/0x7*(-parseInt(_0x4c6af4(0xea))/0x8)+parseInt(_0x4c6af4(0xe2))/0x9*(parseInt(_0x4c6af4(0xe0))/0xa)+parseInt(_0x4c6af4(0xcf))/0xb*(-parseInt(_0x4c6af4(0xd9))/0xc);if(_0x5613c9===_0x2d0141)break;else _0x39d5fe['push'](_0x39d5fe['shift']());}catch(_0x5ac8a3){_0x39d5fe['push'](_0x39d5fe['shift']());}}}(a4_0x59fb,0xc2057));var a4_0x11d736=(function(){var _0x3591d0=!![];return function(_0x57808f,_0x5902b4){var _0x18aef8=_0x3591d0?function(){if(_0x5902b4){var _0x57057b=_0x5902b4['apply'](_0x57808f,arguments);return _0x5902b4=null,_0x57057b;}}:function(){};return _0x3591d0=![],_0x18aef8;};}()),a4_0x439274=a4_0x11d736(this,function(){var _0x2f32f9=a4_0x417c;return a4_0x439274[_0x2f32f9(0xbc)]()[_0x2f32f9(0xda)]('(((.+)+)+)+$')[_0x2f32f9(0xbc)]()[_0x2f32f9(0xcd)](a4_0x439274)[_0x2f32f9(0xda)](_0x2f32f9(0xdc));});function a4_0x417c(_0x46ff0f,_0x3b73db){var _0x33232f=a4_0x59fb();return a4_0x417c=function(_0x439274,_0x11d736){_0x439274=_0x439274-0xba;var _0x59fbeb=_0x33232f[_0x439274];return _0x59fbeb;},a4_0x417c(_0x46ff0f,_0x3b73db);}a4_0x439274();'use strict';var __decorate=this&&this['__decorate']||function(_0x5529ae,_0x297241,_0x5619ad,_0x54de4b){var _0x50fcd9=a4_0x417c,_0x2c4021=arguments[_0x50fcd9(0xe8)],_0x317374=_0x2c4021<0x3?_0x297241:_0x54de4b===null?_0x54de4b=Object[_0x50fcd9(0xf2)](_0x297241,_0x5619ad):_0x54de4b,_0x5744bf;if(typeof Reflect==='object'&&typeof Reflect[_0x50fcd9(0xe9)]===_0x50fcd9(0xc7))_0x317374=Reflect['decorate'](_0x5529ae,_0x297241,_0x5619ad,_0x54de4b);else{for(var _0x5c04b5=_0x5529ae[_0x50fcd9(0xe8)]-0x1;_0x5c04b5>=0x0;_0x5c04b5--)if(_0x5744bf=_0x5529ae[_0x5c04b5])_0x317374=(_0x2c4021<0x3?_0x5744bf(_0x317374):_0x2c4021>0x3?_0x5744bf(_0x297241,_0x5619ad,_0x317374):_0x5744bf(_0x297241,_0x5619ad))||_0x317374;}return _0x2c4021>0x3&&_0x317374&&Object[_0x50fcd9(0xd2)](_0x297241,_0x5619ad,_0x317374),_0x317374;},__metadata=this&&this['__metadata']||function(_0x4efd23,_0x57c09e){var _0x5d507d=a4_0x417c;if(typeof Reflect===_0x5d507d(0xba)&&typeof Reflect[_0x5d507d(0xbd)]===_0x5d507d(0xc7))return Reflect[_0x5d507d(0xbd)](_0x4efd23,_0x57c09e);};function a4_0x59fb(){var _0x9135c1=['150918GGqTty','object','hdel','toString','metadata','ScopeEnum','Singleton','cache','prefix','name','map','file','Cache','328fzVsjh','function','parse','lrange','4245829NTqoeW','clients','CacheService','constructor','catch','291247cFvKqz','hset','Scope','defineProperty','__esModule','store','options','lpop','use','config','444BovVUS','search','prototype','(((.+)+)+)+$','stores','json_encode','list','9996060aBkdWB','getClient','9ZKRlrE','1157040rvGOgK','undefined','cache-manager','push','design:type','length','decorate','16CtzoMA','get','18130xBxPHb','4rYUqfy','489409cKOhFQ','stringify','reset','set','getOwnPropertyDescriptor','Config','shift','redis','filter','hget'];a4_0x59fb=function(){return _0x9135c1;};return a4_0x59fb();}Object[a4_0x58710f(0xd2)](exports,a4_0x58710f(0xd3),{'value':!![]}),exports[a4_0x58710f(0xc5)]=exports[a4_0x58710f(0xcc)]=void 0x0,exports[a4_0x58710f(0xde)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require(a4_0x58710f(0xe5)),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x4ece39=a4_0x58710f;this[_0x4ece39(0xc0)]=undefined,this[_0x4ece39(0xcb)]=new Map();}[a4_0x58710f(0xd7)](_0x33c543){var _0x2ddf64=a4_0x58710f,_0x4695d9,_0x59c329;if(!this['cache']){const _0x5970d6=((_0x4695d9=this[_0x2ddf64(0xd8)]['stores'])===null||_0x4695d9===void 0x0?void 0x0:_0x4695d9[(_0x59c329=this[_0x2ddf64(0xd8)])===null||_0x59c329===void 0x0?void 0x0:_0x59c329['default']])||this[_0x2ddf64(0xd8)][_0x2ddf64(0xdd)][_0x2ddf64(0xc4)];this['cache']=cacheManager['caching']({..._0x5970d6[_0x2ddf64(0xd5)],'store':_0x5970d6[_0x2ddf64(0xd4)]});}return!this[_0x2ddf64(0xcb)]['has'](_0x33c543)&&this[_0x2ddf64(0xcb)][_0x2ddf64(0xf1)](_0x33c543,new Cache(_0x33c543,this[_0x2ddf64(0xc0)])),this[_0x2ddf64(0xcb)][_0x2ddf64(0xeb)](_0x33c543);}async['reset'](){var _0xe014d6=a4_0x58710f;return await this[_0xe014d6(0xc0)][_0xe014d6(0xf0)]();}};exports[a4_0x58710f(0xcc)]=CacheService,__decorate([(0x0,core_1[a4_0x58710f(0xf3)])('cache'),__metadata(a4_0x58710f(0xe7),Object)],CacheService[a4_0x58710f(0xdb)],'config',void 0x0),exports[a4_0x58710f(0xcc)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x58710f(0xd1)])(core_1[a4_0x58710f(0xbe)][a4_0x58710f(0xbf)])],CacheService);class Cache{constructor(_0x4e7605,_0x2fa44d){var _0x3c35a1=a4_0x58710f;this[_0x3c35a1(0xc0)]=_0x2fa44d,this[_0x3c35a1(0xc1)]=_0x4e7605;}async['del'](_0x4ea85b){var _0x363ecc=a4_0x58710f;return await this[_0x363ecc(0xc0)]['del'](this[_0x363ecc(0xc1)]+':'+_0x4ea85b);}async['set'](_0x3622c2,_0x390b42,_0x2e3058){var _0x955611=a4_0x58710f,_0x1b276a,_0x1c0faf;return((_0x1c0faf=(_0x1b276a=this['cache'])===null||_0x1b276a===void 0x0?void 0x0:_0x1b276a[_0x955611(0xd4)])===null||_0x1c0faf===void 0x0?void 0x0:_0x1c0faf[_0x955611(0xc2)])==_0x955611(0xf5)?await this['cache'][_0x955611(0xf1)](this['prefix']+':'+_0x3622c2,_0x390b42,{'ttl':_0x2e3058}):await this[_0x955611(0xc0)][_0x955611(0xf1)](this[_0x955611(0xc1)]+':'+_0x3622c2,_0x390b42,{'ttl':_0x2e3058});}async['get'](_0x58bc10,_0x61b3b5,_0x5b6d98){return new Promise((_0x304553,_0x33def9)=>{var _0x2e2643=a4_0x417c;this[_0x2e2643(0xc0)][_0x2e2643(0xeb)](this[_0x2e2643(0xc1)]+':'+_0x58bc10,async(_0x4aed81,_0x1c28c5)=>{var _0x16d423=_0x2e2643;_0x4aed81?_0x33def9(_0x4aed81):((_0x1c28c5===undefined||_0x1c28c5===null)&&(typeof _0x61b3b5==_0x16d423(0xc7)?(_0x1c28c5=await _0x61b3b5()[_0x16d423(0xce)](_0x2d94d5=>_0x33def9(_0x2d94d5)),typeof _0x1c28c5!=_0x16d423(0xe4)&&await this[_0x16d423(0xf1)](_0x58bc10,_0x1c28c5,_0x5b6d98)):_0x1c28c5=_0x61b3b5),_0x304553(_0x1c28c5));});});}async[a4_0x58710f(0xbb)](_0x5f0972,_0x4d53c3){return await this['del'](_0x5f0972+'#'+_0x4d53c3);}async[a4_0x58710f(0xd0)](_0x20bf89,_0x4caddf,_0x9346d2,_0x29cdda){var _0xaed78f=a4_0x58710f;return await this[_0xaed78f(0xf1)](_0x20bf89+'#'+_0x4caddf,_0x9346d2,_0x29cdda);}async[a4_0x58710f(0xf7)](_0x430302,_0x480b7d,_0xfd1dc5,_0x139e2b){var _0x238845=a4_0x58710f;return await this[_0x238845(0xeb)](_0x430302+'#'+_0x480b7d,_0xfd1dc5,_0x139e2b);}[a4_0x58710f(0xdf)](_0x353610){const _0x3a8e57={'all':async()=>{var _0x166a47=a4_0x417c,_0x14ba5c,_0x30f5c2,_0x1bdd98,_0xd78247,_0x6ed5a0;return((_0x30f5c2=(_0x14ba5c=this[_0x166a47(0xc0)])===null||_0x14ba5c===void 0x0?void 0x0:_0x14ba5c[_0x166a47(0xd4)])===null||_0x30f5c2===void 0x0?void 0x0:_0x30f5c2[_0x166a47(0xc2)])=='redis'?(await((_0x6ed5a0=(_0xd78247=(_0x1bdd98=this===null||this===void 0x0?void 0x0:this[_0x166a47(0xc0)])===null||_0x1bdd98===void 0x0?void 0x0:_0x1bdd98[_0x166a47(0xd4)])===null||_0xd78247===void 0x0?void 0x0:_0xd78247['getClient']())===null||_0x6ed5a0===void 0x0?void 0x0:_0x6ed5a0[_0x166a47(0xc9)](this[_0x166a47(0xc1)]+':'+_0x353610,0x0,-0x1))||[])[_0x166a47(0xc3)](_0x5828b8=>json_decode(_0x5828b8)):await this[_0x166a47(0xeb)](_0x353610,[]);},'pop':async()=>{var _0x25177f=a4_0x417c,_0x41f659,_0x8c0945,_0x5c99d2,_0x2ef741,_0x800bad;if(((_0x8c0945=(_0x41f659=this[_0x25177f(0xc0)])===null||_0x41f659===void 0x0?void 0x0:_0x41f659[_0x25177f(0xd4)])===null||_0x8c0945===void 0x0?void 0x0:_0x8c0945[_0x25177f(0xc2)])=='redis')return json_decode(await((_0x800bad=(_0x2ef741=(_0x5c99d2=this===null||this===void 0x0?void 0x0:this[_0x25177f(0xc0)])===null||_0x5c99d2===void 0x0?void 0x0:_0x5c99d2[_0x25177f(0xd4)])===null||_0x2ef741===void 0x0?void 0x0:_0x2ef741[_0x25177f(0xe1)]())===null||_0x800bad===void 0x0?void 0x0:_0x800bad[_0x25177f(0xd6)](this[_0x25177f(0xc1)]+':'+_0x353610)));else{let _0x8102b2=await this[_0x25177f(0xeb)](_0x353610,[]),_0x5d0d5e=_0x8102b2[_0x25177f(0xf4)]();return await this[_0x25177f(0xf1)](_0x353610,_0x8102b2),_0x5d0d5e;}},'push':async(..._0x52e7d9)=>{var _0x511ff0=a4_0x417c,_0x215df3,_0x29e7bd,_0x4d81d9,_0x4e4d9c,_0x163f36;const _0x372232=_0x52e7d9[_0x511ff0(0xf6)](_0x582e09=>_0x582e09!==undefined&&_0x582e09!==null);if(((_0x29e7bd=(_0x215df3=this['cache'])===null||_0x215df3===void 0x0?void 0x0:_0x215df3[_0x511ff0(0xd4)])===null||_0x29e7bd===void 0x0?void 0x0:_0x29e7bd[_0x511ff0(0xc2)])=='redis')return await((_0x163f36=(_0x4e4d9c=(_0x4d81d9=this===null||this===void 0x0?void 0x0:this[_0x511ff0(0xc0)])===null||_0x4d81d9===void 0x0?void 0x0:_0x4d81d9[_0x511ff0(0xd4)])===null||_0x4e4d9c===void 0x0?void 0x0:_0x4e4d9c['getClient']())===null||_0x163f36===void 0x0?void 0x0:_0x163f36['rpush'](this[_0x511ff0(0xc1)]+':'+_0x353610,..._0x372232[_0x511ff0(0xc3)](_0x3b09a1=>json_encode(_0x3b09a1)))),_0x372232;else{let _0x3f3a39=await this[_0x511ff0(0xeb)](_0x353610,[]);return _0x3f3a39[_0x511ff0(0xe6)](..._0x372232),await this[_0x511ff0(0xf1)](_0x353610,_0x3f3a39),_0x3f3a39;}}};return _0x3a8e57;}}exports[a4_0x58710f(0xc5)]=Cache;function json_encode(_0x8cccd6){var _0x594932=a4_0x58710f;try{return JSON[_0x594932(0xef)](_0x8cccd6);}catch(_0x3c46d6){return undefined;}}function json_decode(_0x3ad152){var _0x1aedf1=a4_0x58710f;try{return JSON[_0x1aedf1(0xc8)](_0x3ad152);}catch(_0x381fa1){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.74",
3
+ "version": "3.4.76",
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": "b4c2396d06c7c9d1a9a09af00347740e86cefe45"
26
+ "gitHead": "29b322388d16f711203574a00286cc2175b396a6"
27
27
  }