@anncic-api/cache 3.4.78 → 3.4.79

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_0x2dc9b8=a0_0x9679;(function(_0x7fd844,_0x7e0f71){const _0xeab593=a0_0x9679,_0x4b34bc=_0x7fd844();while(!![]){try{const _0xda1ff8=parseInt(_0xeab593(0xa1))/0x1*(-parseInt(_0xeab593(0x9f))/0x2)+parseInt(_0xeab593(0x94))/0x3+-parseInt(_0xeab593(0xa8))/0x4+parseInt(_0xeab593(0x98))/0x5+parseInt(_0xeab593(0xab))/0x6+-parseInt(_0xeab593(0xa6))/0x7*(parseInt(_0xeab593(0xa9))/0x8)+-parseInt(_0xeab593(0xa7))/0x9*(parseInt(_0xeab593(0xa0))/0xa);if(_0xda1ff8===_0x7e0f71)break;else _0x4b34bc['push'](_0x4b34bc['shift']());}catch(_0x4af476){_0x4b34bc['push'](_0x4b34bc['shift']());}}}(a0_0x4c31,0xb6dcb));const a0_0x188ec1=(function(){let _0x20464a=!![];return function(_0x2a3085,_0x1673b6){const _0x3bc662=_0x20464a?function(){const _0x293ee4=a0_0x9679;if(_0x1673b6){const _0x44cd85=_0x1673b6[_0x293ee4(0x97)](_0x2a3085,arguments);return _0x1673b6=null,_0x44cd85;}}:function(){};return _0x20464a=![],_0x3bc662;};}()),a0_0x3e1143=a0_0x188ec1(this,function(){const _0x1fa50c=a0_0x9679;return a0_0x3e1143[_0x1fa50c(0xa5)]()[_0x1fa50c(0x96)](_0x1fa50c(0x95))[_0x1fa50c(0xa5)]()[_0x1fa50c(0xa2)](a0_0x3e1143)[_0x1fa50c(0x96)](_0x1fa50c(0x95));});a0_0x3e1143();function a0_0x9679(_0x1e7f92,_0x3c8ba5){const _0xd8d563=a0_0x4c31();return a0_0x9679=function(_0x3e1143,_0x188ec1){_0x3e1143=_0x3e1143-0x94;let _0x4c3173=_0xd8d563[_0x3e1143];return _0x4c3173;},a0_0x9679(_0x1e7f92,_0x3c8ba5);}function a0_0x4c31(){const _0xaff8c1=['1030300GlpEUW','9SgjUyk','constructor','defineProperty','cache-manager-ioredis','toString','4303313wBqGFm','9SXGCvo','924740IlxerS','8jiMpoN','__esModule','8666778CxzqVx','env','2554773YLoQKk','(((.+)+)+)+$','search','apply','1798650nWhTFG','appDir','name','memory','/runtime/.cache','cache-manager-fs-hash','default','212846NmkPUY'];a0_0x4c31=function(){return _0xaff8c1;};return a0_0x4c31();}'use strict';Object[a0_0x2dc9b8(0xa3)](exports,a0_0x2dc9b8(0xaa),{'value':!![]});const fsStore=require(a0_0x2dc9b8(0x9d)),redisStore=require(a0_0x2dc9b8(0xa4));exports[a0_0x2dc9b8(0x9e)]=_0x2011d0=>{const _0x33d946=a0_0x2dc9b8;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x2011d0[_0x33d946(0x99)]+_0x33d946(0x9c)+((_0x2011d0===null||_0x2011d0===void 0x0?void 0x0:_0x2011d0[_0x33d946(0xac)])?'-'+_0x2011d0[_0x33d946(0xac)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x2011d0[_0x33d946(0x9a)]+':'+((_0x2011d0===null||_0x2011d0===void 0x0?void 0x0:_0x2011d0[_0x33d946(0xac)])?_0x2011d0[_0x33d946(0xac)]+':':'')}},'memory':{'store':_0x33d946(0x9b),'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_0x1ccfff=a1_0x2767;(function(_0x55fd5c,_0x4680cf){var _0x30278b=a1_0x2767,_0x5123f9=_0x55fd5c();while(!![]){try{var _0xaf2511=-parseInt(_0x30278b(0x1fb))/0x1*(-parseInt(_0x30278b(0x1ed))/0x2)+-parseInt(_0x30278b(0x1f9))/0x3*(parseInt(_0x30278b(0x1f8))/0x4)+-parseInt(_0x30278b(0x1e2))/0x5*(-parseInt(_0x30278b(0x1ee))/0x6)+parseInt(_0x30278b(0x1f2))/0x7*(-parseInt(_0x30278b(0x1f5))/0x8)+parseInt(_0x30278b(0x1ec))/0x9+parseInt(_0x30278b(0x1e8))/0xa+parseInt(_0x30278b(0x1f7))/0xb;if(_0xaf2511===_0x4680cf)break;else _0x5123f9['push'](_0x5123f9['shift']());}catch(_0x568e7f){_0x5123f9['push'](_0x5123f9['shift']());}}}(a1_0x35ed,0xccf61));var a1_0x44dcc5=(function(){var _0x2d53df=!![];return function(_0xdfff13,_0x388b00){var _0x12dd6e=_0x2d53df?function(){var _0x3ba0f0=a1_0x2767;if(_0x388b00){var _0x44eb00=_0x388b00[_0x3ba0f0(0x1e9)](_0xdfff13,arguments);return _0x388b00=null,_0x44eb00;}}:function(){};return _0x2d53df=![],_0x12dd6e;};}()),a1_0x16716f=a1_0x44dcc5(this,function(){var _0x437c4b=a1_0x2767;return a1_0x16716f[_0x437c4b(0x1e6)]()['search']('(((.+)+)+)+$')[_0x437c4b(0x1e6)]()[_0x437c4b(0x1f1)](a1_0x16716f)[_0x437c4b(0x1fa)](_0x437c4b(0x1ef));});a1_0x16716f();'use strict';function a1_0x35ed(){var _0x412d30=['__esModule','toString','decorate','1824320WsuDtV','apply','object','Configuration','10368315KRXDid','356mxLWFf','1422MuDTTD','(((.+)+)+)+$','defineProperty','constructor','10801NjUBfj','getOwnPropertyDescriptor','CustomConfiguration','7576UXYIdS','@midwayjs/core','14516909MeLxwp','25588CFRABh','435VMmDub','search','2324LHiKSJ','3385JHTxqT','anncic-api:cache','length'];a1_0x35ed=function(){return _0x412d30;};return a1_0x35ed();}var __decorate=this&&this['__decorate']||function(_0x17a206,_0xdc26cd,_0x447bec,_0xca6140){var _0x1fcc10=a1_0x2767,_0x4351f5=arguments[_0x1fcc10(0x1e4)],_0x37c1e7=_0x4351f5<0x3?_0xdc26cd:_0xca6140===null?_0xca6140=Object[_0x1fcc10(0x1f3)](_0xdc26cd,_0x447bec):_0xca6140,_0xc8337e;if(typeof Reflect===_0x1fcc10(0x1ea)&&typeof Reflect[_0x1fcc10(0x1e7)]==='function')_0x37c1e7=Reflect[_0x1fcc10(0x1e7)](_0x17a206,_0xdc26cd,_0x447bec,_0xca6140);else{for(var _0x1302e6=_0x17a206[_0x1fcc10(0x1e4)]-0x1;_0x1302e6>=0x0;_0x1302e6--)if(_0xc8337e=_0x17a206[_0x1302e6])_0x37c1e7=(_0x4351f5<0x3?_0xc8337e(_0x37c1e7):_0x4351f5>0x3?_0xc8337e(_0xdc26cd,_0x447bec,_0x37c1e7):_0xc8337e(_0xdc26cd,_0x447bec))||_0x37c1e7;}return _0x4351f5>0x3&&_0x37c1e7&&Object[_0x1fcc10(0x1f0)](_0xdc26cd,_0x447bec,_0x37c1e7),_0x37c1e7;};Object[a1_0x1ccfff(0x1f0)](exports,a1_0x1ccfff(0x1e5),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x2767(_0x4cc69e,_0x55b45b){var _0x487937=a1_0x35ed();return a1_0x2767=function(_0x16716f,_0x44dcc5){_0x16716f=_0x16716f-0x1e2;var _0x35edef=_0x487937[_0x16716f];return _0x35edef;},a1_0x2767(_0x4cc69e,_0x55b45b);}const core_1=require(a1_0x1ccfff(0x1f6)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports[a1_0x1ccfff(0x1f4)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1ccfff(0x1eb)])({'conflictCheck':![],'namespace':a1_0x1ccfff(0x1e3),'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_0x47b03b=a2_0x36a9;function a2_0x36a9(_0x23be0d,_0x345c0b){const _0x1f0de2=a2_0x52eb();return a2_0x36a9=function(_0x345202,_0x2ea712){_0x345202=_0x345202-0x10b;let _0x52eb37=_0x1f0de2[_0x345202];return _0x52eb37;},a2_0x36a9(_0x23be0d,_0x345c0b);}(function(_0x238e6b,_0x21002c){const _0x1dc731=a2_0x36a9,_0x328cff=_0x238e6b();while(!![]){try{const _0x590c91=-parseInt(_0x1dc731(0x11a))/0x1+-parseInt(_0x1dc731(0x119))/0x2*(parseInt(_0x1dc731(0x116))/0x3)+parseInt(_0x1dc731(0x11f))/0x4*(-parseInt(_0x1dc731(0x114))/0x5)+parseInt(_0x1dc731(0x10b))/0x6+-parseInt(_0x1dc731(0x11c))/0x7*(parseInt(_0x1dc731(0x110))/0x8)+-parseInt(_0x1dc731(0x10c))/0x9*(-parseInt(_0x1dc731(0x11b))/0xa)+parseInt(_0x1dc731(0x124))/0xb;if(_0x590c91===_0x21002c)break;else _0x328cff['push'](_0x328cff['shift']());}catch(_0x340d06){_0x328cff['push'](_0x328cff['shift']());}}}(a2_0x52eb,0x5c093));const a2_0x2ea712=(function(){let _0x2a6907=!![];return function(_0x494fd9,_0x21761f){const _0x17785a=_0x2a6907?function(){const _0x5ea879=a2_0x36a9;if(_0x21761f){const _0x522a9f=_0x21761f[_0x5ea879(0x10d)](_0x494fd9,arguments);return _0x21761f=null,_0x522a9f;}}:function(){};return _0x2a6907=![],_0x17785a;};}()),a2_0x345202=a2_0x2ea712(this,function(){const _0x49e701=a2_0x36a9;return a2_0x345202['toString']()[_0x49e701(0x113)]('(((.+)+)+)+$')['toString']()[_0x49e701(0x126)](a2_0x345202)[_0x49e701(0x113)](_0x49e701(0x127));});a2_0x345202();'use strict';function a2_0x52eb(){const _0x1b9781=['18293451FHDjkw','getApplicationContext','constructor','(((.+)+)+)+$','app','getAsync','toString','get','380946EitGsN','81PNorDa','apply','crypto-js','set','8DhjTgY','__esModule','value','search','2314315IGKxGQ','parse','26319tFVETs','stringify','REQUEST_OBJ_CTX_KEY','166PTsexZ','73321AkNyLM','273330mDEieU','2318449Ufjzng','../service/CacheService','Method::Decorator','4ZSgkuA','CacheService','Cache','use','MD5'];a2_0x52eb=function(){return _0x1b9781;};return a2_0x52eb();}Object['defineProperty'](exports,a2_0x47b03b(0x111),{'value':!![]}),exports[a2_0x47b03b(0x121)]=Cache;const crypto_js_1=require(a2_0x47b03b(0x10e)),CacheService_1=require(a2_0x47b03b(0x11d)),core_1=require('@midwayjs/core');function json_encode(_0x30c7c7){const _0x17871b=a2_0x47b03b;try{return JSON[_0x17871b(0x117)](_0x30c7c7);}catch(_0x3839c1){return undefined;}}function Cache(_0x3f3c1a,_0x217b81){return(_0x4c370b,_0x36bfbc,_0x1ff114)=>{const _0x1a28f9=a2_0x36a9,_0x4f2b19=_0x1ff114[_0x1a28f9(0x112)];return _0x1ff114[_0x1a28f9(0x112)]=async function(..._0x53bcfc){const _0x292f87=_0x1a28f9;_0x3f3c1a=(_0x3f3c1a?''+_0x3f3c1a:''+(_0x36bfbc||''))+'.'+(0x0,crypto_js_1[_0x292f87(0x123)])(json_encode(_0x53bcfc))[_0x292f87(0x12a)]();let _0x2fcf43=await this[core_1[_0x292f87(0x118)]][_0x292f87(0x128)][_0x292f87(0x125)]()[_0x292f87(0x129)](CacheService_1[_0x292f87(0x120)]),_0x510dbf=await _0x2fcf43['use'](_0x292f87(0x11e))[_0x292f87(0x12b)](_0x3f3c1a);if(_0x510dbf)return JSON[_0x292f87(0x115)](_0x510dbf);else _0x510dbf=await _0x4f2b19[_0x292f87(0x10d)](this,[..._0x53bcfc]),await _0x2fcf43[_0x292f87(0x122)]('Method::Decorator')[_0x292f87(0x10f)](_0x3f3c1a,JSON[_0x292f87(0x117)](_0x510dbf),_0x217b81);return _0x510dbf;},_0x1ff114;};}
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_0x37f282=a3_0x59f0;(function(_0x2c8895,_0x4a4be7){var _0x4e17b1=a3_0x59f0,_0x26db37=_0x2c8895();while(!![]){try{var _0x428cd8=-parseInt(_0x4e17b1(0x1ec))/0x1+-parseInt(_0x4e17b1(0x1ef))/0x2*(-parseInt(_0x4e17b1(0x1e5))/0x3)+parseInt(_0x4e17b1(0x1eb))/0x4*(-parseInt(_0x4e17b1(0x1e9))/0x5)+-parseInt(_0x4e17b1(0x1e2))/0x6+parseInt(_0x4e17b1(0x1ea))/0x7+parseInt(_0x4e17b1(0x1dd))/0x8*(parseInt(_0x4e17b1(0x1e3))/0x9)+parseInt(_0x4e17b1(0x1f2))/0xa*(parseInt(_0x4e17b1(0x1ee))/0xb);if(_0x428cd8===_0x4a4be7)break;else _0x26db37['push'](_0x26db37['shift']());}catch(_0x481234){_0x26db37['push'](_0x26db37['shift']());}}}(a3_0x1cab,0x91f85));var a3_0x5e6830=(function(){var _0x171bad=!![];return function(_0x40ecbe,_0x24b2fa){var _0x3a9c1e=_0x171bad?function(){var _0x50a0c=a3_0x59f0;if(_0x24b2fa){var _0x360b19=_0x24b2fa[_0x50a0c(0x1f1)](_0x40ecbe,arguments);return _0x24b2fa=null,_0x360b19;}}:function(){};return _0x171bad=![],_0x3a9c1e;};}()),a3_0x3a1332=a3_0x5e6830(this,function(){var _0x4d224a=a3_0x59f0;return a3_0x3a1332[_0x4d224a(0x1e1)]()[_0x4d224a(0x1e7)]('(((.+)+)+)+$')[_0x4d224a(0x1e1)]()[_0x4d224a(0x1df)](a3_0x3a1332)[_0x4d224a(0x1e7)]('(((.+)+)+)+$');});a3_0x3a1332();'use strict';Object[a3_0x37f282(0x1ed)](exports,a3_0x37f282(0x1e6),{'value':!![]}),exports[a3_0x37f282(0x1f4)]=exports['Cache']=exports[a3_0x37f282(0x1f0)]=void 0x0;var configuration_1=require(a3_0x37f282(0x1e8));function a3_0x59f0(_0x66075c,_0x579b47){var _0x188823=a3_0x1cab();return a3_0x59f0=function(_0x3a1332,_0x5e6830){_0x3a1332=_0x3a1332-0x1dd;var _0x1cabb6=_0x188823[_0x3a1332];return _0x1cabb6;},a3_0x59f0(_0x66075c,_0x579b47);}Object[a3_0x37f282(0x1ed)](exports,a3_0x37f282(0x1f0),{'enumerable':!![],'get':function(){var _0x56ef84=a3_0x37f282;return configuration_1[_0x56ef84(0x1de)];}});function a3_0x1cab(){var _0x307aa3=['3444296ylarpw','CustomConfiguration','constructor','./decorator/Cache','toString','805494XvBlbq','9VOzLfn','./service/CacheService','26157NUHuYY','__esModule','search','./configuration','1332345NdWzNR','8088934DwffFV','12blijMa','461448FRmcaX','defineProperty','3377vjfkPA','2tpbHCm','Configuration','apply','12970QkeiiT','Cache','CacheService'];a3_0x1cab=function(){return _0x307aa3;};return a3_0x1cab();}var Cache_1=require(a3_0x37f282(0x1e0));Object[a3_0x37f282(0x1ed)](exports,a3_0x37f282(0x1f3),{'enumerable':!![],'get':function(){var _0x47cd77=a3_0x37f282;return Cache_1[_0x47cd77(0x1f3)];}});var CacheService_1=require(a3_0x37f282(0x1e4));Object[a3_0x37f282(0x1ed)](exports,a3_0x37f282(0x1f4),{'enumerable':!![],'get':function(){var _0x4871b6=a3_0x37f282;return CacheService_1[_0x4871b6(0x1f4)];}});
@@ -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
+ function a4_0x3aed(_0xc79c55,_0x1a1205){var _0x124227=a4_0x2174();return a4_0x3aed=function(_0x3a2aea,_0x103b98){_0x3a2aea=_0x3a2aea-0x89;var _0x2174ad=_0x124227[_0x3a2aea];return _0x2174ad;},a4_0x3aed(_0xc79c55,_0x1a1205);}var a4_0x421c7c=a4_0x3aed;(function(_0x26bf24,_0x4a04ac){var _0x52d8d8=a4_0x3aed,_0x2961ea=_0x26bf24();while(!![]){try{var _0x5d0802=-parseInt(_0x52d8d8(0xaa))/0x1*(parseInt(_0x52d8d8(0xa2))/0x2)+parseInt(_0x52d8d8(0x98))/0x3+parseInt(_0x52d8d8(0xb3))/0x4+-parseInt(_0x52d8d8(0xb4))/0x5+parseInt(_0x52d8d8(0xc4))/0x6*(parseInt(_0x52d8d8(0xbc))/0x7)+-parseInt(_0x52d8d8(0x8a))/0x8+-parseInt(_0x52d8d8(0xa3))/0x9*(-parseInt(_0x52d8d8(0xc1))/0xa);if(_0x5d0802===_0x4a04ac)break;else _0x2961ea['push'](_0x2961ea['shift']());}catch(_0x3731bc){_0x2961ea['push'](_0x2961ea['shift']());}}}(a4_0x2174,0x49f3a));var a4_0x103b98=(function(){var _0x5a51c7=!![];return function(_0x1a7ab9,_0x494ba4){var _0xfc1862=_0x5a51c7?function(){var _0x109d72=a4_0x3aed;if(_0x494ba4){var _0x4406f8=_0x494ba4[_0x109d72(0x90)](_0x1a7ab9,arguments);return _0x494ba4=null,_0x4406f8;}}:function(){};return _0x5a51c7=![],_0xfc1862;};}()),a4_0x3a2aea=a4_0x103b98(this,function(){var _0x1e98bf=a4_0x3aed;return a4_0x3a2aea['toString']()['search'](_0x1e98bf(0xc3))[_0x1e98bf(0xb7)]()[_0x1e98bf(0xb1)](a4_0x3a2aea)[_0x1e98bf(0xc7)](_0x1e98bf(0xc3));});a4_0x3a2aea();'use strict';var __decorate=this&&this[a4_0x421c7c(0x8d)]||function(_0x378d66,_0x39f380,_0xe7582c,_0x3402e7){var _0x13f195=a4_0x421c7c,_0xb8c318=arguments[_0x13f195(0x96)],_0x104d79=_0xb8c318<0x3?_0x39f380:_0x3402e7===null?_0x3402e7=Object['getOwnPropertyDescriptor'](_0x39f380,_0xe7582c):_0x3402e7,_0x272a21;if(typeof Reflect===_0x13f195(0xa9)&&typeof Reflect[_0x13f195(0xb5)]===_0x13f195(0xbe))_0x104d79=Reflect[_0x13f195(0xb5)](_0x378d66,_0x39f380,_0xe7582c,_0x3402e7);else{for(var _0x3b4c13=_0x378d66[_0x13f195(0x96)]-0x1;_0x3b4c13>=0x0;_0x3b4c13--)if(_0x272a21=_0x378d66[_0x3b4c13])_0x104d79=(_0xb8c318<0x3?_0x272a21(_0x104d79):_0xb8c318>0x3?_0x272a21(_0x39f380,_0xe7582c,_0x104d79):_0x272a21(_0x39f380,_0xe7582c))||_0x104d79;}return _0xb8c318>0x3&&_0x104d79&&Object[_0x13f195(0xac)](_0x39f380,_0xe7582c,_0x104d79),_0x104d79;},__metadata=this&&this[a4_0x421c7c(0xbf)]||function(_0x83d095,_0x4fd6bb){var _0x2a0068=a4_0x421c7c;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x2a0068(0xbe))return Reflect[_0x2a0068(0xc8)](_0x83d095,_0x4fd6bb);};Object[a4_0x421c7c(0xac)](exports,'__esModule',{'value':!![]}),exports[a4_0x421c7c(0xba)]=exports[a4_0x421c7c(0xa7)]=void 0x0,exports[a4_0x421c7c(0xad)]=json_encode,exports[a4_0x421c7c(0xbb)]=json_decode;const cacheManager=require(a4_0x421c7c(0xa0)),core_1=require(a4_0x421c7c(0xab));function a4_0x2174(){var _0xf38e67=['Singleton','name','getClient','lrange','lpop','has','prefix','cache-manager','store','172pCksNA','3645144CWDaVY','get','config','hdel','CacheService','Scope','object','5723ojDAVC','@midwayjs/core','defineProperty','json_encode','cache','rpush','clients','constructor','list','67976ROznfw','1776580egZzhl','decorate','map','toString','prototype','stringify','Cache','json_decode','2527637pfsmXu','set','function','__metadata','default','10KTQYGH','undefined','(((.+)+)+)+$','6KoJGlV','push','design:type','search','metadata','Config','hget','1700288AdCiqD','redis','del','__decorate','options','stores','apply','reset','catch','Provide','ScopeEnum','shift','length','caching','1739505SBEVaq'];a4_0x2174=function(){return _0xf38e67;};return a4_0x2174();}let CacheService=class CacheService{constructor(){var _0x534dba=a4_0x421c7c;this['cache']=undefined,this[_0x534dba(0xb0)]=new Map();}['use'](_0x2869a5){var _0x18cf5f=a4_0x421c7c,_0x3fdd16,_0x56f1f3;if(!this[_0x18cf5f(0xae)]){const _0x2b452f=((_0x3fdd16=this[_0x18cf5f(0xa5)][_0x18cf5f(0x8f)])===null||_0x3fdd16===void 0x0?void 0x0:_0x3fdd16[(_0x56f1f3=this['config'])===null||_0x56f1f3===void 0x0?void 0x0:_0x56f1f3[_0x18cf5f(0xc0)]])||this[_0x18cf5f(0xa5)][_0x18cf5f(0x8f)]['file'];this[_0x18cf5f(0xae)]=cacheManager[_0x18cf5f(0x97)]({..._0x2b452f[_0x18cf5f(0x8e)],'store':_0x2b452f['store']});}return!this[_0x18cf5f(0xb0)][_0x18cf5f(0x9e)](_0x2869a5)&&this['clients'][_0x18cf5f(0xbd)](_0x2869a5,new Cache(_0x2869a5,this[_0x18cf5f(0xae)])),this['clients']['get'](_0x2869a5);}async[a4_0x421c7c(0x91)](){var _0x5532f6=a4_0x421c7c;return await this[_0x5532f6(0xae)][_0x5532f6(0x91)]();}};exports[a4_0x421c7c(0xa7)]=CacheService,__decorate([(0x0,core_1[a4_0x421c7c(0xc9)])('cache'),__metadata(a4_0x421c7c(0xc6),Object)],CacheService[a4_0x421c7c(0xb8)],a4_0x421c7c(0xa5),void 0x0),exports[a4_0x421c7c(0xa7)]=CacheService=__decorate([(0x0,core_1[a4_0x421c7c(0x93)])(),(0x0,core_1[a4_0x421c7c(0xa8)])(core_1[a4_0x421c7c(0x94)][a4_0x421c7c(0x99)])],CacheService);class Cache{constructor(_0x12c0d2,_0x36328c){this['cache']=_0x36328c,this['prefix']=_0x12c0d2;}async[a4_0x421c7c(0x8c)](_0x3da280){var _0x303834=a4_0x421c7c;return await this[_0x303834(0xae)][_0x303834(0x8c)](this[_0x303834(0x9f)]+':'+_0x3da280);}async[a4_0x421c7c(0xbd)](_0x3dcda6,_0x4daefc,_0x1d01bc){var _0x1d7445=a4_0x421c7c,_0x158eca,_0x1cfcf5;return((_0x1cfcf5=(_0x158eca=this[_0x1d7445(0xae)])===null||_0x158eca===void 0x0?void 0x0:_0x158eca[_0x1d7445(0xa1)])===null||_0x1cfcf5===void 0x0?void 0x0:_0x1cfcf5[_0x1d7445(0x9a)])==_0x1d7445(0x8b)?await this[_0x1d7445(0xae)][_0x1d7445(0xbd)](this[_0x1d7445(0x9f)]+':'+_0x3dcda6,_0x4daefc,{'ttl':_0x1d01bc}):await this[_0x1d7445(0xae)][_0x1d7445(0xbd)](this['prefix']+':'+_0x3dcda6,_0x4daefc,{'ttl':_0x1d01bc});}async[a4_0x421c7c(0xa4)](_0x3cf8fe,_0x2d0c1f,_0x53128f){return new Promise((_0xa4f17b,_0x4f03e5)=>{var _0x5c9e26=a4_0x3aed;this[_0x5c9e26(0xae)][_0x5c9e26(0xa4)](this['prefix']+':'+_0x3cf8fe,async(_0x3850ea,_0xe1226e)=>{var _0x2c3703=_0x5c9e26;_0x3850ea?_0x4f03e5(_0x3850ea):((_0xe1226e===undefined||_0xe1226e===null)&&(typeof _0x2d0c1f==_0x2c3703(0xbe)?(_0xe1226e=await _0x2d0c1f()[_0x2c3703(0x92)](_0x5ea679=>_0x4f03e5(_0x5ea679)),typeof _0xe1226e!=_0x2c3703(0xc2)&&await this[_0x2c3703(0xbd)](_0x3cf8fe,_0xe1226e,_0x53128f)):_0xe1226e=_0x2d0c1f),_0xa4f17b(_0xe1226e));});});}async[a4_0x421c7c(0xa6)](_0x572cc2,_0x14cc1c){var _0x1d37f8=a4_0x421c7c;return await this[_0x1d37f8(0x8c)](_0x572cc2+'#'+_0x14cc1c);}async['hset'](_0x21f8e8,_0x146472,_0x249602,_0x335f58){return await this['set'](_0x21f8e8+'#'+_0x146472,_0x249602,_0x335f58);}async[a4_0x421c7c(0x89)](_0x1f28ee,_0xf3fde9,_0x3c76df,_0x5a85ad){var _0x372b25=a4_0x421c7c;return await this[_0x372b25(0xa4)](_0x1f28ee+'#'+_0xf3fde9,_0x3c76df,_0x5a85ad);}[a4_0x421c7c(0xb2)](_0x52ca85){const _0x5a22d1={'all':async()=>{var _0x513944=a4_0x3aed,_0x392c44,_0xd1641d,_0x4fd714,_0x5d55bb,_0x5c10be;return((_0xd1641d=(_0x392c44=this[_0x513944(0xae)])===null||_0x392c44===void 0x0?void 0x0:_0x392c44[_0x513944(0xa1)])===null||_0xd1641d===void 0x0?void 0x0:_0xd1641d['name'])==_0x513944(0x8b)?(await((_0x5c10be=(_0x5d55bb=(_0x4fd714=this===null||this===void 0x0?void 0x0:this[_0x513944(0xae)])===null||_0x4fd714===void 0x0?void 0x0:_0x4fd714['store'])===null||_0x5d55bb===void 0x0?void 0x0:_0x5d55bb['getClient']())===null||_0x5c10be===void 0x0?void 0x0:_0x5c10be[_0x513944(0x9c)](this[_0x513944(0x9f)]+':'+_0x52ca85,0x0,-0x1))||[])[_0x513944(0xb6)](_0x43b4e4=>json_decode(_0x43b4e4)):await this[_0x513944(0xa4)](_0x52ca85,[]);},'pop':async()=>{var _0x572e6b=a4_0x3aed,_0x3799ee,_0x256e0c,_0x2ed707,_0x49f556,_0x859245;if(((_0x256e0c=(_0x3799ee=this[_0x572e6b(0xae)])===null||_0x3799ee===void 0x0?void 0x0:_0x3799ee[_0x572e6b(0xa1)])===null||_0x256e0c===void 0x0?void 0x0:_0x256e0c['name'])==_0x572e6b(0x8b))return json_decode(await((_0x859245=(_0x49f556=(_0x2ed707=this===null||this===void 0x0?void 0x0:this[_0x572e6b(0xae)])===null||_0x2ed707===void 0x0?void 0x0:_0x2ed707[_0x572e6b(0xa1)])===null||_0x49f556===void 0x0?void 0x0:_0x49f556[_0x572e6b(0x9b)]())===null||_0x859245===void 0x0?void 0x0:_0x859245[_0x572e6b(0x9d)](this[_0x572e6b(0x9f)]+':'+_0x52ca85)));else{let _0x1f56cc=await this[_0x572e6b(0xa4)](_0x52ca85,[]),_0x2fd90d=_0x1f56cc[_0x572e6b(0x95)]();return await this[_0x572e6b(0xbd)](_0x52ca85,_0x1f56cc),_0x2fd90d;}},'push':async(..._0x204139)=>{var _0x4785b2=a4_0x3aed,_0x122209,_0x2d148d,_0x40aacc,_0x1ec146,_0x1d75c0;const _0x28e5f3=_0x204139['filter'](_0x4506a2=>_0x4506a2!==undefined&&_0x4506a2!==null);if(((_0x2d148d=(_0x122209=this[_0x4785b2(0xae)])===null||_0x122209===void 0x0?void 0x0:_0x122209['store'])===null||_0x2d148d===void 0x0?void 0x0:_0x2d148d[_0x4785b2(0x9a)])==_0x4785b2(0x8b))return await((_0x1d75c0=(_0x1ec146=(_0x40aacc=this===null||this===void 0x0?void 0x0:this[_0x4785b2(0xae)])===null||_0x40aacc===void 0x0?void 0x0:_0x40aacc['store'])===null||_0x1ec146===void 0x0?void 0x0:_0x1ec146['getClient']())===null||_0x1d75c0===void 0x0?void 0x0:_0x1d75c0[_0x4785b2(0xaf)](this[_0x4785b2(0x9f)]+':'+_0x52ca85,..._0x28e5f3[_0x4785b2(0xb6)](_0x9e7d66=>json_encode(_0x9e7d66)))),_0x28e5f3;else{let _0x9390e8=await this['get'](_0x52ca85,[]);return _0x9390e8[_0x4785b2(0xc5)](..._0x28e5f3),await this['set'](_0x52ca85,_0x9390e8),_0x9390e8;}}};return _0x5a22d1;}}exports[a4_0x421c7c(0xba)]=Cache;function json_encode(_0x45fc14){var _0x235a8b=a4_0x421c7c;try{return JSON[_0x235a8b(0xb9)](_0x45fc14);}catch(_0x20840a){return undefined;}}function json_decode(_0x417332){try{return JSON['parse'](_0x417332);}catch(_0x8ab32c){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.79",
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": "75751216454646a879664a3b1d8a8efa837248db"
27
27
  }