@anncic-api/cache 3.4.78 → 3.4.80

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_0x3b4f09=a0_0x1e87;(function(_0x4abd86,_0xca6faa){const _0x3076d2=a0_0x1e87,_0x4891a5=_0x4abd86();while(!![]){try{const _0x4250fb=-parseInt(_0x3076d2(0xd8))/0x1*(parseInt(_0x3076d2(0xdb))/0x2)+-parseInt(_0x3076d2(0xca))/0x3*(parseInt(_0x3076d2(0xc8))/0x4)+parseInt(_0x3076d2(0xd7))/0x5+-parseInt(_0x3076d2(0xd6))/0x6+parseInt(_0x3076d2(0xd2))/0x7*(parseInt(_0x3076d2(0xda))/0x8)+-parseInt(_0x3076d2(0xcf))/0x9*(parseInt(_0x3076d2(0xd5))/0xa)+parseInt(_0x3076d2(0xce))/0xb;if(_0x4250fb===_0xca6faa)break;else _0x4891a5['push'](_0x4891a5['shift']());}catch(_0x54cc26){_0x4891a5['push'](_0x4891a5['shift']());}}}(a0_0x15f7,0xe5140));function a0_0x15f7(){const _0xc8fa85=['127.0.0.1','constructor','toString','memory','search','4628olcYsZ','file','819vUNeLO','__esModule','name','default','37808936TymfpX','13536630iFfEfx','cache-manager-ioredis','appDir','180404XMaShv','defineProperty','env','10WzgQNO','9690678prUTVB','7609610YsWbAG','1pfDbcA','(((.+)+)+)+$','32qtWrVk','1377676iwTCIT'];a0_0x15f7=function(){return _0xc8fa85;};return a0_0x15f7();}function a0_0x1e87(_0x204e47,_0x2839b5){const _0x1ba5da=a0_0x15f7();return a0_0x1e87=function(_0x5a0e16,_0x325d91){_0x5a0e16=_0x5a0e16-0xc3;let _0x15f79a=_0x1ba5da[_0x5a0e16];return _0x15f79a;},a0_0x1e87(_0x204e47,_0x2839b5);}const a0_0x325d91=(function(){let _0xf1d799=!![];return function(_0x24f21d,_0x3f2c0d){const _0x4b0e88=_0xf1d799?function(){if(_0x3f2c0d){const _0x1c0641=_0x3f2c0d['apply'](_0x24f21d,arguments);return _0x3f2c0d=null,_0x1c0641;}}:function(){};return _0xf1d799=![],_0x4b0e88;};}()),a0_0x5a0e16=a0_0x325d91(this,function(){const _0x107927=a0_0x1e87;return a0_0x5a0e16[_0x107927(0xc5)]()[_0x107927(0xc7)](_0x107927(0xd9))['toString']()[_0x107927(0xc4)](a0_0x5a0e16)[_0x107927(0xc7)]('(((.+)+)+)+$');});a0_0x5a0e16();'use strict';Object[a0_0x3b4f09(0xd3)](exports,a0_0x3b4f09(0xcb),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x3b4f09(0xd0));exports[a0_0x3b4f09(0xcd)]=_0x12fab4=>{const _0xf9e4bf=a0_0x3b4f09;return{'cache':{'default':_0xf9e4bf(0xc9),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x12fab4[_0xf9e4bf(0xd1)]+'/runtime/.cache'+((_0x12fab4===null||_0x12fab4===void 0x0?void 0x0:_0x12fab4[_0xf9e4bf(0xd4)])?'-'+_0x12fab4[_0xf9e4bf(0xd4)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0xf9e4bf(0xc3),'password':'','keyPrefix':_0x12fab4[_0xf9e4bf(0xcc)]+':'+((_0x12fab4===null||_0x12fab4===void 0x0?void 0x0:_0x12fab4['env'])?_0x12fab4['env']+':':'')}},'memory':{'store':_0xf9e4bf(0xc6),'options':{'max':0x64}}}}};};
1
+ const a0_0x33285f=a0_0x17c1;function a0_0x1a84(){const _0x41918b=['(((.+)+)+)+$','file','cache-manager-fs-hash','appDir','1467804swfNYL','335139JEQSJP','100MkFzKD','10rqRjJt','335819UOrmDG','toString','env','defineProperty','name','apply','127.0.0.1','1690770iKKLYT','4BGBAwF','1eUelhm','7616637PhLjLR','constructor','1482882cqQKRp','40HiiCWa','cache-manager-ioredis','search','5235936wLHKbY'];a0_0x1a84=function(){return _0x41918b;};return a0_0x1a84();}function a0_0x17c1(_0x352f3e,_0x1478e3){const _0x5a71c5=a0_0x1a84();return a0_0x17c1=function(_0x374d7f,_0x1d579c){_0x374d7f=_0x374d7f-0x104;let _0x1a84fb=_0x5a71c5[_0x374d7f];return _0x1a84fb;},a0_0x17c1(_0x352f3e,_0x1478e3);}(function(_0x2970b8,_0xe90e4f){const _0x3dc5f1=a0_0x17c1,_0x43eaa7=_0x2970b8();while(!![]){try{const _0xaa408=parseInt(_0x3dc5f1(0x118))/0x1*(parseInt(_0x3dc5f1(0x11b))/0x2)+parseInt(_0x3dc5f1(0x116))/0x3*(parseInt(_0x3dc5f1(0x117))/0x4)+parseInt(_0x3dc5f1(0x10e))/0x5*(parseInt(_0x3dc5f1(0x10b))/0x6)+-parseInt(_0x3dc5f1(0x10c))/0x7*(-parseInt(_0x3dc5f1(0x11c))/0x8)+-parseInt(_0x3dc5f1(0x119))/0x9+parseInt(_0x3dc5f1(0x10d))/0xa*(-parseInt(_0x3dc5f1(0x10f))/0xb)+-parseInt(_0x3dc5f1(0x106))/0xc;if(_0xaa408===_0xe90e4f)break;else _0x43eaa7['push'](_0x43eaa7['shift']());}catch(_0x4eacf3){_0x43eaa7['push'](_0x43eaa7['shift']());}}}(a0_0x1a84,0x6cd4d));const a0_0x1d579c=(function(){let _0x508e9c=!![];return function(_0x332884,_0x581b4){const _0x38771c=_0x508e9c?function(){const _0x476bab=a0_0x17c1;if(_0x581b4){const _0x43dfc0=_0x581b4[_0x476bab(0x114)](_0x332884,arguments);return _0x581b4=null,_0x43dfc0;}}:function(){};return _0x508e9c=![],_0x38771c;};}()),a0_0x374d7f=a0_0x1d579c(this,function(){const _0x4a30ec=a0_0x17c1;return a0_0x374d7f['toString']()[_0x4a30ec(0x105)](_0x4a30ec(0x107))[_0x4a30ec(0x110)]()[_0x4a30ec(0x11a)](a0_0x374d7f)[_0x4a30ec(0x105)](_0x4a30ec(0x107));});a0_0x374d7f();'use strict';Object[a0_0x33285f(0x112)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x33285f(0x109)),redisStore=require(a0_0x33285f(0x104));exports['default']=_0xfe00e1=>{const _0x1d723e=a0_0x33285f;return{'cache':{'default':_0x1d723e(0x108),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0xfe00e1[_0x1d723e(0x10a)]+'/runtime/.cache'+((_0xfe00e1===null||_0xfe00e1===void 0x0?void 0x0:_0xfe00e1['env'])?'-'+_0xfe00e1['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x1d723e(0x115),'password':'','keyPrefix':_0xfe00e1[_0x1d723e(0x113)]+':'+((_0xfe00e1===null||_0xfe00e1===void 0x0?void 0x0:_0xfe00e1[_0x1d723e(0x111)])?_0xfe00e1[_0x1d723e(0x111)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x255bc9=a1_0x581b;(function(_0x196316,_0x1a5b09){var _0x6043c=a1_0x581b,_0x4843ae=_0x196316();while(!![]){try{var _0x9ab7ec=-parseInt(_0x6043c(0x169))/0x1+-parseInt(_0x6043c(0x15c))/0x2*(parseInt(_0x6043c(0x165))/0x3)+-parseInt(_0x6043c(0x16a))/0x4+-parseInt(_0x6043c(0x161))/0x5+parseInt(_0x6043c(0x159))/0x6+parseInt(_0x6043c(0x167))/0x7+parseInt(_0x6043c(0x162))/0x8;if(_0x9ab7ec===_0x1a5b09)break;else _0x4843ae['push'](_0x4843ae['shift']());}catch(_0x54c847){_0x4843ae['push'](_0x4843ae['shift']());}}}(a1_0x3be2,0x20242));function a1_0x3be2(){var _0x4aeb31=['length','decorate','(((.+)+)+)+$','constructor','74868daPllf','toString','object','18732pfqoiX','@midwayjs/core','__esModule','./config/config.default','__decorate','34595zAncWW','2872152JcawYt','search','getOwnPropertyDescriptor','30zmKWrq','Configuration','10031FZJotK','CustomConfiguration','4930nzMGbF','543084FksdGj','apply','anncic-api:cache','defineProperty'];a1_0x3be2=function(){return _0x4aeb31;};return a1_0x3be2();}var a1_0xbe4b10=(function(){var _0xfda071=!![];return function(_0x4fe5ba,_0x149763){var _0x190939=_0xfda071?function(){var _0x1d2a1a=a1_0x581b;if(_0x149763){var _0x516783=_0x149763[_0x1d2a1a(0x16b)](_0x4fe5ba,arguments);return _0x149763=null,_0x516783;}}:function(){};return _0xfda071=![],_0x190939;};}()),a1_0x517be9=a1_0xbe4b10(this,function(){var _0xc3857c=a1_0x581b;return a1_0x517be9[_0xc3857c(0x15a)]()[_0xc3857c(0x163)](_0xc3857c(0x170))[_0xc3857c(0x15a)]()[_0xc3857c(0x158)](a1_0x517be9)[_0xc3857c(0x163)](_0xc3857c(0x170));});function a1_0x581b(_0x4685ea,_0x1992b0){var _0x253c96=a1_0x3be2();return a1_0x581b=function(_0x517be9,_0xbe4b10){_0x517be9=_0x517be9-0x158;var _0x3be280=_0x253c96[_0x517be9];return _0x3be280;},a1_0x581b(_0x4685ea,_0x1992b0);}a1_0x517be9();'use strict';var __decorate=this&&this[a1_0x255bc9(0x160)]||function(_0x506bb0,_0x359069,_0x1e00e5,_0x391d90){var _0x3dd379=a1_0x255bc9,_0x5c2c6b=arguments['length'],_0x56799e=_0x5c2c6b<0x3?_0x359069:_0x391d90===null?_0x391d90=Object[_0x3dd379(0x164)](_0x359069,_0x1e00e5):_0x391d90,_0x10fb59;if(typeof Reflect===_0x3dd379(0x15b)&&typeof Reflect['decorate']==='function')_0x56799e=Reflect[_0x3dd379(0x16f)](_0x506bb0,_0x359069,_0x1e00e5,_0x391d90);else{for(var _0x222a55=_0x506bb0[_0x3dd379(0x16e)]-0x1;_0x222a55>=0x0;_0x222a55--)if(_0x10fb59=_0x506bb0[_0x222a55])_0x56799e=(_0x5c2c6b<0x3?_0x10fb59(_0x56799e):_0x5c2c6b>0x3?_0x10fb59(_0x359069,_0x1e00e5,_0x56799e):_0x10fb59(_0x359069,_0x1e00e5))||_0x56799e;}return _0x5c2c6b>0x3&&_0x56799e&&Object[_0x3dd379(0x16d)](_0x359069,_0x1e00e5,_0x56799e),_0x56799e;};Object['defineProperty'](exports,a1_0x255bc9(0x15e),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x255bc9(0x15d)),ConfigDefault=require(a1_0x255bc9(0x15f));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x255bc9(0x168)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x255bc9(0x166)])({'conflictCheck':![],'namespace':a1_0x255bc9(0x16c),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x12844e=a1_0x5bb7;function a1_0x5bb7(_0x34631a,_0x2252df){var _0x2db921=a1_0x190c();return a1_0x5bb7=function(_0x32fabb,_0x15241c){_0x32fabb=_0x32fabb-0x146;var _0x190c1e=_0x2db921[_0x32fabb];return _0x190c1e;},a1_0x5bb7(_0x34631a,_0x2252df);}function a1_0x190c(){var _0x1818d1=['530439HXgpDR','Configuration','CustomConfiguration','168252ONImFe','1820286QEwHca','./config/config.default','311760bxAGyE','length','44552YajYdB','235660KBEepN','defineProperty','search','getOwnPropertyDescriptor','2rzRgsK','(((.+)+)+)+$','25UKQCGG','__esModule','35FqjRBk','anncic-api:cache','117133cBxDHC','decorate','constructor','toString'];a1_0x190c=function(){return _0x1818d1;};return a1_0x190c();}(function(_0x51c9d7,_0x283f75){var _0x5c8d74=a1_0x5bb7,_0x23b7ad=_0x51c9d7();while(!![]){try{var _0x33ad63=parseInt(_0x5c8d74(0x149))/0x1*(-parseInt(_0x5c8d74(0x15a))/0x2)+parseInt(_0x5c8d74(0x14d))/0x3+parseInt(_0x5c8d74(0x156))/0x4+-parseInt(_0x5c8d74(0x15c))/0x5*(parseInt(_0x5c8d74(0x150))/0x6)+parseInt(_0x5c8d74(0x147))/0x7*(-parseInt(_0x5c8d74(0x155))/0x8)+parseInt(_0x5c8d74(0x151))/0x9+-parseInt(_0x5c8d74(0x153))/0xa;if(_0x33ad63===_0x283f75)break;else _0x23b7ad['push'](_0x23b7ad['shift']());}catch(_0x5c00fa){_0x23b7ad['push'](_0x23b7ad['shift']());}}}(a1_0x190c,0x1db12));var a1_0x15241c=(function(){var _0x5c8528=!![];return function(_0x19f059,_0x602495){var _0x4350f6=_0x5c8528?function(){if(_0x602495){var _0x4efff8=_0x602495['apply'](_0x19f059,arguments);return _0x602495=null,_0x4efff8;}}:function(){};return _0x5c8528=![],_0x4350f6;};}()),a1_0x32fabb=a1_0x15241c(this,function(){var _0x5172e5=a1_0x5bb7;return a1_0x32fabb['toString']()[_0x5172e5(0x158)](_0x5172e5(0x15b))[_0x5172e5(0x14c)]()[_0x5172e5(0x14b)](a1_0x32fabb)[_0x5172e5(0x158)]('(((.+)+)+)+$');});a1_0x32fabb();'use strict';var __decorate=this&&this['__decorate']||function(_0x47922c,_0x485600,_0x3a6d5b,_0x13867f){var _0x5864d2=a1_0x5bb7,_0x322d97=arguments[_0x5864d2(0x154)],_0x97988b=_0x322d97<0x3?_0x485600:_0x13867f===null?_0x13867f=Object[_0x5864d2(0x159)](_0x485600,_0x3a6d5b):_0x13867f,_0x19c05c;if(typeof Reflect==='object'&&typeof Reflect[_0x5864d2(0x14a)]==='function')_0x97988b=Reflect[_0x5864d2(0x14a)](_0x47922c,_0x485600,_0x3a6d5b,_0x13867f);else{for(var _0x3df291=_0x47922c[_0x5864d2(0x154)]-0x1;_0x3df291>=0x0;_0x3df291--)if(_0x19c05c=_0x47922c[_0x3df291])_0x97988b=(_0x322d97<0x3?_0x19c05c(_0x97988b):_0x322d97>0x3?_0x19c05c(_0x485600,_0x3a6d5b,_0x97988b):_0x19c05c(_0x485600,_0x3a6d5b))||_0x97988b;}return _0x322d97>0x3&&_0x97988b&&Object[_0x5864d2(0x157)](_0x485600,_0x3a6d5b,_0x97988b),_0x97988b;};Object[a1_0x12844e(0x157)](exports,a1_0x12844e(0x146),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x12844e(0x152));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x12844e(0x14f)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x12844e(0x14e)])({'conflictCheck':![],'namespace':a1_0x12844e(0x148),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0xb15a60=a2_0x22db;(function(_0x519bf7,_0x262893){const _0x69f785=a2_0x22db,_0x325407=_0x519bf7();while(!![]){try{const _0x1f72bb=parseInt(_0x69f785(0xa9))/0x1*(parseInt(_0x69f785(0xba))/0x2)+parseInt(_0x69f785(0xa6))/0x3*(-parseInt(_0x69f785(0xbc))/0x4)+-parseInt(_0x69f785(0xaa))/0x5*(-parseInt(_0x69f785(0xbd))/0x6)+-parseInt(_0x69f785(0xb2))/0x7*(-parseInt(_0x69f785(0xae))/0x8)+parseInt(_0x69f785(0xbf))/0x9+parseInt(_0x69f785(0xb4))/0xa+parseInt(_0x69f785(0xb6))/0xb*(-parseInt(_0x69f785(0xab))/0xc);if(_0x1f72bb===_0x262893)break;else _0x325407['push'](_0x325407['shift']());}catch(_0x3459d0){_0x325407['push'](_0x325407['shift']());}}}(a2_0x24c9,0x9b6c8));function a2_0x24c9(){const _0x12041b=['MD5','7PnigoQ','CacheService','4585350LgWVdT','(((.+)+)+)+$','440FtQgXf','toString','crypto-js','REQUEST_OBJ_CTX_KEY','754EzpbuS','use','598292Sotmos','20688BatqTs','stringify','226071PzmIAt','defineProperty','apply','get','3aLAPSB','Method::Decorator','search','1915aMVCrk','1040uKFIhH','378336MOWlho','set','app','996128uubbEe','value','getApplicationContext'];a2_0x24c9=function(){return _0x12041b;};return a2_0x24c9();}const a2_0x1b0a7c=(function(){let _0x3de4d5=!![];return function(_0x34cb82,_0x31cfd4){const _0x366e59=_0x3de4d5?function(){if(_0x31cfd4){const _0x3b6801=_0x31cfd4['apply'](_0x34cb82,arguments);return _0x31cfd4=null,_0x3b6801;}}:function(){};return _0x3de4d5=![],_0x366e59;};}()),a2_0x430cac=a2_0x1b0a7c(this,function(){const _0x422d07=a2_0x22db;return a2_0x430cac[_0x422d07(0xb7)]()[_0x422d07(0xa8)](_0x422d07(0xb5))[_0x422d07(0xb7)]()['constructor'](a2_0x430cac)['search'](_0x422d07(0xb5));});a2_0x430cac();function a2_0x22db(_0x57c9ad,_0x2b5d3d){const _0x1a180c=a2_0x24c9();return a2_0x22db=function(_0x430cac,_0x1b0a7c){_0x430cac=_0x430cac-0xa5;let _0x24c960=_0x1a180c[_0x430cac];return _0x24c960;},a2_0x22db(_0x57c9ad,_0x2b5d3d);}'use strict';Object[a2_0xb15a60(0xc0)](exports,'__esModule',{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require(a2_0xb15a60(0xb8)),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function json_encode(_0x3b2250){const _0x25bf51=a2_0xb15a60;try{return JSON[_0x25bf51(0xbe)](_0x3b2250);}catch(_0x44a271){return undefined;}}function Cache(_0x36d90a,_0x5029d7){return(_0x2b398d,_0x201e80,_0x4b4e72)=>{const _0xa678b9=a2_0x22db,_0x558771=_0x4b4e72[_0xa678b9(0xaf)];return _0x4b4e72[_0xa678b9(0xaf)]=async function(..._0x73c1db){const _0x3ece52=_0xa678b9;_0x36d90a=(_0x36d90a?''+_0x36d90a:''+(_0x201e80||''))+'.'+(0x0,crypto_js_1[_0x3ece52(0xb1)])(json_encode(_0x73c1db))[_0x3ece52(0xb7)]();let _0x165f8d=await this[core_1[_0x3ece52(0xb9)]][_0x3ece52(0xad)][_0x3ece52(0xb0)]()['getAsync'](CacheService_1[_0x3ece52(0xb3)]),_0x13fc16=await _0x165f8d[_0x3ece52(0xbb)](_0x3ece52(0xa7))[_0x3ece52(0xa5)](_0x36d90a);if(_0x13fc16)return JSON['parse'](_0x13fc16);else _0x13fc16=await _0x558771[_0x3ece52(0xc1)](this,[..._0x73c1db]),await _0x165f8d[_0x3ece52(0xbb)](_0x3ece52(0xa7))[_0x3ece52(0xac)](_0x36d90a,JSON[_0x3ece52(0xbe)](_0x13fc16),_0x5029d7);return _0x13fc16;},_0x4b4e72;};}
1
+ const a2_0x4c5f19=a2_0x5619;(function(_0x445739,_0x3252fc){const _0x371afb=a2_0x5619,_0x4ccb97=_0x445739();while(!![]){try{const _0x470617=-parseInt(_0x371afb(0x11f))/0x1+-parseInt(_0x371afb(0x124))/0x2*(-parseInt(_0x371afb(0x116))/0x3)+-parseInt(_0x371afb(0x121))/0x4*(-parseInt(_0x371afb(0x114))/0x5)+-parseInt(_0x371afb(0x123))/0x6*(parseInt(_0x371afb(0x119))/0x7)+-parseInt(_0x371afb(0x125))/0x8*(-parseInt(_0x371afb(0x127))/0x9)+-parseInt(_0x371afb(0x12d))/0xa+-parseInt(_0x371afb(0x11a))/0xb*(-parseInt(_0x371afb(0x115))/0xc);if(_0x470617===_0x3252fc)break;else _0x4ccb97['push'](_0x4ccb97['shift']());}catch(_0x22e4db){_0x4ccb97['push'](_0x4ccb97['shift']());}}}(a2_0xbb8e,0x2de69));const a2_0x43fb54=(function(){let _0x1282fc=!![];return function(_0x65c471,_0x1ce326){const _0x144ea7=_0x1282fc?function(){const _0x3e1863=a2_0x5619;if(_0x1ce326){const _0x47ddec=_0x1ce326[_0x3e1863(0x129)](_0x65c471,arguments);return _0x1ce326=null,_0x47ddec;}}:function(){};return _0x1282fc=![],_0x144ea7;};}()),a2_0x5a055e=a2_0x43fb54(this,function(){const _0x4b3790=a2_0x5619;return a2_0x5a055e[_0x4b3790(0x12c)]()[_0x4b3790(0x12a)]('(((.+)+)+)+$')[_0x4b3790(0x12c)]()['constructor'](a2_0x5a055e)[_0x4b3790(0x12a)](_0x4b3790(0x11e));});function a2_0xbb8e(){const _0xcaa404=['../service/CacheService','toString','675390hADDAz','use','value','Cache','@midwayjs/core','1053215WLmJlP','60vjAXop','57QnuMHW','defineProperty','Method::Decorator','3514GozRui','147642AymwFV','REQUEST_OBJ_CTX_KEY','get','crypto-js','(((.+)+)+)+$','46973wHCKWt','parse','4OqyiGy','CacheService','4038LSHtCJ','21046UVltjr','8vbSNNG','stringify','1464093wlmMnj','getAsync','apply','search'];a2_0xbb8e=function(){return _0xcaa404;};return a2_0xbb8e();}a2_0x5a055e();function a2_0x5619(_0x43180d,_0x12c3ea){const _0x583162=a2_0xbb8e();return a2_0x5619=function(_0x5a055e,_0x43fb54){_0x5a055e=_0x5a055e-0x111;let _0xbb8ed5=_0x583162[_0x5a055e];return _0xbb8ed5;},a2_0x5619(_0x43180d,_0x12c3ea);}'use strict';Object[a2_0x4c5f19(0x117)](exports,'__esModule',{'value':!![]}),exports[a2_0x4c5f19(0x112)]=Cache;const crypto_js_1=require(a2_0x4c5f19(0x11d)),CacheService_1=require(a2_0x4c5f19(0x12b)),core_1=require(a2_0x4c5f19(0x113));function json_encode(_0x23357c){const _0x385b01=a2_0x4c5f19;try{return JSON[_0x385b01(0x126)](_0x23357c);}catch(_0x2e7da6){return undefined;}}function Cache(_0x41a17c,_0x2b6d41){return(_0x36fa3d,_0x17a8f5,_0x2236a7)=>{const _0x4afa78=a2_0x5619,_0x17b35b=_0x2236a7[_0x4afa78(0x111)];return _0x2236a7[_0x4afa78(0x111)]=async function(..._0x594174){const _0x2d5d6f=_0x4afa78;_0x41a17c=(_0x41a17c?''+_0x41a17c:''+(_0x17a8f5||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x594174))[_0x2d5d6f(0x12c)]();let _0x3a04bd=await this[core_1[_0x2d5d6f(0x11b)]]['app']['getApplicationContext']()[_0x2d5d6f(0x128)](CacheService_1[_0x2d5d6f(0x122)]),_0x54077c=await _0x3a04bd[_0x2d5d6f(0x12e)](_0x2d5d6f(0x118))[_0x2d5d6f(0x11c)](_0x41a17c);if(_0x54077c)return JSON[_0x2d5d6f(0x120)](_0x54077c);else _0x54077c=await _0x17b35b[_0x2d5d6f(0x129)](this,[..._0x594174]),await _0x3a04bd['use']('Method::Decorator')['set'](_0x41a17c,JSON[_0x2d5d6f(0x126)](_0x54077c),_0x2b6d41);return _0x54077c;},_0x2236a7;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x4ddbe1=a3_0x51c2;(function(_0x482622,_0x5948b6){var _0x48cf26=a3_0x51c2,_0x5d27eb=_0x482622();while(!![]){try{var _0x388f2c=parseInt(_0x48cf26(0xfe))/0x1+-parseInt(_0x48cf26(0x101))/0x2+-parseInt(_0x48cf26(0xf4))/0x3+-parseInt(_0x48cf26(0xf7))/0x4+-parseInt(_0x48cf26(0xef))/0x5*(-parseInt(_0x48cf26(0x100))/0x6)+parseInt(_0x48cf26(0xf5))/0x7*(-parseInt(_0x48cf26(0xfa))/0x8)+parseInt(_0x48cf26(0xf3))/0x9;if(_0x388f2c===_0x5948b6)break;else _0x5d27eb['push'](_0x5d27eb['shift']());}catch(_0x1dfd44){_0x5d27eb['push'](_0x5d27eb['shift']());}}}(a3_0x2ab0,0x52187));var a3_0x39b1a1=(function(){var _0xaee483=!![];return function(_0x1c0660,_0x2d7aa2){var _0x459d4c=_0xaee483?function(){if(_0x2d7aa2){var _0xfc010=_0x2d7aa2['apply'](_0x1c0660,arguments);return _0x2d7aa2=null,_0xfc010;}}:function(){};return _0xaee483=![],_0x459d4c;};}()),a3_0x206cd9=a3_0x39b1a1(this,function(){var _0x4e60e3=a3_0x51c2;return a3_0x206cd9[_0x4e60e3(0xf8)]()['search'](_0x4e60e3(0xf1))[_0x4e60e3(0xf8)]()['constructor'](a3_0x206cd9)[_0x4e60e3(0xf0)](_0x4e60e3(0xf1));});a3_0x206cd9();'use strict';function a3_0x2ab0(){var _0x38fa07=['897504zKYayT','346227MNPgjT','__esModule','826016AlTENs','toString','./configuration','32ITHAfk','defineProperty','CacheService','Cache','28092xAYslk','Configuration','889674RsvbyA','265284roNgyZ','./decorator/Cache','10snrFwu','search','(((.+)+)+)+$','./service/CacheService','7629939vrbmyw'];a3_0x2ab0=function(){return _0x38fa07;};return a3_0x2ab0();}Object[a3_0x4ddbe1(0xfb)](exports,a3_0x4ddbe1(0xf6),{'value':!![]}),exports[a3_0x4ddbe1(0xfc)]=exports[a3_0x4ddbe1(0xfd)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x4ddbe1(0xf9));Object[a3_0x4ddbe1(0xfb)](exports,a3_0x4ddbe1(0xff),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x4ddbe1(0x102));function a3_0x51c2(_0x8c0c08,_0x147793){var _0x46d6d8=a3_0x2ab0();return a3_0x51c2=function(_0x206cd9,_0x39b1a1){_0x206cd9=_0x206cd9-0xef;var _0x2ab007=_0x46d6d8[_0x206cd9];return _0x2ab007;},a3_0x51c2(_0x8c0c08,_0x147793);}Object[a3_0x4ddbe1(0xfb)](exports,a3_0x4ddbe1(0xfd),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x4ddbe1(0xf2));Object[a3_0x4ddbe1(0xfb)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x3bd246=a3_0x4ddbe1;return CacheService_1[_0x3bd246(0xfc)];}});
1
+ var a3_0x553c13=a3_0x46a1;(function(_0x443b18,_0x2c31c2){var _0xc2c4a0=a3_0x46a1,_0x28a927=_0x443b18();while(!![]){try{var _0x4e2bbc=parseInt(_0xc2c4a0(0x1aa))/0x1+-parseInt(_0xc2c4a0(0x1b4))/0x2*(parseInt(_0xc2c4a0(0x1a5))/0x3)+-parseInt(_0xc2c4a0(0x1ac))/0x4*(parseInt(_0xc2c4a0(0x1b1))/0x5)+-parseInt(_0xc2c4a0(0x1b2))/0x6*(parseInt(_0xc2c4a0(0x1ae))/0x7)+parseInt(_0xc2c4a0(0x1b9))/0x8+-parseInt(_0xc2c4a0(0x1b5))/0x9+-parseInt(_0xc2c4a0(0x1a9))/0xa*(-parseInt(_0xc2c4a0(0x1a4))/0xb);if(_0x4e2bbc===_0x2c31c2)break;else _0x28a927['push'](_0x28a927['shift']());}catch(_0x2b8d26){_0x28a927['push'](_0x28a927['shift']());}}}(a3_0x5232,0x2c026));var a3_0x5663b6=(function(){var _0x1d2af3=!![];return function(_0x3361a8,_0xc109eb){var _0x27a2bd=_0x1d2af3?function(){var _0x43d7bc=a3_0x46a1;if(_0xc109eb){var _0x4c06ad=_0xc109eb[_0x43d7bc(0x1b3)](_0x3361a8,arguments);return _0xc109eb=null,_0x4c06ad;}}:function(){};return _0x1d2af3=![],_0x27a2bd;};}()),a3_0x43b0fc=a3_0x5663b6(this,function(){var _0x26b96f=a3_0x46a1;return a3_0x43b0fc[_0x26b96f(0x1b8)]()[_0x26b96f(0x1af)](_0x26b96f(0x1ab))[_0x26b96f(0x1b8)]()[_0x26b96f(0x1a8)](a3_0x43b0fc)[_0x26b96f(0x1af)](_0x26b96f(0x1ab));});a3_0x43b0fc();'use strict';Object[a3_0x553c13(0x1a7)](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x553c13(0x1ad));Object[a3_0x553c13(0x1a7)](exports,a3_0x553c13(0x1a6),{'enumerable':!![],'get':function(){var _0x598748=a3_0x553c13;return configuration_1[_0x598748(0x1b0)];}});var Cache_1=require('./decorator/Cache');function a3_0x46a1(_0x4d3045,_0x12993a){var _0x589d36=a3_0x5232();return a3_0x46a1=function(_0x43b0fc,_0x5663b6){_0x43b0fc=_0x43b0fc-0x1a3;var _0x5232ac=_0x589d36[_0x43b0fc];return _0x5232ac;},a3_0x46a1(_0x4d3045,_0x12993a);}Object[a3_0x553c13(0x1a7)](exports,a3_0x553c13(0x1b6),{'enumerable':!![],'get':function(){var _0x919eac=a3_0x553c13;return Cache_1[_0x919eac(0x1b6)];}});function a3_0x5232(){var _0xc94f29=['constructor','20MsjQVv','36148sWZGBN','(((.+)+)+)+$','52BeKOzx','./configuration','448zqoumd','search','CustomConfiguration','77065lSSNlj','26790zYDacV','apply','34RMAQVc','2136087DQxqyo','Cache','./service/CacheService','toString','1994576HUeqUW','CacheService','4753771QREOrO','43422IJJLkd','Configuration','defineProperty'];a3_0x5232=function(){return _0xc94f29;};return a3_0x5232();}var CacheService_1=require(a3_0x553c13(0x1b7));Object['defineProperty'](exports,a3_0x553c13(0x1a3),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- var a4_0x34f61d=a4_0x52ee;(function(_0x1cf66b,_0x1c0bef){var _0x232c1a=a4_0x52ee,_0x119c55=_0x1cf66b();while(!![]){try{var _0x495a57=parseInt(_0x232c1a(0x1ec))/0x1+-parseInt(_0x232c1a(0x1e4))/0x2*(parseInt(_0x232c1a(0x1f3))/0x3)+parseInt(_0x232c1a(0x1f6))/0x4*(parseInt(_0x232c1a(0x21b))/0x5)+-parseInt(_0x232c1a(0x218))/0x6*(-parseInt(_0x232c1a(0x203))/0x7)+parseInt(_0x232c1a(0x1de))/0x8*(parseInt(_0x232c1a(0x1ed))/0x9)+-parseInt(_0x232c1a(0x200))/0xa*(parseInt(_0x232c1a(0x1ff))/0xb)+parseInt(_0x232c1a(0x1f1))/0xc;if(_0x495a57===_0x1c0bef)break;else _0x119c55['push'](_0x119c55['shift']());}catch(_0x1eb493){_0x119c55['push'](_0x119c55['shift']());}}}(a4_0x20ba,0x6f6e7));function a4_0x20ba(){var _0x407379=['set','map','object','hdel','hget','Scope','(((.+)+)+)+$','44qZPHFO','1014320tyUprd','@midwayjs/core','default','54943GStfeO','name','metadata','catch','lrange','Singleton','Config','shift','file','store','get','del','decorate','reset','__metadata','Cache','parse','length','cache','stringify','constructor','120OphQMc','getClient','push','808460EYrddm','__decorate','clients','toString','253976aKjKmV','use','defineProperty','options','function','json_encode','646qChsTz','prototype','undefined','stores','rpush','has','redis','list','785920ONCGBU','9CeeBru','prefix','search','config','2202036LsmMyv','filter','4251xzrxPt','CacheService','cache-manager','4kmWJab','design:type'];a4_0x20ba=function(){return _0x407379;};return a4_0x20ba();}var a4_0x46bf3a=(function(){var _0x595366=!![];return function(_0x1511f7,_0x53de20){var _0xc91633=_0x595366?function(){if(_0x53de20){var _0xcb788e=_0x53de20['apply'](_0x1511f7,arguments);return _0x53de20=null,_0xcb788e;}}:function(){};return _0x595366=![],_0xc91633;};}()),a4_0x54a34f=a4_0x46bf3a(this,function(){var _0x30040e=a4_0x52ee;return a4_0x54a34f[_0x30040e(0x21e)]()[_0x30040e(0x1ef)](_0x30040e(0x1fe))[_0x30040e(0x21e)]()[_0x30040e(0x217)](a4_0x54a34f)['search'](_0x30040e(0x1fe));});a4_0x54a34f();'use strict';function a4_0x52ee(_0x362c17,_0x5036cd){var _0xfcbd97=a4_0x20ba();return a4_0x52ee=function(_0x54a34f,_0x46bf3a){_0x54a34f=_0x54a34f-0x1de;var _0x20ba19=_0xfcbd97[_0x54a34f];return _0x20ba19;},a4_0x52ee(_0x362c17,_0x5036cd);}var __decorate=this&&this[a4_0x34f61d(0x21c)]||function(_0x54057f,_0x1f7217,_0xb77415,_0x5904d8){var _0x2b02dd=a4_0x34f61d,_0x21f7c3=arguments['length'],_0x580802=_0x21f7c3<0x3?_0x1f7217:_0x5904d8===null?_0x5904d8=Object['getOwnPropertyDescriptor'](_0x1f7217,_0xb77415):_0x5904d8,_0x3f8874;if(typeof Reflect===_0x2b02dd(0x1fa)&&typeof Reflect[_0x2b02dd(0x20f)]===_0x2b02dd(0x1e2))_0x580802=Reflect[_0x2b02dd(0x20f)](_0x54057f,_0x1f7217,_0xb77415,_0x5904d8);else{for(var _0x4fb0ec=_0x54057f[_0x2b02dd(0x214)]-0x1;_0x4fb0ec>=0x0;_0x4fb0ec--)if(_0x3f8874=_0x54057f[_0x4fb0ec])_0x580802=(_0x21f7c3<0x3?_0x3f8874(_0x580802):_0x21f7c3>0x3?_0x3f8874(_0x1f7217,_0xb77415,_0x580802):_0x3f8874(_0x1f7217,_0xb77415))||_0x580802;}return _0x21f7c3>0x3&&_0x580802&&Object['defineProperty'](_0x1f7217,_0xb77415,_0x580802),_0x580802;},__metadata=this&&this[a4_0x34f61d(0x211)]||function(_0x399005,_0x3cabf2){var _0x271f7d=a4_0x34f61d;if(typeof Reflect==='object'&&typeof Reflect[_0x271f7d(0x205)]==='function')return Reflect[_0x271f7d(0x205)](_0x399005,_0x3cabf2);};Object[a4_0x34f61d(0x1e0)](exports,'__esModule',{'value':!![]}),exports[a4_0x34f61d(0x212)]=exports[a4_0x34f61d(0x1f4)]=void 0x0,exports[a4_0x34f61d(0x1e3)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require(a4_0x34f61d(0x1f5)),core_1=require(a4_0x34f61d(0x201));let CacheService=class CacheService{constructor(){var _0x243160=a4_0x34f61d;this[_0x243160(0x215)]=undefined,this['clients']=new Map();}[a4_0x34f61d(0x1df)](_0x24331e){var _0x52bef1=a4_0x34f61d,_0x20a2f7,_0x4a448;if(!this['cache']){const _0x166895=((_0x20a2f7=this['config'][_0x52bef1(0x1e7)])===null||_0x20a2f7===void 0x0?void 0x0:_0x20a2f7[(_0x4a448=this[_0x52bef1(0x1f0)])===null||_0x4a448===void 0x0?void 0x0:_0x4a448[_0x52bef1(0x202)]])||this[_0x52bef1(0x1f0)][_0x52bef1(0x1e7)][_0x52bef1(0x20b)];this[_0x52bef1(0x215)]=cacheManager['caching']({..._0x166895[_0x52bef1(0x1e1)],'store':_0x166895[_0x52bef1(0x20c)]});}return!this[_0x52bef1(0x21d)][_0x52bef1(0x1e9)](_0x24331e)&&this[_0x52bef1(0x21d)][_0x52bef1(0x1f8)](_0x24331e,new Cache(_0x24331e,this[_0x52bef1(0x215)])),this[_0x52bef1(0x21d)][_0x52bef1(0x20d)](_0x24331e);}async['reset'](){var _0x3b79e1=a4_0x34f61d;return await this[_0x3b79e1(0x215)][_0x3b79e1(0x210)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x34f61d(0x209)])('cache'),__metadata(a4_0x34f61d(0x1f7),Object)],CacheService[a4_0x34f61d(0x1e5)],a4_0x34f61d(0x1f0),void 0x0),exports[a4_0x34f61d(0x1f4)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x34f61d(0x1fd)])(core_1['ScopeEnum'][a4_0x34f61d(0x208)])],CacheService);class Cache{constructor(_0x6d545c,_0x2a226d){var _0x3105e8=a4_0x34f61d;this[_0x3105e8(0x215)]=_0x2a226d,this[_0x3105e8(0x1ee)]=_0x6d545c;}async[a4_0x34f61d(0x20e)](_0x2dbbfa){var _0xea4e73=a4_0x34f61d;return await this[_0xea4e73(0x215)][_0xea4e73(0x20e)](this['prefix']+':'+_0x2dbbfa);}async[a4_0x34f61d(0x1f8)](_0x107b06,_0x4e2923,_0x5a1bad){var _0x4169e6=a4_0x34f61d,_0x534256,_0x16a191;return((_0x16a191=(_0x534256=this[_0x4169e6(0x215)])===null||_0x534256===void 0x0?void 0x0:_0x534256['store'])===null||_0x16a191===void 0x0?void 0x0:_0x16a191['name'])==_0x4169e6(0x1ea)?await this[_0x4169e6(0x215)][_0x4169e6(0x1f8)](this[_0x4169e6(0x1ee)]+':'+_0x107b06,_0x4e2923,{'ttl':_0x5a1bad}):await this['cache'][_0x4169e6(0x1f8)](this[_0x4169e6(0x1ee)]+':'+_0x107b06,_0x4e2923,{'ttl':_0x5a1bad});}async[a4_0x34f61d(0x20d)](_0x43e8a3,_0x1a534b,_0xa0817f){return new Promise((_0x186b79,_0x13d6c7)=>{var _0x394fb6=a4_0x52ee;this['cache'][_0x394fb6(0x20d)](this[_0x394fb6(0x1ee)]+':'+_0x43e8a3,async(_0x363f32,_0x442300)=>{var _0x358f0f=_0x394fb6;_0x363f32?_0x13d6c7(_0x363f32):((_0x442300===undefined||_0x442300===null)&&(typeof _0x1a534b==_0x358f0f(0x1e2)?(_0x442300=await _0x1a534b()[_0x358f0f(0x206)](_0x1a2d02=>_0x13d6c7(_0x1a2d02)),typeof _0x442300!=_0x358f0f(0x1e6)&&await this[_0x358f0f(0x1f8)](_0x43e8a3,_0x442300,_0xa0817f)):_0x442300=_0x1a534b),_0x186b79(_0x442300));});});}async[a4_0x34f61d(0x1fb)](_0x191189,_0x5374d3){var _0x32960b=a4_0x34f61d;return await this[_0x32960b(0x20e)](_0x191189+'#'+_0x5374d3);}async['hset'](_0x243af7,_0x5d0507,_0x450581,_0x428ac9){var _0x25d063=a4_0x34f61d;return await this[_0x25d063(0x1f8)](_0x243af7+'#'+_0x5d0507,_0x450581,_0x428ac9);}async[a4_0x34f61d(0x1fc)](_0x5f1049,_0x3a7672,_0x47b4d2,_0x24ba3e){var _0x3ee001=a4_0x34f61d;return await this[_0x3ee001(0x20d)](_0x5f1049+'#'+_0x3a7672,_0x47b4d2,_0x24ba3e);}[a4_0x34f61d(0x1eb)](_0x2e35b1){const _0x4d940a={'all':async()=>{var _0x36f154=a4_0x52ee,_0x4de64,_0x402d4a,_0x155c96,_0x14045b,_0x4ca07c;return((_0x402d4a=(_0x4de64=this[_0x36f154(0x215)])===null||_0x4de64===void 0x0?void 0x0:_0x4de64[_0x36f154(0x20c)])===null||_0x402d4a===void 0x0?void 0x0:_0x402d4a[_0x36f154(0x204)])=='redis'?(await((_0x4ca07c=(_0x14045b=(_0x155c96=this===null||this===void 0x0?void 0x0:this[_0x36f154(0x215)])===null||_0x155c96===void 0x0?void 0x0:_0x155c96[_0x36f154(0x20c)])===null||_0x14045b===void 0x0?void 0x0:_0x14045b['getClient']())===null||_0x4ca07c===void 0x0?void 0x0:_0x4ca07c[_0x36f154(0x207)](this[_0x36f154(0x1ee)]+':'+_0x2e35b1,0x0,-0x1))||[])[_0x36f154(0x1f9)](_0x4d669b=>json_decode(_0x4d669b)):await this[_0x36f154(0x20d)](_0x2e35b1,[]);},'pop':async()=>{var _0x5b78bb=a4_0x52ee,_0x3296f8,_0x4f859c,_0x389ba7,_0x29108a,_0x43b36f;if(((_0x4f859c=(_0x3296f8=this['cache'])===null||_0x3296f8===void 0x0?void 0x0:_0x3296f8[_0x5b78bb(0x20c)])===null||_0x4f859c===void 0x0?void 0x0:_0x4f859c[_0x5b78bb(0x204)])==_0x5b78bb(0x1ea))return json_decode(await((_0x43b36f=(_0x29108a=(_0x389ba7=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x389ba7===void 0x0?void 0x0:_0x389ba7[_0x5b78bb(0x20c)])===null||_0x29108a===void 0x0?void 0x0:_0x29108a[_0x5b78bb(0x219)]())===null||_0x43b36f===void 0x0?void 0x0:_0x43b36f['lpop'](this[_0x5b78bb(0x1ee)]+':'+_0x2e35b1)));else{let _0x55979b=await this[_0x5b78bb(0x20d)](_0x2e35b1,[]),_0x238242=_0x55979b[_0x5b78bb(0x20a)]();return await this['set'](_0x2e35b1,_0x55979b),_0x238242;}},'push':async(..._0x581ca6)=>{var _0x464853=a4_0x52ee,_0x4bc2d9,_0x237d66,_0x45d225,_0x5cf245,_0x36f7a4;const _0x4ab499=_0x581ca6[_0x464853(0x1f2)](_0x7cc373=>_0x7cc373!==undefined&&_0x7cc373!==null);if(((_0x237d66=(_0x4bc2d9=this[_0x464853(0x215)])===null||_0x4bc2d9===void 0x0?void 0x0:_0x4bc2d9['store'])===null||_0x237d66===void 0x0?void 0x0:_0x237d66['name'])=='redis')return await((_0x36f7a4=(_0x5cf245=(_0x45d225=this===null||this===void 0x0?void 0x0:this[_0x464853(0x215)])===null||_0x45d225===void 0x0?void 0x0:_0x45d225[_0x464853(0x20c)])===null||_0x5cf245===void 0x0?void 0x0:_0x5cf245['getClient']())===null||_0x36f7a4===void 0x0?void 0x0:_0x36f7a4[_0x464853(0x1e8)](this[_0x464853(0x1ee)]+':'+_0x2e35b1,..._0x4ab499['map'](_0x13e0c1=>json_encode(_0x13e0c1)))),_0x4ab499;else{let _0x11b830=await this[_0x464853(0x20d)](_0x2e35b1,[]);return _0x11b830[_0x464853(0x21a)](..._0x4ab499),await this[_0x464853(0x1f8)](_0x2e35b1,_0x11b830),_0x11b830;}}};return _0x4d940a;}}exports[a4_0x34f61d(0x212)]=Cache;function json_encode(_0x347f3e){var _0x386933=a4_0x34f61d;try{return JSON[_0x386933(0x216)](_0x347f3e);}catch(_0x313be6){return undefined;}}function json_decode(_0x321cfd){var _0x59367f=a4_0x34f61d;try{return JSON[_0x59367f(0x213)](_0x321cfd);}catch(_0x487a75){return undefined;}}
1
+ var a4_0x13b99f=a4_0x2965;function a4_0x2363(){var _0x2f0cb2=['856hdevJD','cache','redis','default','name','constructor','store','hget','799552KGYHxG','reset','Scope','length','4KhtXRd','design:type','Singleton','55yxAVAC','config','Cache','cache-manager','decorate','get','stores','filter','7pBfhpB','list','object','hset','set','has','use','6bgLqYK','clients','toString','search','6557110nescKG','prefix','metadata','del','(((.+)+)+)+$','__decorate','getOwnPropertyDescriptor','catch','defineProperty','parse','Config','6475970FtlAwb','@midwayjs/core','json_decode','options','function','__esModule','CacheService','7898628szwAsu','6911778MgznBZ','1367049pPHeXT','map','108387oWsYKw','lrange','__metadata','undefined','Provide','getClient'];a4_0x2363=function(){return _0x2f0cb2;};return a4_0x2363();}(function(_0x329884,_0x1b0d0d){var _0xd2dff6=a4_0x2965,_0x49e4a4=_0x329884();while(!![]){try{var _0x4e94f3=parseInt(_0xd2dff6(0xfc))/0x1+parseInt(_0xd2dff6(0x112))/0x2*(parseInt(_0xd2dff6(0x12a))/0x3)+parseInt(_0xd2dff6(0x100))/0x4*(parseInt(_0xd2dff6(0x121))/0x5)+-parseInt(_0xd2dff6(0x129))/0x6*(-parseInt(_0xd2dff6(0x10b))/0x7)+-parseInt(_0xd2dff6(0xf4))/0x8*(parseInt(_0xd2dff6(0x12c))/0x9)+parseInt(_0xd2dff6(0x116))/0xa+-parseInt(_0xd2dff6(0x103))/0xb*(parseInt(_0xd2dff6(0x128))/0xc);if(_0x4e94f3===_0x1b0d0d)break;else _0x49e4a4['push'](_0x49e4a4['shift']());}catch(_0x411e37){_0x49e4a4['push'](_0x49e4a4['shift']());}}}(a4_0x2363,0xa866d));var a4_0x1201c8=(function(){var _0xf7ccb5=!![];return function(_0x4b5e26,_0x4a8ee8){var _0x25c906=_0xf7ccb5?function(){if(_0x4a8ee8){var _0x124a25=_0x4a8ee8['apply'](_0x4b5e26,arguments);return _0x4a8ee8=null,_0x124a25;}}:function(){};return _0xf7ccb5=![],_0x25c906;};}()),a4_0xc932a7=a4_0x1201c8(this,function(){var _0x1897d6=a4_0x2965;return a4_0xc932a7[_0x1897d6(0x114)]()[_0x1897d6(0x115)](_0x1897d6(0x11a))['toString']()[_0x1897d6(0xf9)](a4_0xc932a7)[_0x1897d6(0x115)](_0x1897d6(0x11a));});a4_0xc932a7();'use strict';var __decorate=this&&this[a4_0x13b99f(0x11b)]||function(_0x5684ea,_0x249346,_0x1ce60f,_0x404914){var _0x29766e=a4_0x13b99f,_0x4d7b49=arguments[_0x29766e(0xff)],_0x2e272d=_0x4d7b49<0x3?_0x249346:_0x404914===null?_0x404914=Object[_0x29766e(0x11c)](_0x249346,_0x1ce60f):_0x404914,_0x387233;if(typeof Reflect===_0x29766e(0x10d)&&typeof Reflect[_0x29766e(0x107)]===_0x29766e(0x125))_0x2e272d=Reflect[_0x29766e(0x107)](_0x5684ea,_0x249346,_0x1ce60f,_0x404914);else{for(var _0x1acceb=_0x5684ea['length']-0x1;_0x1acceb>=0x0;_0x1acceb--)if(_0x387233=_0x5684ea[_0x1acceb])_0x2e272d=(_0x4d7b49<0x3?_0x387233(_0x2e272d):_0x4d7b49>0x3?_0x387233(_0x249346,_0x1ce60f,_0x2e272d):_0x387233(_0x249346,_0x1ce60f))||_0x2e272d;}return _0x4d7b49>0x3&&_0x2e272d&&Object[_0x29766e(0x11e)](_0x249346,_0x1ce60f,_0x2e272d),_0x2e272d;},__metadata=this&&this[a4_0x13b99f(0x12e)]||function(_0x37a187,_0x35e6b1){var _0x39f852=a4_0x13b99f;if(typeof Reflect==='object'&&typeof Reflect[_0x39f852(0x118)]===_0x39f852(0x125))return Reflect[_0x39f852(0x118)](_0x37a187,_0x35e6b1);};function a4_0x2965(_0x25f6ad,_0x550ef5){var _0x258374=a4_0x2363();return a4_0x2965=function(_0xc932a7,_0x1201c8){_0xc932a7=_0xc932a7-0xf1;var _0x2363a7=_0x258374[_0xc932a7];return _0x2363a7;},a4_0x2965(_0x25f6ad,_0x550ef5);}Object['defineProperty'](exports,a4_0x13b99f(0x126),{'value':!![]}),exports[a4_0x13b99f(0x105)]=exports[a4_0x13b99f(0x127)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x13b99f(0x123)]=json_decode;const cacheManager=require(a4_0x13b99f(0x106)),core_1=require(a4_0x13b99f(0x122));let CacheService=class CacheService{constructor(){var _0x3de17f=a4_0x13b99f;this[_0x3de17f(0xf5)]=undefined,this['clients']=new Map();}[a4_0x13b99f(0x111)](_0x27f9c0){var _0x15b917=a4_0x13b99f,_0x310625,_0x368c4b;if(!this[_0x15b917(0xf5)]){const _0x5869ad=((_0x310625=this[_0x15b917(0x104)][_0x15b917(0x109)])===null||_0x310625===void 0x0?void 0x0:_0x310625[(_0x368c4b=this[_0x15b917(0x104)])===null||_0x368c4b===void 0x0?void 0x0:_0x368c4b[_0x15b917(0xf7)]])||this['config'][_0x15b917(0x109)]['file'];this['cache']=cacheManager['caching']({..._0x5869ad[_0x15b917(0x124)],'store':_0x5869ad[_0x15b917(0xfa)]});}return!this[_0x15b917(0x113)][_0x15b917(0x110)](_0x27f9c0)&&this[_0x15b917(0x113)]['set'](_0x27f9c0,new Cache(_0x27f9c0,this[_0x15b917(0xf5)])),this['clients'][_0x15b917(0x108)](_0x27f9c0);}async[a4_0x13b99f(0xfd)](){var _0xc3f6e=a4_0x13b99f;return await this['cache'][_0xc3f6e(0xfd)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x13b99f(0x120)])(a4_0x13b99f(0xf5)),__metadata(a4_0x13b99f(0x101),Object)],CacheService['prototype'],a4_0x13b99f(0x104),void 0x0),exports[a4_0x13b99f(0x127)]=CacheService=__decorate([(0x0,core_1[a4_0x13b99f(0xf2)])(),(0x0,core_1[a4_0x13b99f(0xfe)])(core_1['ScopeEnum'][a4_0x13b99f(0x102)])],CacheService);class Cache{constructor(_0x310cb4,_0x1aecfc){var _0xadfe3c=a4_0x13b99f;this[_0xadfe3c(0xf5)]=_0x1aecfc,this[_0xadfe3c(0x117)]=_0x310cb4;}async[a4_0x13b99f(0x119)](_0x2024dc){var _0x5d5fc5=a4_0x13b99f;return await this[_0x5d5fc5(0xf5)]['del'](this[_0x5d5fc5(0x117)]+':'+_0x2024dc);}async[a4_0x13b99f(0x10f)](_0x47e96d,_0xf7e56d,_0x3c7fd6){var _0x128888=a4_0x13b99f,_0x4effaf,_0x36579b;return((_0x36579b=(_0x4effaf=this[_0x128888(0xf5)])===null||_0x4effaf===void 0x0?void 0x0:_0x4effaf[_0x128888(0xfa)])===null||_0x36579b===void 0x0?void 0x0:_0x36579b['name'])==_0x128888(0xf6)?await this[_0x128888(0xf5)]['set'](this[_0x128888(0x117)]+':'+_0x47e96d,_0xf7e56d,{'ttl':_0x3c7fd6}):await this['cache'][_0x128888(0x10f)](this[_0x128888(0x117)]+':'+_0x47e96d,_0xf7e56d,{'ttl':_0x3c7fd6});}async['get'](_0x1305d4,_0x3af1b3,_0x2691ad){return new Promise((_0x12548d,_0x1251b1)=>{var _0x4d7245=a4_0x2965;this[_0x4d7245(0xf5)][_0x4d7245(0x108)](this[_0x4d7245(0x117)]+':'+_0x1305d4,async(_0x40848a,_0x21386b)=>{var _0x1823cf=_0x4d7245;_0x40848a?_0x1251b1(_0x40848a):((_0x21386b===undefined||_0x21386b===null)&&(typeof _0x3af1b3=='function'?(_0x21386b=await _0x3af1b3()[_0x1823cf(0x11d)](_0x4ae1c0=>_0x1251b1(_0x4ae1c0)),typeof _0x21386b!=_0x1823cf(0xf1)&&await this[_0x1823cf(0x10f)](_0x1305d4,_0x21386b,_0x2691ad)):_0x21386b=_0x3af1b3),_0x12548d(_0x21386b));});});}async['hdel'](_0x103685,_0x4a6d4c){var _0x1f110c=a4_0x13b99f;return await this[_0x1f110c(0x119)](_0x103685+'#'+_0x4a6d4c);}async[a4_0x13b99f(0x10e)](_0x431312,_0x46daf4,_0x25ab34,_0x35bedd){var _0x187eb3=a4_0x13b99f;return await this[_0x187eb3(0x10f)](_0x431312+'#'+_0x46daf4,_0x25ab34,_0x35bedd);}async[a4_0x13b99f(0xfb)](_0x2f5e46,_0x18a6a7,_0x57ca8a,_0x105c95){var _0x2cbc37=a4_0x13b99f;return await this[_0x2cbc37(0x108)](_0x2f5e46+'#'+_0x18a6a7,_0x57ca8a,_0x105c95);}[a4_0x13b99f(0x10c)](_0x118c8c){const _0x317517={'all':async()=>{var _0x7b8db0=a4_0x2965,_0x3976aa,_0x2151c4,_0x21e7e1,_0x32bc11,_0x4476f2;return((_0x2151c4=(_0x3976aa=this[_0x7b8db0(0xf5)])===null||_0x3976aa===void 0x0?void 0x0:_0x3976aa[_0x7b8db0(0xfa)])===null||_0x2151c4===void 0x0?void 0x0:_0x2151c4['name'])==_0x7b8db0(0xf6)?(await((_0x4476f2=(_0x32bc11=(_0x21e7e1=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x21e7e1===void 0x0?void 0x0:_0x21e7e1[_0x7b8db0(0xfa)])===null||_0x32bc11===void 0x0?void 0x0:_0x32bc11[_0x7b8db0(0xf3)]())===null||_0x4476f2===void 0x0?void 0x0:_0x4476f2[_0x7b8db0(0x12d)](this[_0x7b8db0(0x117)]+':'+_0x118c8c,0x0,-0x1))||[])[_0x7b8db0(0x12b)](_0x569101=>json_decode(_0x569101)):await this['get'](_0x118c8c,[]);},'pop':async()=>{var _0x3b9cc6=a4_0x2965,_0x58ce43,_0x2b1c8b,_0x4d538d,_0x3e4342,_0x3bb9fe;if(((_0x2b1c8b=(_0x58ce43=this[_0x3b9cc6(0xf5)])===null||_0x58ce43===void 0x0?void 0x0:_0x58ce43[_0x3b9cc6(0xfa)])===null||_0x2b1c8b===void 0x0?void 0x0:_0x2b1c8b[_0x3b9cc6(0xf8)])==_0x3b9cc6(0xf6))return json_decode(await((_0x3bb9fe=(_0x3e4342=(_0x4d538d=this===null||this===void 0x0?void 0x0:this[_0x3b9cc6(0xf5)])===null||_0x4d538d===void 0x0?void 0x0:_0x4d538d[_0x3b9cc6(0xfa)])===null||_0x3e4342===void 0x0?void 0x0:_0x3e4342['getClient']())===null||_0x3bb9fe===void 0x0?void 0x0:_0x3bb9fe['lpop'](this['prefix']+':'+_0x118c8c)));else{let _0x362e13=await this[_0x3b9cc6(0x108)](_0x118c8c,[]),_0xbc1d6c=_0x362e13['shift']();return await this[_0x3b9cc6(0x10f)](_0x118c8c,_0x362e13),_0xbc1d6c;}},'push':async(..._0x258e68)=>{var _0x144fc6=a4_0x2965,_0x563737,_0xe482be,_0x186c3f,_0x272a25,_0x3622fe;const _0x4d9c1f=_0x258e68[_0x144fc6(0x10a)](_0x4703eb=>_0x4703eb!==undefined&&_0x4703eb!==null);if(((_0xe482be=(_0x563737=this[_0x144fc6(0xf5)])===null||_0x563737===void 0x0?void 0x0:_0x563737[_0x144fc6(0xfa)])===null||_0xe482be===void 0x0?void 0x0:_0xe482be[_0x144fc6(0xf8)])==_0x144fc6(0xf6))return await((_0x3622fe=(_0x272a25=(_0x186c3f=this===null||this===void 0x0?void 0x0:this[_0x144fc6(0xf5)])===null||_0x186c3f===void 0x0?void 0x0:_0x186c3f['store'])===null||_0x272a25===void 0x0?void 0x0:_0x272a25[_0x144fc6(0xf3)]())===null||_0x3622fe===void 0x0?void 0x0:_0x3622fe['rpush'](this[_0x144fc6(0x117)]+':'+_0x118c8c,..._0x4d9c1f[_0x144fc6(0x12b)](_0x19fdb9=>json_encode(_0x19fdb9)))),_0x4d9c1f;else{let _0x1ab5e9=await this['get'](_0x118c8c,[]);return _0x1ab5e9['push'](..._0x4d9c1f),await this[_0x144fc6(0x10f)](_0x118c8c,_0x1ab5e9),_0x1ab5e9;}}};return _0x317517;}}exports[a4_0x13b99f(0x105)]=Cache;function json_encode(_0x262351){try{return JSON['stringify'](_0x262351);}catch(_0x2a8112){return undefined;}}function json_decode(_0x7ee5a7){var _0x56609a=a4_0x13b99f;try{return JSON[_0x56609a(0x11f)](_0x7ee5a7);}catch(_0x1452d2){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.78",
3
+ "version": "3.4.80",
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": "fa30d4b777dde311d46f2b26dadd1e6ff37016ae"
26
+ "gitHead": "a24d658b65084f1b3db2ce48e1fdc06d9b5b1541"
27
27
  }