@anncic-api/cache 3.4.75 → 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_0x4760e8=a0_0x22ae;(function(_0xb952bb,_0x36e354){const _0x2ff40f=a0_0x22ae,_0x3f2c37=_0xb952bb();while(!![]){try{const _0x4699da=-parseInt(_0x2ff40f(0x159))/0x1*(-parseInt(_0x2ff40f(0x157))/0x2)+parseInt(_0x2ff40f(0x167))/0x3*(-parseInt(_0x2ff40f(0x15c))/0x4)+-parseInt(_0x2ff40f(0x162))/0x5+-parseInt(_0x2ff40f(0x16d))/0x6+-parseInt(_0x2ff40f(0x156))/0x7*(-parseInt(_0x2ff40f(0x16c))/0x8)+parseInt(_0x2ff40f(0x164))/0x9*(-parseInt(_0x2ff40f(0x16b))/0xa)+parseInt(_0x2ff40f(0x154))/0xb*(parseInt(_0x2ff40f(0x16a))/0xc);if(_0x4699da===_0x36e354)break;else _0x3f2c37['push'](_0x3f2c37['shift']());}catch(_0x1aab9a){_0x3f2c37['push'](_0x3f2c37['shift']());}}}(a0_0x453b,0x67d10));function a0_0x22ae(_0xa8b8fb,_0x3fd9ba){const _0x2d4937=a0_0x453b();return a0_0x22ae=function(_0x21eea0,_0x3dc572){_0x21eea0=_0x21eea0-0x154;let _0x453b5e=_0x2d4937[_0x21eea0];return _0x453b5e;},a0_0x22ae(_0xa8b8fb,_0x3fd9ba);}const a0_0x3dc572=(function(){let _0x1cbf87=!![];return function(_0x1814fc,_0x38eb53){const _0x49adf1=_0x1cbf87?function(){const _0x3c2c50=a0_0x22ae;if(_0x38eb53){const _0x17e25d=_0x38eb53[_0x3c2c50(0x16e)](_0x1814fc,arguments);return _0x38eb53=null,_0x17e25d;}}:function(){};return _0x1cbf87=![],_0x49adf1;};}()),a0_0x21eea0=a0_0x3dc572(this,function(){const _0x22b508=a0_0x22ae;return a0_0x21eea0[_0x22b508(0x15a)]()['search'](_0x22b508(0x161))[_0x22b508(0x15a)]()[_0x22b508(0x158)](a0_0x21eea0)[_0x22b508(0x168)](_0x22b508(0x161));});a0_0x21eea0();'use strict';Object[a0_0x4760e8(0x15e)](exports,'__esModule',{'value':!![]});function a0_0x453b(){const _0x139780=['18wldsLW','default','file','30OYIQUr','search','appDir','18641712WCSBFH','426200WAwaUa','2395336aKiPTA','4121148GqSoaA','apply','11TcqlBN','cache-manager-ioredis','7sDuABM','21252LJVJEm','constructor','22JWjMDU','toString','memory','192628oFdoSA','127.0.0.1','defineProperty','/runtime/.cache','env','(((.+)+)+)+$','2038825NwBrDT','cache-manager-fs-hash'];a0_0x453b=function(){return _0x139780;};return a0_0x453b();}const fsStore=require(a0_0x4760e8(0x163)),redisStore=require(a0_0x4760e8(0x155));exports[a0_0x4760e8(0x165)]=_0x1e4e2a=>{const _0x40c079=a0_0x4760e8;return{'cache':{'default':_0x40c079(0x166),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x1e4e2a[_0x40c079(0x169)]+_0x40c079(0x15f)+((_0x1e4e2a===null||_0x1e4e2a===void 0x0?void 0x0:_0x1e4e2a[_0x40c079(0x160)])?'-'+_0x1e4e2a[_0x40c079(0x160)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x40c079(0x15d),'password':'','keyPrefix':_0x1e4e2a['name']+':'+((_0x1e4e2a===null||_0x1e4e2a===void 0x0?void 0x0:_0x1e4e2a[_0x40c079(0x160)])?_0x1e4e2a[_0x40c079(0x160)]+':':'')}},'memory':{'store':_0x40c079(0x15b),'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
- var a1_0x4bd8c1=a1_0x29e2;function a1_0x1124(){var _0x268c01=['anncic-api:cache','10tDLlGl','1848diYQYn','15ftCnXN','CustomConfiguration','(((.+)+)+)+$','search','439208dzfDkG','2316048hqhIrY','length','756295xZyUKL','1616724xbpFOL','./config/config.default','toString','__decorate','Configuration','2wshuqv','function','@midwayjs/core','__esModule','defineProperty','6663293NMYKiY','7308FGUIOZ','12586178KejTbH'];a1_0x1124=function(){return _0x268c01;};return a1_0x1124();}(function(_0x5c0bea,_0x3937cf){var _0xdc5b3=a1_0x29e2,_0x1c8ff8=_0x5c0bea();while(!![]){try{var _0x326bc2=parseInt(_0xdc5b3(0x1a2))/0x1*(-parseInt(_0xdc5b3(0x190))/0x2)+parseInt(_0xdc5b3(0x1a0))/0x3+-parseInt(_0xdc5b3(0x19f))/0x4+-parseInt(_0xdc5b3(0x19b))/0x5*(-parseInt(_0xdc5b3(0x1a3))/0x6)+-parseInt(_0xdc5b3(0x195))/0x7+parseInt(_0xdc5b3(0x19a))/0x8*(-parseInt(_0xdc5b3(0x196))/0x9)+parseInt(_0xdc5b3(0x199))/0xa*(parseInt(_0xdc5b3(0x197))/0xb);if(_0x326bc2===_0x3937cf)break;else _0x1c8ff8['push'](_0x1c8ff8['shift']());}catch(_0x47cfef){_0x1c8ff8['push'](_0x1c8ff8['shift']());}}}(a1_0x1124,0xaf8a0));function a1_0x29e2(_0x435dc2,_0x55fd0d){var _0x38a205=a1_0x1124();return a1_0x29e2=function(_0x23c12f,_0xb76662){_0x23c12f=_0x23c12f-0x190;var _0x112472=_0x38a205[_0x23c12f];return _0x112472;},a1_0x29e2(_0x435dc2,_0x55fd0d);}var a1_0xb76662=(function(){var _0x54b7a1=!![];return function(_0x480ba0,_0x2cfd2e){var _0x4a07bc=_0x54b7a1?function(){if(_0x2cfd2e){var _0x34209f=_0x2cfd2e['apply'](_0x480ba0,arguments);return _0x2cfd2e=null,_0x34209f;}}:function(){};return _0x54b7a1=![],_0x4a07bc;};}()),a1_0x23c12f=a1_0xb76662(this,function(){var _0x249aad=a1_0x29e2;return a1_0x23c12f['toString']()[_0x249aad(0x19e)](_0x249aad(0x19d))[_0x249aad(0x1a5)]()['constructor'](a1_0x23c12f)[_0x249aad(0x19e)](_0x249aad(0x19d));});a1_0x23c12f();'use strict';var __decorate=this&&this[a1_0x4bd8c1(0x1a6)]||function(_0x5882aa,_0x5ca8f1,_0x1afe33,_0x117a82){var _0x32cf84=a1_0x4bd8c1,_0x417fef=arguments[_0x32cf84(0x1a1)],_0x3849e6=_0x417fef<0x3?_0x5ca8f1:_0x117a82===null?_0x117a82=Object['getOwnPropertyDescriptor'](_0x5ca8f1,_0x1afe33):_0x117a82,_0x2659f6;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x32cf84(0x191))_0x3849e6=Reflect['decorate'](_0x5882aa,_0x5ca8f1,_0x1afe33,_0x117a82);else{for(var _0x4d00c0=_0x5882aa[_0x32cf84(0x1a1)]-0x1;_0x4d00c0>=0x0;_0x4d00c0--)if(_0x2659f6=_0x5882aa[_0x4d00c0])_0x3849e6=(_0x417fef<0x3?_0x2659f6(_0x3849e6):_0x417fef>0x3?_0x2659f6(_0x5ca8f1,_0x1afe33,_0x3849e6):_0x2659f6(_0x5ca8f1,_0x1afe33))||_0x3849e6;}return _0x417fef>0x3&&_0x3849e6&&Object[_0x32cf84(0x194)](_0x5ca8f1,_0x1afe33,_0x3849e6),_0x3849e6;};Object[a1_0x4bd8c1(0x194)](exports,a1_0x4bd8c1(0x193),{'value':!![]}),exports[a1_0x4bd8c1(0x19c)]=void 0x0;const core_1=require(a1_0x4bd8c1(0x192)),ConfigDefault=require(a1_0x4bd8c1(0x1a4));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x4bd8c1(0x19c)]=CustomConfiguration,exports[a1_0x4bd8c1(0x19c)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x4bd8c1(0x1a7)])({'conflictCheck':![],'namespace':a1_0x4bd8c1(0x198),'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
- function a2_0x594b(_0x445eb5,_0x518a5e){const _0x25a0cb=a2_0x5711();return a2_0x594b=function(_0x4a7ced,_0xa571cc){_0x4a7ced=_0x4a7ced-0x182;let _0x5711e0=_0x25a0cb[_0x4a7ced];return _0x5711e0;},a2_0x594b(_0x445eb5,_0x518a5e);}const a2_0x64cf3=a2_0x594b;(function(_0x2bf5a6,_0x18d11a){const _0x3dcf77=a2_0x594b,_0x8bd075=_0x2bf5a6();while(!![]){try{const _0x5f08e1=parseInt(_0x3dcf77(0x185))/0x1+parseInt(_0x3dcf77(0x18d))/0x2*(parseInt(_0x3dcf77(0x183))/0x3)+-parseInt(_0x3dcf77(0x1a0))/0x4+parseInt(_0x3dcf77(0x186))/0x5+parseInt(_0x3dcf77(0x18c))/0x6+-parseInt(_0x3dcf77(0x18e))/0x7*(-parseInt(_0x3dcf77(0x18b))/0x8)+parseInt(_0x3dcf77(0x18a))/0x9*(-parseInt(_0x3dcf77(0x182))/0xa);if(_0x5f08e1===_0x18d11a)break;else _0x8bd075['push'](_0x8bd075['shift']());}catch(_0x4b75fe){_0x8bd075['push'](_0x8bd075['shift']());}}}(a2_0x5711,0x58752));const a2_0xa571cc=(function(){let _0x5b27bd=!![];return function(_0x33c4e1,_0x3e2d8c){const _0x13f896=_0x5b27bd?function(){if(_0x3e2d8c){const _0x3269e6=_0x3e2d8c['apply'](_0x33c4e1,arguments);return _0x3e2d8c=null,_0x3269e6;}}:function(){};return _0x5b27bd=![],_0x13f896;};}()),a2_0x4a7ced=a2_0xa571cc(this,function(){const _0x4d24b8=a2_0x594b;return a2_0x4a7ced[_0x4d24b8(0x196)]()[_0x4d24b8(0x19f)](_0x4d24b8(0x19e))['toString']()[_0x4d24b8(0x198)](a2_0x4a7ced)[_0x4d24b8(0x19f)](_0x4d24b8(0x19e));});a2_0x4a7ced();'use strict';Object[a2_0x64cf3(0x189)](exports,a2_0x64cf3(0x190),{'value':!![]}),exports[a2_0x64cf3(0x19a)]=Cache;const crypto_js_1=require(a2_0x64cf3(0x19d)),CacheService_1=require(a2_0x64cf3(0x195)),core_1=require(a2_0x64cf3(0x184));function json_encode(_0x18feb7){const _0x2879cf=a2_0x64cf3;try{return JSON[_0x2879cf(0x18f)](_0x18feb7);}catch(_0x185097){return undefined;}}function a2_0x5711(){const _0x51c48b=['511MeHxIM','stringify','__esModule','set','Method::Decorator','get','REQUEST_OBJ_CTX_KEY','../service/CacheService','toString','value','constructor','use','Cache','getApplicationContext','getAsync','crypto-js','(((.+)+)+)+$','search','1511940KauLDH','app','508670Exkgbl','6FBbeED','@midwayjs/core','603244tToKgY','1460595bdeKfV','MD5','parse','defineProperty','243jBGvOk','16984dKjjMh','2242752qYZvWp','689582ByiPXr'];a2_0x5711=function(){return _0x51c48b;};return a2_0x5711();}function Cache(_0x525414,_0x297868){return(_0x5379a9,_0x37e3dc,_0x5eeabc)=>{const _0x54bb38=a2_0x594b,_0x190049=_0x5eeabc[_0x54bb38(0x197)];return _0x5eeabc[_0x54bb38(0x197)]=async function(..._0x1764b6){const _0x43d0e2=_0x54bb38;_0x525414=(_0x525414?''+_0x525414:''+(_0x37e3dc||''))+'.'+(0x0,crypto_js_1[_0x43d0e2(0x187)])(json_encode(_0x1764b6))['toString']();let _0x3baae9=await this[core_1[_0x43d0e2(0x194)]][_0x43d0e2(0x1a1)][_0x43d0e2(0x19b)]()[_0x43d0e2(0x19c)](CacheService_1['CacheService']),_0x253c55=await _0x3baae9['use'](_0x43d0e2(0x192))[_0x43d0e2(0x193)](_0x525414);if(_0x253c55)return JSON[_0x43d0e2(0x188)](_0x253c55);else _0x253c55=await _0x190049['apply'](this,[..._0x1764b6]),await _0x3baae9[_0x43d0e2(0x199)](_0x43d0e2(0x192))[_0x43d0e2(0x191)](_0x525414,JSON[_0x43d0e2(0x18f)](_0x253c55),_0x297868);return _0x253c55;},_0x5eeabc;};}
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
- var a3_0x579c4b=a3_0x21aa;(function(_0x9e4ba5,_0x199457){var _0x39e26f=a3_0x21aa,_0x194106=_0x9e4ba5();while(!![]){try{var _0x582921=parseInt(_0x39e26f(0x1b4))/0x1*(-parseInt(_0x39e26f(0x1af))/0x2)+parseInt(_0x39e26f(0x1b5))/0x3+parseInt(_0x39e26f(0x1ae))/0x4+-parseInt(_0x39e26f(0x1a5))/0x5*(-parseInt(_0x39e26f(0x1a6))/0x6)+-parseInt(_0x39e26f(0x1aa))/0x7+parseInt(_0x39e26f(0x1b2))/0x8*(-parseInt(_0x39e26f(0x1b1))/0x9)+parseInt(_0x39e26f(0x1ab))/0xa;if(_0x582921===_0x199457)break;else _0x194106['push'](_0x194106['shift']());}catch(_0x28ab5e){_0x194106['push'](_0x194106['shift']());}}}(a3_0xc6c6,0xa38e0));var a3_0x2fd986=(function(){var _0x496e32=!![];return function(_0x2b2382,_0x24bf58){var _0x5bd353=_0x496e32?function(){if(_0x24bf58){var _0x1b5071=_0x24bf58['apply'](_0x2b2382,arguments);return _0x24bf58=null,_0x1b5071;}}:function(){};return _0x496e32=![],_0x5bd353;};}()),a3_0x43ff78=a3_0x2fd986(this,function(){var _0x451147=a3_0x21aa;return a3_0x43ff78['toString']()[_0x451147(0x1a9)](_0x451147(0x1a4))[_0x451147(0x1b6)]()['constructor'](a3_0x43ff78)[_0x451147(0x1a9)](_0x451147(0x1a4));});a3_0x43ff78();'use strict';Object['defineProperty'](exports,a3_0x579c4b(0x1ad),{'value':!![]}),exports['CacheService']=exports[a3_0x579c4b(0x1a8)]=exports[a3_0x579c4b(0x1a7)]=void 0x0;var configuration_1=require(a3_0x579c4b(0x1b0));Object[a3_0x579c4b(0x1b3)](exports,a3_0x579c4b(0x1a7),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,a3_0x579c4b(0x1a8),{'enumerable':!![],'get':function(){var _0xb9364f=a3_0x579c4b;return Cache_1[_0xb9364f(0x1a8)];}});function a3_0x21aa(_0x2a51e3,_0x39162c){var _0x3e9022=a3_0xc6c6();return a3_0x21aa=function(_0x43ff78,_0x2fd986){_0x43ff78=_0x43ff78-0x1a4;var _0xc6c6a3=_0x3e9022[_0x43ff78];return _0xc6c6a3;},a3_0x21aa(_0x2a51e3,_0x39162c);}function a3_0xc6c6(){var _0x48e001=['172735RLOovy','6zEUbco','Configuration','Cache','search','9092734TaaNHW','11033380bPhqKF','CacheService','__esModule','5301908XneTvj','2mZIivv','./configuration','8899461KskKHU','8EMTuIu','defineProperty','526007kUITRP','3061068oBfivZ','toString','(((.+)+)+)+$'];a3_0xc6c6=function(){return _0x48e001;};return a3_0xc6c6();}var CacheService_1=require('./service/CacheService');Object[a3_0x579c4b(0x1b3)](exports,a3_0x579c4b(0x1ac),{'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_0x2f8492=a4_0x24f8;(function(_0x455ddc,_0x3966de){var _0x415179=a4_0x24f8,_0x376c72=_0x455ddc();while(!![]){try{var _0x280abe=parseInt(_0x415179(0xec))/0x1*(parseInt(_0x415179(0xd9))/0x2)+parseInt(_0x415179(0xef))/0x3+parseInt(_0x415179(0xd8))/0x4+parseInt(_0x415179(0x102))/0x5*(-parseInt(_0x415179(0x103))/0x6)+parseInt(_0x415179(0x111))/0x7+parseInt(_0x415179(0xd7))/0x8*(parseInt(_0x415179(0xd6))/0x9)+-parseInt(_0x415179(0x10f))/0xa;if(_0x280abe===_0x3966de)break;else _0x376c72['push'](_0x376c72['shift']());}catch(_0x191a31){_0x376c72['push'](_0x376c72['shift']());}}}(a4_0x455d,0xda7df));var a4_0xf5d0e8=(function(){var _0x1e80f9=!![];return function(_0x368166,_0x3c0840){var _0x311434=_0x1e80f9?function(){if(_0x3c0840){var _0x1f6be5=_0x3c0840['apply'](_0x368166,arguments);return _0x3c0840=null,_0x1f6be5;}}:function(){};return _0x1e80f9=![],_0x311434;};}()),a4_0x55e1fd=a4_0xf5d0e8(this,function(){var _0x236fb3=a4_0x24f8;return a4_0x55e1fd[_0x236fb3(0xf7)]()['search']('(((.+)+)+)+$')[_0x236fb3(0xf7)]()[_0x236fb3(0xf5)](a4_0x55e1fd)[_0x236fb3(0xdc)](_0x236fb3(0xfa));});a4_0x55e1fd();function a4_0x24f8(_0x4e64ad,_0x1c4e85){var _0x3a3c0b=a4_0x455d();return a4_0x24f8=function(_0x55e1fd,_0xf5d0e8){_0x55e1fd=_0x55e1fd-0xd4;var _0x455d60=_0x3a3c0b[_0x55e1fd];return _0x455d60;},a4_0x24f8(_0x4e64ad,_0x1c4e85);}'use strict';var __decorate=this&&this[a4_0x2f8492(0xfd)]||function(_0x2ba370,_0x5ba248,_0x2bf3a1,_0x20553d){var _0x3cf7fa=a4_0x2f8492,_0x9697f3=arguments[_0x3cf7fa(0xe4)],_0x5e4302=_0x9697f3<0x3?_0x5ba248:_0x20553d===null?_0x20553d=Object[_0x3cf7fa(0xe9)](_0x5ba248,_0x2bf3a1):_0x20553d,_0x5141f8;if(typeof Reflect===_0x3cf7fa(0x100)&&typeof Reflect[_0x3cf7fa(0xe8)]===_0x3cf7fa(0xdf))_0x5e4302=Reflect[_0x3cf7fa(0xe8)](_0x2ba370,_0x5ba248,_0x2bf3a1,_0x20553d);else{for(var _0x1ee66e=_0x2ba370[_0x3cf7fa(0xe4)]-0x1;_0x1ee66e>=0x0;_0x1ee66e--)if(_0x5141f8=_0x2ba370[_0x1ee66e])_0x5e4302=(_0x9697f3<0x3?_0x5141f8(_0x5e4302):_0x9697f3>0x3?_0x5141f8(_0x5ba248,_0x2bf3a1,_0x5e4302):_0x5141f8(_0x5ba248,_0x2bf3a1))||_0x5e4302;}return _0x9697f3>0x3&&_0x5e4302&&Object['defineProperty'](_0x5ba248,_0x2bf3a1,_0x5e4302),_0x5e4302;},__metadata=this&&this[a4_0x2f8492(0xf2)]||function(_0x496229,_0x760cc1){var _0x25c40c=a4_0x2f8492;if(typeof Reflect==='object'&&typeof Reflect[_0x25c40c(0xe0)]===_0x25c40c(0xdf))return Reflect[_0x25c40c(0xe0)](_0x496229,_0x760cc1);};Object['defineProperty'](exports,a4_0x2f8492(0x107),{'value':!![]}),exports[a4_0x2f8492(0x108)]=exports[a4_0x2f8492(0xda)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x2f8492(0xfb)]=json_decode;const cacheManager=require(a4_0x2f8492(0xea)),core_1=require(a4_0x2f8492(0xed));let CacheService=class CacheService{constructor(){var _0x254945=a4_0x2f8492;this[_0x254945(0xf1)]=undefined,this['clients']=new Map();}[a4_0x2f8492(0xff)](_0x5ef8ea){var _0x5ba8f0=a4_0x2f8492,_0x48af9a,_0x2be5d6;if(!this['cache']){const _0x394e33=((_0x48af9a=this['config'][_0x5ba8f0(0xfc)])===null||_0x48af9a===void 0x0?void 0x0:_0x48af9a[(_0x2be5d6=this[_0x5ba8f0(0x10c)])===null||_0x2be5d6===void 0x0?void 0x0:_0x2be5d6[_0x5ba8f0(0x10b)]])||this[_0x5ba8f0(0x10c)][_0x5ba8f0(0xfc)][_0x5ba8f0(0x10a)];this['cache']=cacheManager[_0x5ba8f0(0x110)]({..._0x394e33[_0x5ba8f0(0x109)],'store':_0x394e33[_0x5ba8f0(0xe3)]});}return!this['clients']['has'](_0x5ef8ea)&&this[_0x5ba8f0(0xde)][_0x5ba8f0(0xd5)](_0x5ef8ea,new Cache(_0x5ef8ea,this['cache'])),this[_0x5ba8f0(0xde)][_0x5ba8f0(0x10d)](_0x5ef8ea);}async[a4_0x2f8492(0x105)](){return await this['cache']['reset']();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x2f8492(0xf3)])(a4_0x2f8492(0xf1)),__metadata(a4_0x2f8492(0xf0),Object)],CacheService['prototype'],'config',void 0x0),exports[a4_0x2f8492(0xda)]=CacheService=__decorate([(0x0,core_1[a4_0x2f8492(0xe5)])(),(0x0,core_1['Scope'])(core_1[a4_0x2f8492(0xeb)][a4_0x2f8492(0xdd)])],CacheService);class Cache{constructor(_0x50a01d,_0x21d751){var _0xb4cf49=a4_0x2f8492;this[_0xb4cf49(0xf1)]=_0x21d751,this[_0xb4cf49(0xf9)]=_0x50a01d;}async['del'](_0x5471b9){var _0x33d874=a4_0x2f8492;return await this[_0x33d874(0xf1)]['del'](this['prefix']+':'+_0x5471b9);}async[a4_0x2f8492(0xd5)](_0xf10024,_0x2c3a84,_0x2ddac9){var _0x23b952=a4_0x2f8492,_0x282746,_0x56e0c5;return((_0x56e0c5=(_0x282746=this[_0x23b952(0xf1)])===null||_0x282746===void 0x0?void 0x0:_0x282746[_0x23b952(0xe3)])===null||_0x56e0c5===void 0x0?void 0x0:_0x56e0c5[_0x23b952(0xee)])==_0x23b952(0xe6)?await this['cache'][_0x23b952(0xd5)](this['prefix']+':'+_0xf10024,_0x2c3a84,{'ttl':_0x2ddac9}):await this['cache']['set'](this['prefix']+':'+_0xf10024,_0x2c3a84,{'ttl':_0x2ddac9});}async['get'](_0x1cce1d,_0x40d706,_0x3edb82){return new Promise((_0x57ac14,_0x2a9199)=>{var _0x538edc=a4_0x24f8;this[_0x538edc(0xf1)]['get'](this[_0x538edc(0xf9)]+':'+_0x1cce1d,async(_0x4e138e,_0x5ddb49)=>{var _0x5c085e=_0x538edc;_0x4e138e?_0x2a9199(_0x4e138e):((_0x5ddb49===undefined||_0x5ddb49===null)&&(typeof _0x40d706==_0x5c085e(0xdf)?(_0x5ddb49=await _0x40d706()['catch'](_0x328f10=>_0x2a9199(_0x328f10)),typeof _0x5ddb49!=_0x5c085e(0xfe)&&await this[_0x5c085e(0xd5)](_0x1cce1d,_0x5ddb49,_0x3edb82)):_0x5ddb49=_0x40d706),_0x57ac14(_0x5ddb49));});});}async[a4_0x2f8492(0xf4)](_0x2b06fe,_0x1b1aaa){return await this['del'](_0x2b06fe+'#'+_0x1b1aaa);}async['hset'](_0x30c460,_0x641fbb,_0x2037d8,_0x65ba2c){var _0xc969e3=a4_0x2f8492;return await this[_0xc969e3(0xd5)](_0x30c460+'#'+_0x641fbb,_0x2037d8,_0x65ba2c);}async[a4_0x2f8492(0xe2)](_0x9db62f,_0x300d44,_0x3515d8,_0x471f19){var _0x465d84=a4_0x2f8492;return await this[_0x465d84(0x10d)](_0x9db62f+'#'+_0x300d44,_0x3515d8,_0x471f19);}[a4_0x2f8492(0xd4)](_0x4bc804){const _0x9b5b10={'all':async()=>{var _0x12211a=a4_0x24f8,_0x70074,_0x27f773,_0x3a380c,_0x1201b6,_0x51f729;return((_0x27f773=(_0x70074=this['cache'])===null||_0x70074===void 0x0?void 0x0:_0x70074[_0x12211a(0xe3)])===null||_0x27f773===void 0x0?void 0x0:_0x27f773['name'])==_0x12211a(0xe6)?(await((_0x51f729=(_0x1201b6=(_0x3a380c=this===null||this===void 0x0?void 0x0:this[_0x12211a(0xf1)])===null||_0x3a380c===void 0x0?void 0x0:_0x3a380c[_0x12211a(0xe3)])===null||_0x1201b6===void 0x0?void 0x0:_0x1201b6[_0x12211a(0xe1)]())===null||_0x51f729===void 0x0?void 0x0:_0x51f729[_0x12211a(0x101)](this[_0x12211a(0xf9)]+':'+_0x4bc804,0x0,-0x1))||[])[_0x12211a(0x104)](_0x4e1bc5=>json_decode(_0x4e1bc5)):await this['get'](_0x4bc804,[]);},'pop':async()=>{var _0x4ff3b4=a4_0x24f8,_0x49c2e2,_0x4e4b5a,_0x44c8d2,_0x4cf700,_0x1fcc29;if(((_0x4e4b5a=(_0x49c2e2=this[_0x4ff3b4(0xf1)])===null||_0x49c2e2===void 0x0?void 0x0:_0x49c2e2['store'])===null||_0x4e4b5a===void 0x0?void 0x0:_0x4e4b5a['name'])==_0x4ff3b4(0xe6))return json_decode(await((_0x1fcc29=(_0x4cf700=(_0x44c8d2=this===null||this===void 0x0?void 0x0:this[_0x4ff3b4(0xf1)])===null||_0x44c8d2===void 0x0?void 0x0:_0x44c8d2[_0x4ff3b4(0xe3)])===null||_0x4cf700===void 0x0?void 0x0:_0x4cf700[_0x4ff3b4(0xe1)]())===null||_0x1fcc29===void 0x0?void 0x0:_0x1fcc29[_0x4ff3b4(0xf6)](this[_0x4ff3b4(0xf9)]+':'+_0x4bc804)));else{let _0x4250ee=await this['get'](_0x4bc804,[]),_0x268a79=_0x4250ee[_0x4ff3b4(0x10e)]();return await this['set'](_0x4bc804,_0x4250ee),_0x268a79;}},'push':async(..._0x10b56a)=>{var _0x5962c1=a4_0x24f8,_0x539422,_0x2b4b1c,_0x3be200,_0x59a424,_0x1898cc;const _0x28628e=_0x10b56a[_0x5962c1(0xf8)](_0x59f2dd=>_0x59f2dd!==undefined&&_0x59f2dd!==null);if(((_0x2b4b1c=(_0x539422=this[_0x5962c1(0xf1)])===null||_0x539422===void 0x0?void 0x0:_0x539422['store'])===null||_0x2b4b1c===void 0x0?void 0x0:_0x2b4b1c['name'])==_0x5962c1(0xe6))return await((_0x1898cc=(_0x59a424=(_0x3be200=this===null||this===void 0x0?void 0x0:this[_0x5962c1(0xf1)])===null||_0x3be200===void 0x0?void 0x0:_0x3be200['store'])===null||_0x59a424===void 0x0?void 0x0:_0x59a424['getClient']())===null||_0x1898cc===void 0x0?void 0x0:_0x1898cc['rpush'](this[_0x5962c1(0xf9)]+':'+_0x4bc804,..._0x28628e[_0x5962c1(0x104)](_0x5dcb42=>json_encode(_0x5dcb42)))),_0x28628e;else{let _0x4ead43=await this['get'](_0x4bc804,[]);return _0x4ead43[_0x5962c1(0xe7)](..._0x28628e),await this[_0x5962c1(0xd5)](_0x4bc804,_0x4ead43),_0x4ead43;}}};return _0x9b5b10;}}exports[a4_0x2f8492(0x108)]=Cache;function json_encode(_0x299d60){var _0x307ec8=a4_0x2f8492;try{return JSON[_0x307ec8(0xdb)](_0x299d60);}catch(_0x91f6bc){return undefined;}}function json_decode(_0x102188){var _0x17af9f=a4_0x2f8492;try{return JSON[_0x17af9f(0x106)](_0x102188);}catch(_0x1d927f){return undefined;}}function a4_0x455d(){var _0x11ae33=['hdel','constructor','lpop','toString','filter','prefix','(((.+)+)+)+$','json_decode','stores','__decorate','undefined','use','object','lrange','5HnldSh','1141914FshZmU','map','reset','parse','__esModule','Cache','options','file','default','config','get','shift','51387800PfrAEK','caching','12424041YUOdzg','list','set','9eBreVt','9577640ZTRbUB','3739728GJsgiz','4urlkpS','CacheService','stringify','search','Singleton','clients','function','metadata','getClient','hget','store','length','Provide','redis','push','decorate','getOwnPropertyDescriptor','cache-manager','ScopeEnum','455803OgVDlg','@midwayjs/core','name','4216308gTQCNl','design:type','cache','__metadata','Config'];a4_0x455d=function(){return _0x11ae33;};return a4_0x455d();}
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.75",
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": "f738c7fc9842494643cb1f9e0f517ef0756a784f"
26
+ "gitHead": "29b322388d16f711203574a00286cc2175b396a6"
27
27
  }