@anncic-api/cache 3.4.75 → 3.4.77

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_0x4df94c=a0_0x1697;(function(_0x45d24a,_0x4927db){const _0x274ef6=a0_0x1697,_0x1925fe=_0x45d24a();while(!![]){try{const _0x103dbc=-parseInt(_0x274ef6(0x1ba))/0x1+-parseInt(_0x274ef6(0x1bf))/0x2*(parseInt(_0x274ef6(0x1b8))/0x3)+-parseInt(_0x274ef6(0x1bc))/0x4+-parseInt(_0x274ef6(0x1c2))/0x5*(parseInt(_0x274ef6(0x1c0))/0x6)+parseInt(_0x274ef6(0x1c9))/0x7+parseInt(_0x274ef6(0x1c4))/0x8*(-parseInt(_0x274ef6(0x1c8))/0x9)+parseInt(_0x274ef6(0x1bd))/0xa*(parseInt(_0x274ef6(0x1c6))/0xb);if(_0x103dbc===_0x4927db)break;else _0x1925fe['push'](_0x1925fe['shift']());}catch(_0x1045d8){_0x1925fe['push'](_0x1925fe['shift']());}}}(a0_0x3cee,0xe4a22));const a0_0x4f522c=(function(){let _0x4f059d=!![];return function(_0x236d09,_0x2b296c){const _0xf44e21=_0x4f059d?function(){const _0x1c9e7f=a0_0x1697;if(_0x2b296c){const _0x4c49bc=_0x2b296c[_0x1c9e7f(0x1b3)](_0x236d09,arguments);return _0x2b296c=null,_0x4c49bc;}}:function(){};return _0x4f059d=![],_0xf44e21;};}()),a0_0x32b0ed=a0_0x4f522c(this,function(){const _0x38e52a=a0_0x1697;return a0_0x32b0ed['toString']()['search'](_0x38e52a(0x1c3))[_0x38e52a(0x1c7)]()[_0x38e52a(0x1b4)](a0_0x32b0ed)[_0x38e52a(0x1b6)](_0x38e52a(0x1c3));});function a0_0x3cee(){const _0x3ae79e=['7757015JAIyhp','(((.+)+)+)+$','624vOzTdy','env','44ZMUcgf','toString','169920NXZtOM','6788418lTmdlW','__esModule','apply','constructor','memory','search','cache-manager-ioredis','75yLZQNK','defineProperty','420335rPPKjM','default','6849428WJqGir','14450920yvnVJS','/runtime/.cache','52554IDfLHY','6PqtJwf','appDir'];a0_0x3cee=function(){return _0x3ae79e;};return a0_0x3cee();}a0_0x32b0ed();'use strict';function a0_0x1697(_0x2be59b,_0x382fd4){const _0x3e7990=a0_0x3cee();return a0_0x1697=function(_0x32b0ed,_0x4f522c){_0x32b0ed=_0x32b0ed-0x1b2;let _0x3ceeef=_0x3e7990[_0x32b0ed];return _0x3ceeef;},a0_0x1697(_0x2be59b,_0x382fd4);}Object[a0_0x4df94c(0x1b9)](exports,a0_0x4df94c(0x1b2),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x4df94c(0x1b7));exports[a0_0x4df94c(0x1bb)]=_0x3636db=>{const _0x59129e=a0_0x4df94c;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x3636db[_0x59129e(0x1c1)]+_0x59129e(0x1be)+((_0x3636db===null||_0x3636db===void 0x0?void 0x0:_0x3636db[_0x59129e(0x1c5)])?'-'+_0x3636db['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x3636db['name']+':'+((_0x3636db===null||_0x3636db===void 0x0?void 0x0:_0x3636db[_0x59129e(0x1c5)])?_0x3636db['env']+':':'')}},'memory':{'store':_0x59129e(0x1b5),'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_0xcf8a7=a1_0x5b17;(function(_0x2a374e,_0x5292cf){var _0x39365b=a1_0x5b17,_0x158e8a=_0x2a374e();while(!![]){try{var _0x4cb6ab=-parseInt(_0x39365b(0xc5))/0x1+parseInt(_0x39365b(0xd0))/0x2+parseInt(_0x39365b(0xbc))/0x3*(parseInt(_0x39365b(0xc7))/0x4)+-parseInt(_0x39365b(0xc9))/0x5*(parseInt(_0x39365b(0xd2))/0x6)+-parseInt(_0x39365b(0xc4))/0x7*(parseInt(_0x39365b(0xc6))/0x8)+-parseInt(_0x39365b(0xca))/0x9+-parseInt(_0x39365b(0xcd))/0xa*(-parseInt(_0x39365b(0xd3))/0xb);if(_0x4cb6ab===_0x5292cf)break;else _0x158e8a['push'](_0x158e8a['shift']());}catch(_0x3c7ae3){_0x158e8a['push'](_0x158e8a['shift']());}}}(a1_0x29e7,0x2f311));var a1_0x30a583=(function(){var _0x399e80=!![];return function(_0x35415f,_0x1e14ac){var _0x44341c=_0x399e80?function(){var _0x62808d=a1_0x5b17;if(_0x1e14ac){var _0x438f0c=_0x1e14ac[_0x62808d(0xc8)](_0x35415f,arguments);return _0x1e14ac=null,_0x438f0c;}}:function(){};return _0x399e80=![],_0x44341c;};}()),a1_0x1abfcc=a1_0x30a583(this,function(){var _0x29b0e2=a1_0x5b17;return a1_0x1abfcc['toString']()[_0x29b0e2(0xba)](_0x29b0e2(0xbb))[_0x29b0e2(0xc2)]()[_0x29b0e2(0xc1)](a1_0x1abfcc)[_0x29b0e2(0xba)](_0x29b0e2(0xbb));});a1_0x1abfcc();function a1_0x5b17(_0x2a1e21,_0x35febb){var _0x44e41e=a1_0x29e7();return a1_0x5b17=function(_0x1abfcc,_0x30a583){_0x1abfcc=_0x1abfcc-0xba;var _0x29e731=_0x44e41e[_0x1abfcc];return _0x29e731;},a1_0x5b17(_0x2a1e21,_0x35febb);}'use strict';function a1_0x29e7(){var _0x35353c=['24hBwYKi','8hsEAUh','apply','745hToTNk','2806047edBdpj','anncic-api:cache','__esModule','310EVEmxA','defineProperty','__decorate','346720BZKDaJ','length','10734eitsrI','215347BeSWzA','object','search','(((.+)+)+)+$','392052ZmVsii','@midwayjs/core','./config/config.default','getOwnPropertyDescriptor','CustomConfiguration','constructor','toString','Configuration','178521rOBgeJ','193465NPYZoQ'];a1_0x29e7=function(){return _0x35353c;};return a1_0x29e7();}var __decorate=this&&this[a1_0xcf8a7(0xcf)]||function(_0x2b87f1,_0x2f29f6,_0x14a391,_0x19bc9c){var _0x5c109a=a1_0xcf8a7,_0x171271=arguments[_0x5c109a(0xd1)],_0x26496d=_0x171271<0x3?_0x2f29f6:_0x19bc9c===null?_0x19bc9c=Object[_0x5c109a(0xbf)](_0x2f29f6,_0x14a391):_0x19bc9c,_0x702353;if(typeof Reflect===_0x5c109a(0xd4)&&typeof Reflect['decorate']==='function')_0x26496d=Reflect['decorate'](_0x2b87f1,_0x2f29f6,_0x14a391,_0x19bc9c);else{for(var _0x4cf3f7=_0x2b87f1[_0x5c109a(0xd1)]-0x1;_0x4cf3f7>=0x0;_0x4cf3f7--)if(_0x702353=_0x2b87f1[_0x4cf3f7])_0x26496d=(_0x171271<0x3?_0x702353(_0x26496d):_0x171271>0x3?_0x702353(_0x2f29f6,_0x14a391,_0x26496d):_0x702353(_0x2f29f6,_0x14a391))||_0x26496d;}return _0x171271>0x3&&_0x26496d&&Object[_0x5c109a(0xce)](_0x2f29f6,_0x14a391,_0x26496d),_0x26496d;};Object['defineProperty'](exports,a1_0xcf8a7(0xcc),{'value':!![]}),exports[a1_0xcf8a7(0xc0)]=void 0x0;const core_1=require(a1_0xcf8a7(0xbd)),ConfigDefault=require(a1_0xcf8a7(0xbe));let CustomConfiguration=class CustomConfiguration{};exports[a1_0xcf8a7(0xc0)]=CustomConfiguration,exports[a1_0xcf8a7(0xc0)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0xcf8a7(0xc3)])({'conflictCheck':![],'namespace':a1_0xcf8a7(0xcb),'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_0x20e02f=a2_0x4a7e;(function(_0x212aa3,_0x304940){const _0x25aa33=a2_0x4a7e,_0xb40dc0=_0x212aa3();while(!![]){try{const _0x46bffd=parseInt(_0x25aa33(0x7c))/0x1*(parseInt(_0x25aa33(0x84))/0x2)+-parseInt(_0x25aa33(0x71))/0x3*(parseInt(_0x25aa33(0x7e))/0x4)+parseInt(_0x25aa33(0x7b))/0x5*(-parseInt(_0x25aa33(0x6e))/0x6)+parseInt(_0x25aa33(0x74))/0x7+parseInt(_0x25aa33(0x7f))/0x8*(-parseInt(_0x25aa33(0x70))/0x9)+parseInt(_0x25aa33(0x72))/0xa*(-parseInt(_0x25aa33(0x6d))/0xb)+parseInt(_0x25aa33(0x85))/0xc;if(_0x46bffd===_0x304940)break;else _0xb40dc0['push'](_0xb40dc0['shift']());}catch(_0xaa1324){_0xb40dc0['push'](_0xb40dc0['shift']());}}}(a2_0x1c91,0x84ddf));function a2_0x4a7e(_0x5a86a6,_0x887cfa){const _0x486882=a2_0x1c91();return a2_0x4a7e=function(_0x344f1b,_0x8102a7){_0x344f1b=_0x344f1b-0x6c;let _0x1c91b5=_0x486882[_0x344f1b];return _0x1c91b5;},a2_0x4a7e(_0x5a86a6,_0x887cfa);}const a2_0x8102a7=(function(){let _0x60b61b=!![];return function(_0x1ec451,_0x76a8b6){const _0x3c7e5f=_0x60b61b?function(){if(_0x76a8b6){const _0x60a0e8=_0x76a8b6['apply'](_0x1ec451,arguments);return _0x76a8b6=null,_0x60a0e8;}}:function(){};return _0x60b61b=![],_0x3c7e5f;};}()),a2_0x344f1b=a2_0x8102a7(this,function(){const _0x5dbe4a=a2_0x4a7e;return a2_0x344f1b[_0x5dbe4a(0x7d)]()[_0x5dbe4a(0x88)](_0x5dbe4a(0x75))[_0x5dbe4a(0x7d)]()['constructor'](a2_0x344f1b)['search'](_0x5dbe4a(0x75));});a2_0x344f1b();'use strict';Object[a2_0x20e02f(0x81)](exports,a2_0x20e02f(0x7a),{'value':!![]}),exports[a2_0x20e02f(0x83)]=Cache;const crypto_js_1=require(a2_0x20e02f(0x78)),CacheService_1=require(a2_0x20e02f(0x76)),core_1=require('@midwayjs/core');function json_encode(_0x2c53a0){const _0x418a16=a2_0x20e02f;try{return JSON[_0x418a16(0x86)](_0x2c53a0);}catch(_0x5ba507){return undefined;}}function a2_0x1c91(){const _0x41c38d=['802398UlvrPX','2894990lMWtMV','MD5','3831086eVRibW','(((.+)+)+)+$','../service/CacheService','Method::Decorator','crypto-js','REQUEST_OBJ_CTX_KEY','__esModule','15fVszeE','1lglLpB','toString','4FQpNcq','848DwZLPN','getApplicationContext','defineProperty','app','Cache','1783892UGANlc','10470036klbILg','stringify','parse','search','set','value','use','11bQpegc','1806954uqAoNf','apply','26073WuJjMZ'];a2_0x1c91=function(){return _0x41c38d;};return a2_0x1c91();}function Cache(_0x360c75,_0x5a15d6){return(_0x2c12d2,_0x74f1d9,_0x26c285)=>{const _0x22e156=a2_0x4a7e,_0x238ad2=_0x26c285[_0x22e156(0x8a)];return _0x26c285['value']=async function(..._0x42db2d){const _0x27ae23=_0x22e156;_0x360c75=(_0x360c75?''+_0x360c75:''+(_0x74f1d9||''))+'.'+(0x0,crypto_js_1[_0x27ae23(0x73)])(json_encode(_0x42db2d))[_0x27ae23(0x7d)]();let _0x562d82=await this[core_1[_0x27ae23(0x79)]][_0x27ae23(0x82)][_0x27ae23(0x80)]()['getAsync'](CacheService_1['CacheService']),_0x1fec59=await _0x562d82['use']('Method::Decorator')['get'](_0x360c75);if(_0x1fec59)return JSON[_0x27ae23(0x87)](_0x1fec59);else _0x1fec59=await _0x238ad2[_0x27ae23(0x6f)](this,[..._0x42db2d]),await _0x562d82[_0x27ae23(0x6c)](_0x27ae23(0x77))[_0x27ae23(0x89)](_0x360c75,JSON[_0x27ae23(0x86)](_0x1fec59),_0x5a15d6);return _0x1fec59;},_0x26c285;};}
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_0x5d160b=a3_0x5567;(function(_0x3bb873,_0x1518aa){var _0x30199a=a3_0x5567,_0x5621a3=_0x3bb873();while(!![]){try{var _0x4bc87f=parseInt(_0x30199a(0xd7))/0x1+parseInt(_0x30199a(0xd1))/0x2*(-parseInt(_0x30199a(0xc8))/0x3)+-parseInt(_0x30199a(0xd2))/0x4*(-parseInt(_0x30199a(0xcc))/0x5)+parseInt(_0x30199a(0xca))/0x6+-parseInt(_0x30199a(0xd8))/0x7+-parseInt(_0x30199a(0xcd))/0x8+parseInt(_0x30199a(0xd9))/0x9*(parseInt(_0x30199a(0xd4))/0xa);if(_0x4bc87f===_0x1518aa)break;else _0x5621a3['push'](_0x5621a3['shift']());}catch(_0x429f5f){_0x5621a3['push'](_0x5621a3['shift']());}}}(a3_0x3cb2,0x30ba3));var a3_0x3c98b5=(function(){var _0x5dbdab=!![];return function(_0x58dcd1,_0x3895ee){var _0x483fad=_0x5dbdab?function(){var _0x408ee8=a3_0x5567;if(_0x3895ee){var _0x57a76f=_0x3895ee[_0x408ee8(0xc7)](_0x58dcd1,arguments);return _0x3895ee=null,_0x57a76f;}}:function(){};return _0x5dbdab=![],_0x483fad;};}()),a3_0x6f900f=a3_0x3c98b5(this,function(){var _0x2c1ef3=a3_0x5567;return a3_0x6f900f[_0x2c1ef3(0xcb)]()[_0x2c1ef3(0xc4)]('(((.+)+)+)+$')['toString']()[_0x2c1ef3(0xc6)](a3_0x6f900f)[_0x2c1ef3(0xc4)](_0x2c1ef3(0xd5));});function a3_0x3cb2(){var _0x4d6be5=['search','./decorator/Cache','constructor','apply','31755sLlNhS','Cache','2175822uCxzIT','toString','365rfcyrZ','2902496pXfZQw','CacheService','CustomConfiguration','Configuration','32lugCMX','20628rwhhYu','__esModule','13820iwzhEe','(((.+)+)+)+$','defineProperty','126842uuwrDb','987637ZdZiXr','45GjriTc'];a3_0x3cb2=function(){return _0x4d6be5;};return a3_0x3cb2();}a3_0x6f900f();'use strict';Object[a3_0x5d160b(0xd6)](exports,a3_0x5d160b(0xd3),{'value':!![]}),exports[a3_0x5d160b(0xce)]=exports['Cache']=exports[a3_0x5d160b(0xd0)]=void 0x0;var configuration_1=require('./configuration');Object['defineProperty'](exports,a3_0x5d160b(0xd0),{'enumerable':!![],'get':function(){var _0x56651c=a3_0x5d160b;return configuration_1[_0x56651c(0xcf)];}});var Cache_1=require(a3_0x5d160b(0xc5));Object[a3_0x5d160b(0xd6)](exports,a3_0x5d160b(0xc9),{'enumerable':!![],'get':function(){var _0x1a02be=a3_0x5d160b;return Cache_1[_0x1a02be(0xc9)];}});function a3_0x5567(_0x567a39,_0x124c74){var _0x42ae32=a3_0x3cb2();return a3_0x5567=function(_0x6f900f,_0x3c98b5){_0x6f900f=_0x6f900f-0xc4;var _0x3cb22a=_0x42ae32[_0x6f900f];return _0x3cb22a;},a3_0x5567(_0x567a39,_0x124c74);}var CacheService_1=require('./service/CacheService');Object[a3_0x5d160b(0xd6)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x28e74d=a3_0x5d160b;return CacheService_1[_0x28e74d(0xce)];}});
@@ -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_0x19ac74=a4_0x3c4e;function a4_0x3c4e(_0x53dfd9,_0x1abce7){var _0x4b6a61=a4_0x346c();return a4_0x3c4e=function(_0x5cff96,_0xf0342d){_0x5cff96=_0x5cff96-0x74;var _0x346c18=_0x4b6a61[_0x5cff96];return _0x346c18;},a4_0x3c4e(_0x53dfd9,_0x1abce7);}(function(_0x22b254,_0x31b0be){var _0x27f727=a4_0x3c4e,_0x580d71=_0x22b254();while(!![]){try{var _0x596549=parseInt(_0x27f727(0x89))/0x1*(-parseInt(_0x27f727(0x81))/0x2)+parseInt(_0x27f727(0x8a))/0x3*(parseInt(_0x27f727(0xa8))/0x4)+-parseInt(_0x27f727(0x86))/0x5+-parseInt(_0x27f727(0x7c))/0x6*(-parseInt(_0x27f727(0xaa))/0x7)+-parseInt(_0x27f727(0x82))/0x8+-parseInt(_0x27f727(0x8f))/0x9*(parseInt(_0x27f727(0xb0))/0xa)+parseInt(_0x27f727(0x76))/0xb;if(_0x596549===_0x31b0be)break;else _0x580d71['push'](_0x580d71['shift']());}catch(_0x4c3b6d){_0x580d71['push'](_0x580d71['shift']());}}}(a4_0x346c,0xcbbcd));var a4_0xf0342d=(function(){var _0x5713f5=!![];return function(_0x2794fc,_0x42d282){var _0x2a6bb7=_0x5713f5?function(){var _0x3736a9=a4_0x3c4e;if(_0x42d282){var _0x2f19b5=_0x42d282[_0x3736a9(0x77)](_0x2794fc,arguments);return _0x42d282=null,_0x2f19b5;}}:function(){};return _0x5713f5=![],_0x2a6bb7;};}()),a4_0x5cff96=a4_0xf0342d(this,function(){var _0x474316=a4_0x3c4e;return a4_0x5cff96[_0x474316(0xae)]()[_0x474316(0x78)]('(((.+)+)+)+$')[_0x474316(0xae)]()['constructor'](a4_0x5cff96)[_0x474316(0x78)](_0x474316(0x7d));});a4_0x5cff96();'use strict';var __decorate=this&&this['__decorate']||function(_0x58fe8a,_0x4b193f,_0x470852,_0x272a2f){var _0x3f8545=a4_0x3c4e,_0x3ac76f=arguments[_0x3f8545(0xa0)],_0x49d17=_0x3ac76f<0x3?_0x4b193f:_0x272a2f===null?_0x272a2f=Object['getOwnPropertyDescriptor'](_0x4b193f,_0x470852):_0x272a2f,_0x365d5b;if(typeof Reflect===_0x3f8545(0x87)&&typeof Reflect[_0x3f8545(0x90)]===_0x3f8545(0x99))_0x49d17=Reflect['decorate'](_0x58fe8a,_0x4b193f,_0x470852,_0x272a2f);else{for(var _0x536148=_0x58fe8a[_0x3f8545(0xa0)]-0x1;_0x536148>=0x0;_0x536148--)if(_0x365d5b=_0x58fe8a[_0x536148])_0x49d17=(_0x3ac76f<0x3?_0x365d5b(_0x49d17):_0x3ac76f>0x3?_0x365d5b(_0x4b193f,_0x470852,_0x49d17):_0x365d5b(_0x4b193f,_0x470852))||_0x49d17;}return _0x3ac76f>0x3&&_0x49d17&&Object[_0x3f8545(0xaf)](_0x4b193f,_0x470852,_0x49d17),_0x49d17;},__metadata=this&&this['__metadata']||function(_0x475d4c,_0x4b2f4e){var _0x2708a5=a4_0x3c4e;if(typeof Reflect===_0x2708a5(0x87)&&typeof Reflect[_0x2708a5(0xa5)]===_0x2708a5(0x99))return Reflect['metadata'](_0x475d4c,_0x4b2f4e);};Object[a4_0x19ac74(0xaf)](exports,a4_0x19ac74(0x7b),{'value':!![]}),exports[a4_0x19ac74(0x92)]=exports[a4_0x19ac74(0x9b)]=void 0x0,exports[a4_0x19ac74(0x94)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require(a4_0x19ac74(0x85)),core_1=require(a4_0x19ac74(0x8e));let CacheService=class CacheService{constructor(){var _0x3b93ad=a4_0x19ac74;this[_0x3b93ad(0x88)]=undefined,this[_0x3b93ad(0xa4)]=new Map();}[a4_0x19ac74(0x7f)](_0xb7d231){var _0x227e5f=a4_0x19ac74,_0x1f7d90,_0x4d2240;if(!this['cache']){const _0x17696c=((_0x1f7d90=this[_0x227e5f(0x74)][_0x227e5f(0x93)])===null||_0x1f7d90===void 0x0?void 0x0:_0x1f7d90[(_0x4d2240=this[_0x227e5f(0x74)])===null||_0x4d2240===void 0x0?void 0x0:_0x4d2240[_0x227e5f(0x8d)]])||this[_0x227e5f(0x74)][_0x227e5f(0x93)]['file'];this['cache']=cacheManager[_0x227e5f(0x98)]({..._0x17696c['options'],'store':_0x17696c['store']});}return!this['clients']['has'](_0xb7d231)&&this['clients'][_0x227e5f(0xab)](_0xb7d231,new Cache(_0xb7d231,this[_0x227e5f(0x88)])),this['clients']['get'](_0xb7d231);}async[a4_0x19ac74(0x97)](){var _0x19a91c=a4_0x19ac74;return await this[_0x19a91c(0x88)][_0x19a91c(0x97)]();}};exports[a4_0x19ac74(0x9b)]=CacheService,__decorate([(0x0,core_1[a4_0x19ac74(0x9a)])('cache'),__metadata(a4_0x19ac74(0xa7),Object)],CacheService[a4_0x19ac74(0xa6)],a4_0x19ac74(0x74),void 0x0),exports[a4_0x19ac74(0x9b)]=CacheService=__decorate([(0x0,core_1[a4_0x19ac74(0x91)])(),(0x0,core_1[a4_0x19ac74(0x7e)])(core_1[a4_0x19ac74(0xa3)][a4_0x19ac74(0x80)])],CacheService);class Cache{constructor(_0x250729,_0xbaff2){var _0x1e1b86=a4_0x19ac74;this[_0x1e1b86(0x88)]=_0xbaff2,this[_0x1e1b86(0x9d)]=_0x250729;}async[a4_0x19ac74(0xa2)](_0x21dbaf){var _0x2fa6a0=a4_0x19ac74;return await this[_0x2fa6a0(0x88)][_0x2fa6a0(0xa2)](this[_0x2fa6a0(0x9d)]+':'+_0x21dbaf);}async[a4_0x19ac74(0xab)](_0xaf2e58,_0x2bccc7,_0x34481e){var _0x1cedd2=a4_0x19ac74,_0x206bd9,_0xa09265;return((_0xa09265=(_0x206bd9=this[_0x1cedd2(0x88)])===null||_0x206bd9===void 0x0?void 0x0:_0x206bd9[_0x1cedd2(0xa9)])===null||_0xa09265===void 0x0?void 0x0:_0xa09265[_0x1cedd2(0x9e)])==_0x1cedd2(0x8c)?await this['cache'][_0x1cedd2(0xab)](this[_0x1cedd2(0x9d)]+':'+_0xaf2e58,_0x2bccc7,{'ttl':_0x34481e}):await this[_0x1cedd2(0x88)][_0x1cedd2(0xab)](this[_0x1cedd2(0x9d)]+':'+_0xaf2e58,_0x2bccc7,{'ttl':_0x34481e});}async[a4_0x19ac74(0xb1)](_0x503e66,_0x323c99,_0x269056){return new Promise((_0x3b1ca7,_0x1e2c54)=>{var _0x55ed85=a4_0x3c4e;this[_0x55ed85(0x88)][_0x55ed85(0xb1)](this[_0x55ed85(0x9d)]+':'+_0x503e66,async(_0x34ffbf,_0x30d040)=>{var _0x5e0cc5=_0x55ed85;_0x34ffbf?_0x1e2c54(_0x34ffbf):((_0x30d040===undefined||_0x30d040===null)&&(typeof _0x323c99==_0x5e0cc5(0x99)?(_0x30d040=await _0x323c99()[_0x5e0cc5(0x84)](_0x579fdf=>_0x1e2c54(_0x579fdf)),typeof _0x30d040!=_0x5e0cc5(0x9c)&&await this[_0x5e0cc5(0xab)](_0x503e66,_0x30d040,_0x269056)):_0x30d040=_0x323c99),_0x3b1ca7(_0x30d040));});});}async[a4_0x19ac74(0x83)](_0x3278be,_0x14610b){return await this['del'](_0x3278be+'#'+_0x14610b);}async[a4_0x19ac74(0x7a)](_0x5ecf70,_0x401c88,_0x377a48,_0x5a9d13){return await this['set'](_0x5ecf70+'#'+_0x401c88,_0x377a48,_0x5a9d13);}async[a4_0x19ac74(0x96)](_0x2f1b60,_0x179361,_0x5257b5,_0x5ddcf1){var _0x420222=a4_0x19ac74;return await this[_0x420222(0xb1)](_0x2f1b60+'#'+_0x179361,_0x5257b5,_0x5ddcf1);}[a4_0x19ac74(0xa1)](_0x4f8a41){const _0x368d4c={'all':async()=>{var _0x52a8be=a4_0x3c4e,_0x49a599,_0xec33bc,_0x3d64e5,_0x14a194,_0xa199e2;return((_0xec33bc=(_0x49a599=this['cache'])===null||_0x49a599===void 0x0?void 0x0:_0x49a599[_0x52a8be(0xa9)])===null||_0xec33bc===void 0x0?void 0x0:_0xec33bc[_0x52a8be(0x9e)])=='redis'?(await((_0xa199e2=(_0x14a194=(_0x3d64e5=this===null||this===void 0x0?void 0x0:this[_0x52a8be(0x88)])===null||_0x3d64e5===void 0x0?void 0x0:_0x3d64e5['store'])===null||_0x14a194===void 0x0?void 0x0:_0x14a194[_0x52a8be(0x95)]())===null||_0xa199e2===void 0x0?void 0x0:_0xa199e2[_0x52a8be(0xac)](this['prefix']+':'+_0x4f8a41,0x0,-0x1))||[])[_0x52a8be(0x9f)](_0x191a30=>json_decode(_0x191a30)):await this['get'](_0x4f8a41,[]);},'pop':async()=>{var _0xf6ccd3=a4_0x3c4e,_0x33aa88,_0x2da0f5,_0x2480ce,_0x4a4d47,_0x1f1dd5;if(((_0x2da0f5=(_0x33aa88=this[_0xf6ccd3(0x88)])===null||_0x33aa88===void 0x0?void 0x0:_0x33aa88['store'])===null||_0x2da0f5===void 0x0?void 0x0:_0x2da0f5['name'])==_0xf6ccd3(0x8c))return json_decode(await((_0x1f1dd5=(_0x4a4d47=(_0x2480ce=this===null||this===void 0x0?void 0x0:this[_0xf6ccd3(0x88)])===null||_0x2480ce===void 0x0?void 0x0:_0x2480ce[_0xf6ccd3(0xa9)])===null||_0x4a4d47===void 0x0?void 0x0:_0x4a4d47[_0xf6ccd3(0x95)]())===null||_0x1f1dd5===void 0x0?void 0x0:_0x1f1dd5[_0xf6ccd3(0x8b)](this['prefix']+':'+_0x4f8a41)));else{let _0x1747b1=await this[_0xf6ccd3(0xb1)](_0x4f8a41,[]),_0x2b989b=_0x1747b1[_0xf6ccd3(0xad)]();return await this[_0xf6ccd3(0xab)](_0x4f8a41,_0x1747b1),_0x2b989b;}},'push':async(..._0x52c4ed)=>{var _0x40edf9=a4_0x3c4e,_0x5a79ac,_0x350ff8,_0x29dcfb,_0x1726d7,_0x30820f;const _0x4cd29d=_0x52c4ed[_0x40edf9(0x75)](_0x4d4a01=>_0x4d4a01!==undefined&&_0x4d4a01!==null);if(((_0x350ff8=(_0x5a79ac=this[_0x40edf9(0x88)])===null||_0x5a79ac===void 0x0?void 0x0:_0x5a79ac[_0x40edf9(0xa9)])===null||_0x350ff8===void 0x0?void 0x0:_0x350ff8[_0x40edf9(0x9e)])==_0x40edf9(0x8c))return await((_0x30820f=(_0x1726d7=(_0x29dcfb=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x29dcfb===void 0x0?void 0x0:_0x29dcfb['store'])===null||_0x1726d7===void 0x0?void 0x0:_0x1726d7[_0x40edf9(0x95)]())===null||_0x30820f===void 0x0?void 0x0:_0x30820f['rpush'](this[_0x40edf9(0x9d)]+':'+_0x4f8a41,..._0x4cd29d[_0x40edf9(0x9f)](_0x394c26=>json_encode(_0x394c26)))),_0x4cd29d;else{let _0x1dba08=await this[_0x40edf9(0xb1)](_0x4f8a41,[]);return _0x1dba08[_0x40edf9(0x79)](..._0x4cd29d),await this['set'](_0x4f8a41,_0x1dba08),_0x1dba08;}}};return _0x368d4c;}}exports[a4_0x19ac74(0x92)]=Cache;function json_encode(_0x2347ab){try{return JSON['stringify'](_0x2347ab);}catch(_0xf6f7e3){return undefined;}}function json_decode(_0x37ab4a){try{return JSON['parse'](_0x37ab4a);}catch(_0x2c4d78){return undefined;}}function a4_0x346c(){var _0x4ca1db=['43134850bINqgA','apply','search','push','hset','__esModule','6OBBQGd','(((.+)+)+)+$','Scope','use','Singleton','758374BLyoiY','3183968AfWzMR','hdel','catch','cache-manager','6123150eJGhgJ','object','cache','2lrFckY','3OUDeUL','lpop','redis','default','@midwayjs/core','207TbAXqE','decorate','Provide','Cache','stores','json_encode','getClient','hget','reset','caching','function','Config','CacheService','undefined','prefix','name','map','length','list','del','ScopeEnum','clients','metadata','prototype','design:type','940180EQcpXL','store','1000279UqpEgs','set','lrange','shift','toString','defineProperty','471210PZAznr','get','config','filter'];a4_0x346c=function(){return _0x4ca1db;};return a4_0x346c();}
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.77",
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": "d49c9f6dda7c4e858d49a6221b4d7752ac6a938b"
27
27
  }