@anncic-api/cache 3.4.51 → 3.4.53

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.
@@ -5,7 +5,6 @@ declare const _default: (appinfo: any) => {
5
5
  file: {
6
6
  store: any;
7
7
  options: {
8
- ttl: number;
9
8
  subdirs: boolean;
10
9
  path: string;
11
10
  };
@@ -16,7 +15,6 @@ declare const _default: (appinfo: any) => {
16
15
  port: number;
17
16
  host: string;
18
17
  password: string;
19
- ttl: number;
20
18
  keyPrefix: string;
21
19
  };
22
20
  };
@@ -24,7 +22,6 @@ declare const _default: (appinfo: any) => {
24
22
  store: string;
25
23
  options: {
26
24
  max: number;
27
- ttl: number;
28
25
  };
29
26
  };
30
27
  };
@@ -1 +1 @@
1
- function a0_0x4e7f(){const _0x137fcc=['8093835XsfJxb','constructor','82955QQPQqY','48765uTVjwa','default','name','apply','1833635qzqoEK','toString','file','608520vVclMc','127.0.0.1','cache-manager-ioredis','3050257skuQlt','defineProperty','7172200bIkCyR','(((.+)+)+)+$','12pjWThx','__esModule','cache-manager-fs-hash','env','search','208CbMQNO','appDir'];a0_0x4e7f=function(){return _0x137fcc;};return a0_0x4e7f();}const a0_0x1a65b0=a0_0x2a33;(function(_0x4aa304,_0x409c42){const _0x4a923a=a0_0x2a33,_0x12ac99=_0x4aa304();while(!![]){try{const _0x5236b8=-parseInt(_0x4a923a(0xf8))/0x1+parseInt(_0x4a923a(0xe8))/0x2+parseInt(_0x4a923a(0xf9))/0x3*(parseInt(_0x4a923a(0xf4))/0x4)+parseInt(_0x4a923a(0xfd))/0x5+parseInt(_0x4a923a(0xef))/0x6*(parseInt(_0x4a923a(0xeb))/0x7)+-parseInt(_0x4a923a(0xed))/0x8+-parseInt(_0x4a923a(0xf6))/0x9;if(_0x5236b8===_0x409c42)break;else _0x12ac99['push'](_0x12ac99['shift']());}catch(_0x17d161){_0x12ac99['push'](_0x12ac99['shift']());}}}(a0_0x4e7f,0x7c41a));const a0_0x260848=(function(){let _0x35fedd=!![];return function(_0x72ce2e,_0x2e8d2a){const _0x20412d=_0x35fedd?function(){const _0x5e596e=a0_0x2a33;if(_0x2e8d2a){const _0xc86050=_0x2e8d2a[_0x5e596e(0xfc)](_0x72ce2e,arguments);return _0x2e8d2a=null,_0xc86050;}}:function(){};return _0x35fedd=![],_0x20412d;};}()),a0_0x265143=a0_0x260848(this,function(){const _0xb587ac=a0_0x2a33;return a0_0x265143[_0xb587ac(0xfe)]()[_0xb587ac(0xf3)](_0xb587ac(0xee))[_0xb587ac(0xfe)]()[_0xb587ac(0xf7)](a0_0x265143)[_0xb587ac(0xf3)](_0xb587ac(0xee));});a0_0x265143();'use strict';function a0_0x2a33(_0x230598,_0x263309){const _0x4bf795=a0_0x4e7f();return a0_0x2a33=function(_0x265143,_0x260848){_0x265143=_0x265143-0xe8;let _0x4e7f79=_0x4bf795[_0x265143];return _0x4e7f79;},a0_0x2a33(_0x230598,_0x263309);}Object[a0_0x1a65b0(0xec)](exports,a0_0x1a65b0(0xf0),{'value':!![]});const fsStore=require(a0_0x1a65b0(0xf1)),redisStore=require(a0_0x1a65b0(0xea));exports[a0_0x1a65b0(0xfa)]=_0x2d826d=>{const _0x494053=a0_0x1a65b0;return{'cache':{'default':_0x494053(0xff),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x2d826d[_0x494053(0xf5)]+'/runtime/.cache'+((_0x2d826d===null||_0x2d826d===void 0x0?void 0x0:_0x2d826d['env'])?'-'+_0x2d826d['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x494053(0xe9),'password':'','ttl':0xed4e00,'keyPrefix':_0x2d826d[_0x494053(0xfb)]+':'+((_0x2d826d===null||_0x2d826d===void 0x0?void 0x0:_0x2d826d[_0x494053(0xf2)])?_0x2d826d[_0x494053(0xf2)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0xed4e00}}}}};};
1
+ const a0_0x24e3a5=a0_0x1b53;(function(_0x15fef9,_0x13c657){const _0x534408=a0_0x1b53,_0x350e0b=_0x15fef9();while(!![]){try{const _0x201077=-parseInt(_0x534408(0xb3))/0x1+-parseInt(_0x534408(0xaf))/0x2*(-parseInt(_0x534408(0xac))/0x3)+-parseInt(_0x534408(0xa3))/0x4+-parseInt(_0x534408(0xb6))/0x5+parseInt(_0x534408(0xa7))/0x6+-parseInt(_0x534408(0xb5))/0x7+parseInt(_0x534408(0xad))/0x8*(parseInt(_0x534408(0xaa))/0x9);if(_0x201077===_0x13c657)break;else _0x350e0b['push'](_0x350e0b['shift']());}catch(_0x27633a){_0x350e0b['push'](_0x350e0b['shift']());}}}(a0_0x52b0,0x7a307));const a0_0x41de3c=(function(){let _0x255feb=!![];return function(_0x53b701,_0x17135c){const _0x523319=_0x255feb?function(){const _0x466167=a0_0x1b53;if(_0x17135c){const _0x25f13e=_0x17135c[_0x466167(0xae)](_0x53b701,arguments);return _0x17135c=null,_0x25f13e;}}:function(){};return _0x255feb=![],_0x523319;};}()),a0_0x27378b=a0_0x41de3c(this,function(){const _0x118767=a0_0x1b53;return a0_0x27378b[_0x118767(0xa4)]()[_0x118767(0xa8)]('(((.+)+)+)+$')[_0x118767(0xa4)]()[_0x118767(0xb0)](a0_0x27378b)[_0x118767(0xa8)](_0x118767(0xa5));});a0_0x27378b();function a0_0x52b0(){const _0x3eee05=['search','cache-manager-ioredis','8183898CbArTc','default','39PJlKxT','16BUbdKN','apply','84902HGQfWG','constructor','name','/runtime/.cache','642631qVRZrY','appDir','6643133SjQNPJ','2700320XhbzgL','memory','1840352KTYoBs','toString','(((.+)+)+)+$','env','4330692hjgZPJ'];a0_0x52b0=function(){return _0x3eee05;};return a0_0x52b0();}'use strict';function a0_0x1b53(_0x3e459b,_0x308209){const _0xe89532=a0_0x52b0();return a0_0x1b53=function(_0x27378b,_0x41de3c){_0x27378b=_0x27378b-0xa2;let _0x52b0d4=_0xe89532[_0x27378b];return _0x52b0d4;},a0_0x1b53(_0x3e459b,_0x308209);}Object['defineProperty'](exports,'__esModule',{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x24e3a5(0xa9));exports[a0_0x24e3a5(0xab)]=_0x280bff=>{const _0x492d9f=a0_0x24e3a5;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x280bff[_0x492d9f(0xb4)]+_0x492d9f(0xb2)+((_0x280bff===null||_0x280bff===void 0x0?void 0x0:_0x280bff[_0x492d9f(0xa6)])?'-'+_0x280bff[_0x492d9f(0xa6)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x280bff[_0x492d9f(0xb1)]+':'+((_0x280bff===null||_0x280bff===void 0x0?void 0x0:_0x280bff[_0x492d9f(0xa6)])?_0x280bff['env']+':':'')}},'memory':{'store':_0x492d9f(0xa2),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x496c91=a1_0x305a;(function(_0x4ec168,_0x2c3538){var _0x18ed23=a1_0x305a,_0x4e899b=_0x4ec168();while(!![]){try{var _0xb75112=-parseInt(_0x18ed23(0x11a))/0x1*(parseInt(_0x18ed23(0x110))/0x2)+-parseInt(_0x18ed23(0x117))/0x3+-parseInt(_0x18ed23(0x10f))/0x4+-parseInt(_0x18ed23(0x11f))/0x5*(parseInt(_0x18ed23(0x10b))/0x6)+parseInt(_0x18ed23(0x109))/0x7*(-parseInt(_0x18ed23(0x111))/0x8)+parseInt(_0x18ed23(0x118))/0x9*(parseInt(_0x18ed23(0x119))/0xa)+parseInt(_0x18ed23(0x116))/0xb;if(_0xb75112===_0x2c3538)break;else _0x4e899b['push'](_0x4e899b['shift']());}catch(_0x429073){_0x4e899b['push'](_0x4e899b['shift']());}}}(a1_0x5ec8,0x4bde4));var a1_0x544019=(function(){var _0x2f23d7=!![];return function(_0x3362c6,_0x2d00df){var _0x4d524a=_0x2f23d7?function(){var _0x32fc31=a1_0x305a;if(_0x2d00df){var _0x2cd626=_0x2d00df[_0x32fc31(0x10e)](_0x3362c6,arguments);return _0x2d00df=null,_0x2cd626;}}:function(){};return _0x2f23d7=![],_0x4d524a;};}()),a1_0x467a4c=a1_0x544019(this,function(){var _0x105e21=a1_0x305a;return a1_0x467a4c[_0x105e21(0x114)]()[_0x105e21(0x11b)](_0x105e21(0x11e))[_0x105e21(0x114)]()[_0x105e21(0x112)](a1_0x467a4c)[_0x105e21(0x11b)](_0x105e21(0x11e));});a1_0x467a4c();'use strict';var __decorate=this&&this['__decorate']||function(_0x8ec0f6,_0x4f5e82,_0x7d2fdd,_0x37ccbc){var _0x30f14b=a1_0x305a,_0x44bcf4=arguments['length'],_0x1d9ac4=_0x44bcf4<0x3?_0x4f5e82:_0x37ccbc===null?_0x37ccbc=Object[_0x30f14b(0x11c)](_0x4f5e82,_0x7d2fdd):_0x37ccbc,_0x5a7199;if(typeof Reflect===_0x30f14b(0x10a)&&typeof Reflect[_0x30f14b(0x115)]===_0x30f14b(0x11d))_0x1d9ac4=Reflect['decorate'](_0x8ec0f6,_0x4f5e82,_0x7d2fdd,_0x37ccbc);else{for(var _0x427a49=_0x8ec0f6[_0x30f14b(0x120)]-0x1;_0x427a49>=0x0;_0x427a49--)if(_0x5a7199=_0x8ec0f6[_0x427a49])_0x1d9ac4=(_0x44bcf4<0x3?_0x5a7199(_0x1d9ac4):_0x44bcf4>0x3?_0x5a7199(_0x4f5e82,_0x7d2fdd,_0x1d9ac4):_0x5a7199(_0x4f5e82,_0x7d2fdd))||_0x1d9ac4;}return _0x44bcf4>0x3&&_0x1d9ac4&&Object[_0x30f14b(0x123)](_0x4f5e82,_0x7d2fdd,_0x1d9ac4),_0x1d9ac4;};function a1_0x305a(_0x2f7191,_0x1bfe99){var _0x10efbc=a1_0x5ec8();return a1_0x305a=function(_0x467a4c,_0x544019){_0x467a4c=_0x467a4c-0x109;var _0x5ec802=_0x10efbc[_0x467a4c];return _0x5ec802;},a1_0x305a(_0x2f7191,_0x1bfe99);}Object[a1_0x496c91(0x123)](exports,a1_0x496c91(0x121),{'value':!![]}),exports[a1_0x496c91(0x10d)]=void 0x0;const core_1=require(a1_0x496c91(0x122)),ConfigDefault=require(a1_0x496c91(0x113));let CustomConfiguration=class CustomConfiguration{};function a1_0x5ec8(){var _0x45686a=['392sUznAv','constructor','./config/config.default','toString','decorate','22269830FQhyFG','1801401RtkcNH','193518RmazDm','40wSJNiB','1BJIKmH','search','getOwnPropertyDescriptor','function','(((.+)+)+)+$','6915ayLLDi','length','__esModule','@midwayjs/core','defineProperty','Configuration','21427yhOCjK','object','786LoZnQr','anncic-api:cache','CustomConfiguration','apply','1751248Bppqmz','860682wrEDpW'];a1_0x5ec8=function(){return _0x45686a;};return a1_0x5ec8();}exports[a1_0x496c91(0x10d)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x496c91(0x124)])({'conflictCheck':![],'namespace':a1_0x496c91(0x10c),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x4d47fc=a1_0x5b89;(function(_0x112924,_0x20846e){var _0x355139=a1_0x5b89,_0xe20f2e=_0x112924();while(!![]){try{var _0x213194=parseInt(_0x355139(0x15f))/0x1*(parseInt(_0x355139(0x171))/0x2)+parseInt(_0x355139(0x16d))/0x3+parseInt(_0x355139(0x16a))/0x4*(parseInt(_0x355139(0x16e))/0x5)+parseInt(_0x355139(0x15c))/0x6+-parseInt(_0x355139(0x165))/0x7+-parseInt(_0x355139(0x169))/0x8+parseInt(_0x355139(0x168))/0x9*(-parseInt(_0x355139(0x166))/0xa);if(_0x213194===_0x20846e)break;else _0xe20f2e['push'](_0xe20f2e['shift']());}catch(_0x20777e){_0xe20f2e['push'](_0xe20f2e['shift']());}}}(a1_0x1f2d,0x9d6ac));var a1_0x316bfb=(function(){var _0x59e370=!![];return function(_0x504360,_0x2530d0){var _0x2c5e0f=_0x59e370?function(){var _0x39369f=a1_0x5b89;if(_0x2530d0){var _0x101b85=_0x2530d0[_0x39369f(0x15e)](_0x504360,arguments);return _0x2530d0=null,_0x101b85;}}:function(){};return _0x59e370=![],_0x2c5e0f;};}()),a1_0x3f1009=a1_0x316bfb(this,function(){var _0x4e249a=a1_0x5b89;return a1_0x3f1009['toString']()[_0x4e249a(0x167)](_0x4e249a(0x170))[_0x4e249a(0x164)]()['constructor'](a1_0x3f1009)[_0x4e249a(0x167)](_0x4e249a(0x170));});a1_0x3f1009();function a1_0x5b89(_0x16b55e,_0x2ad4fa){var _0x34ef07=a1_0x1f2d();return a1_0x5b89=function(_0x3f1009,_0x316bfb){_0x3f1009=_0x3f1009-0x15c;var _0x1f2db2=_0x34ef07[_0x3f1009];return _0x1f2db2;},a1_0x5b89(_0x16b55e,_0x2ad4fa);}'use strict';var __decorate=this&&this[a1_0x4d47fc(0x160)]||function(_0x2048ed,_0xbeaa9c,_0x50cae7,_0x9ce5e9){var _0x193bbb=a1_0x4d47fc,_0x547226=arguments[_0x193bbb(0x16f)],_0x503353=_0x547226<0x3?_0xbeaa9c:_0x9ce5e9===null?_0x9ce5e9=Object[_0x193bbb(0x16b)](_0xbeaa9c,_0x50cae7):_0x9ce5e9,_0x1e43b8;if(typeof Reflect===_0x193bbb(0x161)&&typeof Reflect[_0x193bbb(0x15d)]==='function')_0x503353=Reflect['decorate'](_0x2048ed,_0xbeaa9c,_0x50cae7,_0x9ce5e9);else{for(var _0x438c9e=_0x2048ed[_0x193bbb(0x16f)]-0x1;_0x438c9e>=0x0;_0x438c9e--)if(_0x1e43b8=_0x2048ed[_0x438c9e])_0x503353=(_0x547226<0x3?_0x1e43b8(_0x503353):_0x547226>0x3?_0x1e43b8(_0xbeaa9c,_0x50cae7,_0x503353):_0x1e43b8(_0xbeaa9c,_0x50cae7))||_0x503353;}return _0x547226>0x3&&_0x503353&&Object['defineProperty'](_0xbeaa9c,_0x50cae7,_0x503353),_0x503353;};Object[a1_0x4d47fc(0x162)](exports,a1_0x4d47fc(0x173),{'value':!![]}),exports[a1_0x4d47fc(0x16c)]=void 0x0;const core_1=require(a1_0x4d47fc(0x163)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x4d47fc(0x16c)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x4d47fc(0x172)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);function a1_0x1f2d(){var _0x4df00c=['search','9mzsRqw','8062808KTcZmx','1564PPMdCb','getOwnPropertyDescriptor','CustomConfiguration','3620799OVEbFB','15885Dlrkxp','length','(((.+)+)+)+$','2UFJJXE','Configuration','__esModule','4745382fmYOji','decorate','apply','589807snYaWy','__decorate','object','defineProperty','@midwayjs/core','toString','8311709DtubDF','9898260hQEnaN'];a1_0x1f2d=function(){return _0x4df00c;};return a1_0x1f2d();}
@@ -1 +1 @@
1
- const a2_0x131034=a2_0x168c;(function(_0x1b91ac,_0x40d3a1){const _0x453c6c=a2_0x168c,_0x2652de=_0x1b91ac();while(!![]){try{const _0x2bbed8=parseInt(_0x453c6c(0x1c2))/0x1+-parseInt(_0x453c6c(0x1c3))/0x2*(-parseInt(_0x453c6c(0x1d2))/0x3)+-parseInt(_0x453c6c(0x1cb))/0x4*(parseInt(_0x453c6c(0x1cc))/0x5)+-parseInt(_0x453c6c(0x1d5))/0x6+parseInt(_0x453c6c(0x1cd))/0x7+-parseInt(_0x453c6c(0x1bd))/0x8+parseInt(_0x453c6c(0x1bc))/0x9;if(_0x2bbed8===_0x40d3a1)break;else _0x2652de['push'](_0x2652de['shift']());}catch(_0x5047cd){_0x2652de['push'](_0x2652de['shift']());}}}(a2_0x1f97,0xa9974));const a2_0x2d9fe0=(function(){let _0x439c5e=!![];return function(_0x5657f3,_0x299497){const _0x452fb1=_0x439c5e?function(){const _0x596526=a2_0x168c;if(_0x299497){const _0x1f3593=_0x299497[_0x596526(0x1d3)](_0x5657f3,arguments);return _0x299497=null,_0x1f3593;}}:function(){};return _0x439c5e=![],_0x452fb1;};}()),a2_0x4e8f43=a2_0x2d9fe0(this,function(){const _0x32e659=a2_0x168c;return a2_0x4e8f43[_0x32e659(0x1cf)]()[_0x32e659(0x1c6)]('(((.+)+)+)+$')['toString']()[_0x32e659(0x1d1)](a2_0x4e8f43)[_0x32e659(0x1c6)]('(((.+)+)+)+$');});a2_0x4e8f43();function a2_0x1f97(){const _0x3837e8=['5376880rbiufm','Cache','getApplicationContext','get','parse','240562GLplRU','1992XpkDQa','@midwayjs/core','defineProperty','search','app','crypto-js','Method::Decorator','use','8ifUyYG','3286790vovGtm','9054311quKyhw','CacheService','toString','value','constructor','1068uiaxcJ','apply','REQUEST_OBJ_CTX_KEY','4161912GfTrcE','__esModule','stringify','set','13378599jtGunM'];a2_0x1f97=function(){return _0x3837e8;};return a2_0x1f97();}'use strict';Object[a2_0x131034(0x1c5)](exports,a2_0x131034(0x1d6),{'value':!![]}),exports[a2_0x131034(0x1be)]=Cache;const crypto_js_1=require(a2_0x131034(0x1c8)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x131034(0x1c4));function json_encode(_0x160abd){const _0x14e6a4=a2_0x131034;try{return JSON[_0x14e6a4(0x1d7)](_0x160abd);}catch(_0x4c3a40){return undefined;}}function a2_0x168c(_0x446902,_0x225f12){const _0x2b8db7=a2_0x1f97();return a2_0x168c=function(_0x4e8f43,_0x2d9fe0){_0x4e8f43=_0x4e8f43-0x1bb;let _0x1f979d=_0x2b8db7[_0x4e8f43];return _0x1f979d;},a2_0x168c(_0x446902,_0x225f12);}function Cache(_0x12bc2c,_0x8775b6){return(_0x277fbc,_0x38b143,_0x4b45ce)=>{const _0xf63d21=a2_0x168c,_0x582549=_0x4b45ce[_0xf63d21(0x1d0)];return _0x4b45ce['value']=async function(..._0x200310){const _0x5756cb=_0xf63d21;_0x12bc2c=(_0x12bc2c?''+_0x12bc2c:''+(_0x38b143||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x200310))[_0x5756cb(0x1cf)]();let _0x728d23=await this[core_1[_0x5756cb(0x1d4)]][_0x5756cb(0x1c7)][_0x5756cb(0x1bf)]()['getAsync'](CacheService_1[_0x5756cb(0x1ce)]),_0x44fe1a=await _0x728d23[_0x5756cb(0x1ca)](_0x5756cb(0x1c9))[_0x5756cb(0x1c0)](_0x12bc2c);if(_0x44fe1a)return JSON[_0x5756cb(0x1c1)](_0x44fe1a);else _0x44fe1a=await _0x582549['apply'](this,[..._0x200310]),await _0x728d23[_0x5756cb(0x1ca)](_0x5756cb(0x1c9))[_0x5756cb(0x1bb)](_0x12bc2c,JSON['stringify'](_0x44fe1a),_0x8775b6);return _0x44fe1a;},_0x4b45ce;};}
1
+ const a2_0x52fd79=a2_0xa78e;(function(_0x5bb249,_0x331a58){const _0x38e63d=a2_0xa78e,_0x3edfe8=_0x5bb249();while(!![]){try{const _0x33bb57=-parseInt(_0x38e63d(0xca))/0x1*(-parseInt(_0x38e63d(0xb9))/0x2)+-parseInt(_0x38e63d(0xb6))/0x3*(-parseInt(_0x38e63d(0xb0))/0x4)+parseInt(_0x38e63d(0xb5))/0x5+-parseInt(_0x38e63d(0xba))/0x6+-parseInt(_0x38e63d(0xb1))/0x7+parseInt(_0x38e63d(0xb7))/0x8+parseInt(_0x38e63d(0xbb))/0x9*(-parseInt(_0x38e63d(0xc7))/0xa);if(_0x33bb57===_0x331a58)break;else _0x3edfe8['push'](_0x3edfe8['shift']());}catch(_0x4c8a52){_0x3edfe8['push'](_0x3edfe8['shift']());}}}(a2_0x31f7,0xc7b84));const a2_0x9e0279=(function(){let _0x4dfb2a=!![];return function(_0x5799e3,_0x27ac3d){const _0x42ca75=_0x4dfb2a?function(){const _0x32a4ef=a2_0xa78e;if(_0x27ac3d){const _0x1d982a=_0x27ac3d[_0x32a4ef(0xc8)](_0x5799e3,arguments);return _0x27ac3d=null,_0x1d982a;}}:function(){};return _0x4dfb2a=![],_0x42ca75;};}()),a2_0x4ce175=a2_0x9e0279(this,function(){const _0x192df6=a2_0xa78e;return a2_0x4ce175[_0x192df6(0xae)]()[_0x192df6(0xc2)]('(((.+)+)+)+$')[_0x192df6(0xae)]()['constructor'](a2_0x4ce175)[_0x192df6(0xc2)](_0x192df6(0xbc));});a2_0x4ce175();'use strict';function a2_0xa78e(_0x53b2be,_0x3138b8){const _0x8d5fd9=a2_0x31f7();return a2_0xa78e=function(_0x4ce175,_0x9e0279){_0x4ce175=_0x4ce175-0xad;let _0x31f792=_0x8d5fd9[_0x4ce175];return _0x31f792;},a2_0xa78e(_0x53b2be,_0x3138b8);}Object[a2_0x52fd79(0xb3)](exports,a2_0x52fd79(0xc4),{'value':!![]}),exports[a2_0x52fd79(0xc3)]=Cache;const crypto_js_1=require(a2_0x52fd79(0xc1)),CacheService_1=require(a2_0x52fd79(0xbd)),core_1=require(a2_0x52fd79(0xbf));function json_encode(_0x38c41a){const _0x2bb8ee=a2_0x52fd79;try{return JSON[_0x2bb8ee(0xad)](_0x38c41a);}catch(_0x404558){return undefined;}}function a2_0x31f7(){const _0x19e5b6=['(((.+)+)+)+$','../service/CacheService','set','@midwayjs/core','MD5','crypto-js','search','Cache','__esModule','app','parse','670xfEwOO','apply','use','337tupegY','get','getAsync','REQUEST_OBJ_CTX_KEY','stringify','toString','Method::Decorator','396AMLJXa','7316533GZMTad','CacheService','defineProperty','getApplicationContext','7522950pRNqfw','34281EbqJHQ','6744696jnQFpx','value','3602RUUDIP','7605990ZqdSmJ','128277gvdwrn'];a2_0x31f7=function(){return _0x19e5b6;};return a2_0x31f7();}function Cache(_0x47065d,_0x4acbca){return(_0x208e6b,_0x55d473,_0x2f2f6e)=>{const _0x331c78=a2_0xa78e,_0x3329bc=_0x2f2f6e[_0x331c78(0xb8)];return _0x2f2f6e[_0x331c78(0xb8)]=async function(..._0x2969ba){const _0x488d7f=_0x331c78;_0x47065d=(_0x47065d?''+_0x47065d:''+(_0x55d473||''))+'.'+(0x0,crypto_js_1[_0x488d7f(0xc0)])(json_encode(_0x2969ba))[_0x488d7f(0xae)]();let _0x55e7ae=await this[core_1[_0x488d7f(0xcd)]][_0x488d7f(0xc5)][_0x488d7f(0xb4)]()[_0x488d7f(0xcc)](CacheService_1[_0x488d7f(0xb2)]),_0x466fbe=await _0x55e7ae['use'](_0x488d7f(0xaf))[_0x488d7f(0xcb)](_0x47065d);if(_0x466fbe)return JSON[_0x488d7f(0xc6)](_0x466fbe);else _0x466fbe=await _0x3329bc[_0x488d7f(0xc8)](this,[..._0x2969ba]),await _0x55e7ae[_0x488d7f(0xc9)](_0x488d7f(0xaf))[_0x488d7f(0xbe)](_0x47065d,JSON[_0x488d7f(0xad)](_0x466fbe),_0x4acbca);return _0x466fbe;},_0x2f2f6e;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x30f59d=a3_0x4f91;(function(_0x367be0,_0xb6269f){var _0x335d91=a3_0x4f91,_0x3014ab=_0x367be0();while(!![]){try{var _0xe5113=-parseInt(_0x335d91(0x123))/0x1+parseInt(_0x335d91(0x126))/0x2+parseInt(_0x335d91(0x117))/0x3*(-parseInt(_0x335d91(0x111))/0x4)+-parseInt(_0x335d91(0x121))/0x5*(parseInt(_0x335d91(0x125))/0x6)+-parseInt(_0x335d91(0x11b))/0x7+-parseInt(_0x335d91(0x112))/0x8*(-parseInt(_0x335d91(0x127))/0x9)+parseInt(_0x335d91(0x11d))/0xa*(parseInt(_0x335d91(0x119))/0xb);if(_0xe5113===_0xb6269f)break;else _0x3014ab['push'](_0x3014ab['shift']());}catch(_0x4b7c39){_0x3014ab['push'](_0x3014ab['shift']());}}}(a3_0x5d7f,0xb7ff4));var a3_0x4fc8b5=(function(){var _0x13fc3d=!![];return function(_0x43947e,_0x1e4a4c){var _0x41fc12=_0x13fc3d?function(){var _0x4a2100=a3_0x4f91;if(_0x1e4a4c){var _0x8e9dde=_0x1e4a4c[_0x4a2100(0x114)](_0x43947e,arguments);return _0x1e4a4c=null,_0x8e9dde;}}:function(){};return _0x13fc3d=![],_0x41fc12;};}()),a3_0x3b5fe1=a3_0x4fc8b5(this,function(){var _0x369666=a3_0x4f91;return a3_0x3b5fe1[_0x369666(0x122)]()[_0x369666(0x118)]('(((.+)+)+)+$')[_0x369666(0x122)]()[_0x369666(0x124)](a3_0x3b5fe1)[_0x369666(0x118)](_0x369666(0x113));});a3_0x3b5fe1();'use strict';Object['defineProperty'](exports,a3_0x30f59d(0x11e),{'value':!![]}),exports['CacheService']=exports[a3_0x30f59d(0x128)]=exports[a3_0x30f59d(0x116)]=void 0x0;var configuration_1=require(a3_0x30f59d(0x120));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0xe64643=a3_0x30f59d;return configuration_1[_0xe64643(0x115)];}});function a3_0x4f91(_0x378c87,_0x189cb5){var _0x49f112=a3_0x5d7f();return a3_0x4f91=function(_0x3b5fe1,_0x4fc8b5){_0x3b5fe1=_0x3b5fe1-0x111;var _0x5d7f4b=_0x49f112[_0x3b5fe1];return _0x5d7f4b;},a3_0x4f91(_0x378c87,_0x189cb5);}var Cache_1=require(a3_0x30f59d(0x11a));Object['defineProperty'](exports,a3_0x30f59d(0x128),{'enumerable':!![],'get':function(){var _0x4724f7=a3_0x30f59d;return Cache_1[_0x4724f7(0x128)];}});function a3_0x5d7f(){var _0x577c03=['CustomConfiguration','Configuration','60eLsFfu','search','2521893KGWdBn','./decorator/Cache','3915681hzqtVI','./service/CacheService','30mpejeS','__esModule','CacheService','./configuration','20WPGIwu','toString','114739ZxbugC','constructor','586260nqbzph','142138XJpKKV','3239181WBuwUo','Cache','75976xqyXnB','32pbVfqT','(((.+)+)+)+$','apply'];a3_0x5d7f=function(){return _0x577c03;};return a3_0x5d7f();}var CacheService_1=require(a3_0x30f59d(0x11c));Object['defineProperty'](exports,a3_0x30f59d(0x11f),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ var a3_0x2e5123=a3_0x3d98;(function(_0x1050e1,_0x3cef72){var _0x439a3b=a3_0x3d98,_0xbca138=_0x1050e1();while(!![]){try{var _0x3ef191=-parseInt(_0x439a3b(0x199))/0x1+parseInt(_0x439a3b(0x1a1))/0x2*(-parseInt(_0x439a3b(0x19d))/0x3)+-parseInt(_0x439a3b(0x1a6))/0x4+-parseInt(_0x439a3b(0x19e))/0x5+-parseInt(_0x439a3b(0x1a5))/0x6*(parseInt(_0x439a3b(0x1aa))/0x7)+-parseInt(_0x439a3b(0x1a0))/0x8+-parseInt(_0x439a3b(0x197))/0x9*(-parseInt(_0x439a3b(0x196))/0xa);if(_0x3ef191===_0x3cef72)break;else _0xbca138['push'](_0xbca138['shift']());}catch(_0x16deda){_0xbca138['push'](_0xbca138['shift']());}}}(a3_0x27d6,0xf21a7));var a3_0xfcb015=(function(){var _0x464a5f=!![];return function(_0x8bd99f,_0x333ca9){var _0x32a19c=_0x464a5f?function(){if(_0x333ca9){var _0x16d452=_0x333ca9['apply'](_0x8bd99f,arguments);return _0x333ca9=null,_0x16d452;}}:function(){};return _0x464a5f=![],_0x32a19c;};}()),a3_0x334703=a3_0xfcb015(this,function(){var _0xf2de7a=a3_0x3d98;return a3_0x334703[_0xf2de7a(0x19c)]()['search'](_0xf2de7a(0x19a))['toString']()['constructor'](a3_0x334703)['search'](_0xf2de7a(0x19a));});a3_0x334703();'use strict';function a3_0x27d6(){var _0x4e24ac=['./configuration','__esModule','Configuration','7mjlihL','13774870wHtkwv','45LcXydy','CacheService','1166768HEgUkn','(((.+)+)+)+$','./decorator/Cache','toString','229062VEyNQI','2538225dBSoKA','CustomConfiguration','13722488pPKdjM','36joESZd','Cache','./service/CacheService','defineProperty','4013052dQvwKS','1851368PTQnOP'];a3_0x27d6=function(){return _0x4e24ac;};return a3_0x27d6();}Object[a3_0x2e5123(0x1a4)](exports,a3_0x2e5123(0x1a8),{'value':!![]}),exports['CacheService']=exports[a3_0x2e5123(0x1a2)]=exports[a3_0x2e5123(0x1a9)]=void 0x0;function a3_0x3d98(_0x352289,_0x2f4ea){var _0x3a9f3b=a3_0x27d6();return a3_0x3d98=function(_0x334703,_0xfcb015){_0x334703=_0x334703-0x196;var _0x27d6a3=_0x3a9f3b[_0x334703];return _0x27d6a3;},a3_0x3d98(_0x352289,_0x2f4ea);}var configuration_1=require(a3_0x2e5123(0x1a7));Object['defineProperty'](exports,a3_0x2e5123(0x1a9),{'enumerable':!![],'get':function(){var _0x1d8c2c=a3_0x2e5123;return configuration_1[_0x1d8c2c(0x19f)];}});var Cache_1=require(a3_0x2e5123(0x19b));Object['defineProperty'](exports,a3_0x2e5123(0x1a2),{'enumerable':!![],'get':function(){var _0x396925=a3_0x2e5123;return Cache_1[_0x396925(0x1a2)];}});var CacheService_1=require(a3_0x2e5123(0x1a3));Object[a3_0x2e5123(0x1a4)](exports,a3_0x2e5123(0x198),{'enumerable':!![],'get':function(){var _0x400738=a3_0x2e5123;return CacheService_1[_0x400738(0x198)];}});
@@ -1 +1 @@
1
- var a4_0x29c083=a4_0x3a11;function a4_0x3a11(_0x47409e,_0x1d1d5d){var _0x32e25=a4_0x5f2f();return a4_0x3a11=function(_0xec50ea,_0x3a5f95){_0xec50ea=_0xec50ea-0xd9;var _0x5f2f09=_0x32e25[_0xec50ea];return _0x5f2f09;},a4_0x3a11(_0x47409e,_0x1d1d5d);}(function(_0x4d721f,_0xc6a607){var _0xadfc22=a4_0x3a11,_0x5d75a0=_0x4d721f();while(!![]){try{var _0x242dfd=-parseInt(_0xadfc22(0xe5))/0x1+parseInt(_0xadfc22(0xdf))/0x2+-parseInt(_0xadfc22(0xff))/0x3*(parseInt(_0xadfc22(0xfa))/0x4)+-parseInt(_0xadfc22(0xf9))/0x5+parseInt(_0xadfc22(0xf2))/0x6+parseInt(_0xadfc22(0xfe))/0x7+parseInt(_0xadfc22(0x101))/0x8*(parseInt(_0xadfc22(0xe1))/0x9);if(_0x242dfd===_0xc6a607)break;else _0x5d75a0['push'](_0x5d75a0['shift']());}catch(_0x5a31fe){_0x5d75a0['push'](_0x5d75a0['shift']());}}}(a4_0x5f2f,0x9e35a));var a4_0x3a5f95=(function(){var _0xedc2dd=!![];return function(_0x416646,_0x374519){var _0x49976d=_0xedc2dd?function(){var _0x591efd=a4_0x3a11;if(_0x374519){var _0x4857c9=_0x374519[_0x591efd(0xfb)](_0x416646,arguments);return _0x374519=null,_0x4857c9;}}:function(){};return _0xedc2dd=![],_0x49976d;};}()),a4_0xec50ea=a4_0x3a5f95(this,function(){var _0x1ce085=a4_0x3a11;return a4_0xec50ea[_0x1ce085(0xdd)]()[_0x1ce085(0xfc)](_0x1ce085(0xdc))[_0x1ce085(0xdd)]()[_0x1ce085(0xf8)](a4_0xec50ea)[_0x1ce085(0xfc)]('(((.+)+)+)+$');});a4_0xec50ea();'use strict';function a4_0x5f2f(){var _0x44a943=['has','getOwnPropertyDescriptor','hget','options','store','defineProperty','(((.+)+)+)+$','toString','ScopeEnum','725688EQwWGo','file','279OhclSL','__esModule','prefix','set','1240739ZOfTZN','Cache','function','cache','default','design:type','clients','decorate','del','Config','use','cache-manager','@midwayjs/core','5164644DokeXY','caching','object','reset','hset','metadata','constructor','4236255UQMKve','4748ETItUP','apply','search','config','6812736EfYjhI','693hWuWux','Provide','209896oUWFEh','get','stores','CacheService','length'];a4_0x5f2f=function(){return _0x44a943;};return a4_0x5f2f();}var __decorate=this&&this['__decorate']||function(_0x3facc3,_0x1a1c3a,_0x22e150,_0x11b7be){var _0x4cf222=a4_0x3a11,_0x41c3d2=arguments[_0x4cf222(0x105)],_0x1bb86c=_0x41c3d2<0x3?_0x1a1c3a:_0x11b7be===null?_0x11b7be=Object[_0x4cf222(0x107)](_0x1a1c3a,_0x22e150):_0x11b7be,_0x6d1a7c;if(typeof Reflect===_0x4cf222(0xf4)&&typeof Reflect[_0x4cf222(0xec)]===_0x4cf222(0xe7))_0x1bb86c=Reflect[_0x4cf222(0xec)](_0x3facc3,_0x1a1c3a,_0x22e150,_0x11b7be);else{for(var _0x4d019e=_0x3facc3['length']-0x1;_0x4d019e>=0x0;_0x4d019e--)if(_0x6d1a7c=_0x3facc3[_0x4d019e])_0x1bb86c=(_0x41c3d2<0x3?_0x6d1a7c(_0x1bb86c):_0x41c3d2>0x3?_0x6d1a7c(_0x1a1c3a,_0x22e150,_0x1bb86c):_0x6d1a7c(_0x1a1c3a,_0x22e150))||_0x1bb86c;}return _0x41c3d2>0x3&&_0x1bb86c&&Object['defineProperty'](_0x1a1c3a,_0x22e150,_0x1bb86c),_0x1bb86c;},__metadata=this&&this['__metadata']||function(_0x7c0bf2,_0x55d8ca){var _0x3f9845=a4_0x3a11;if(typeof Reflect===_0x3f9845(0xf4)&&typeof Reflect[_0x3f9845(0xf7)]===_0x3f9845(0xe7))return Reflect[_0x3f9845(0xf7)](_0x7c0bf2,_0x55d8ca);};Object[a4_0x29c083(0xdb)](exports,a4_0x29c083(0xe2),{'value':!![]}),exports[a4_0x29c083(0xe6)]=exports[a4_0x29c083(0x104)]=void 0x0;const cacheManager=require(a4_0x29c083(0xf0)),core_1=require(a4_0x29c083(0xf1));let CacheService=class CacheService{constructor(){var _0x337cde=a4_0x29c083;this[_0x337cde(0xe8)]=undefined,this[_0x337cde(0xeb)]=new Map();}[a4_0x29c083(0xef)](_0x2e46c9){var _0x4a4722=a4_0x29c083,_0x1cc866,_0x5809a3;if(!this[_0x4a4722(0xe8)]){const _0x44a347=((_0x1cc866=this['config'][_0x4a4722(0x103)])===null||_0x1cc866===void 0x0?void 0x0:_0x1cc866[(_0x5809a3=this[_0x4a4722(0xfd)])===null||_0x5809a3===void 0x0?void 0x0:_0x5809a3[_0x4a4722(0xe9)]])||this[_0x4a4722(0xfd)]['stores'][_0x4a4722(0xe0)];this['cache']=cacheManager[_0x4a4722(0xf3)]({..._0x44a347[_0x4a4722(0xd9)],'store':_0x44a347[_0x4a4722(0xda)]});}return!this['clients'][_0x4a4722(0x106)](_0x2e46c9)&&this[_0x4a4722(0xeb)][_0x4a4722(0xe4)](_0x2e46c9,new Cache(_0x2e46c9,this[_0x4a4722(0xe8)])),this['clients']['get'](_0x2e46c9);}async[a4_0x29c083(0xf5)](){var _0x28f271=a4_0x29c083;return await this[_0x28f271(0xe8)][_0x28f271(0xf5)]();}};exports[a4_0x29c083(0x104)]=CacheService,__decorate([(0x0,core_1[a4_0x29c083(0xee)])('cache'),__metadata(a4_0x29c083(0xea),Object)],CacheService['prototype'],a4_0x29c083(0xfd),void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1[a4_0x29c083(0x100)])(),(0x0,core_1['Scope'])(core_1[a4_0x29c083(0xde)]['Singleton'])],CacheService);class Cache{constructor(_0x307a99,_0x450dc3){var _0x19242f=a4_0x29c083;this[_0x19242f(0xe8)]=_0x450dc3,this['prefix']=_0x307a99;}async[a4_0x29c083(0xed)](_0x163256){var _0x47cc0a=a4_0x29c083;return await this[_0x47cc0a(0xe8)][_0x47cc0a(0xed)](this[_0x47cc0a(0xe3)]+':'+_0x163256);}async[a4_0x29c083(0xe4)](_0x100418,_0x2aed58,_0x1f6e48){var _0x5e2920=a4_0x29c083;return await this[_0x5e2920(0xe8)][_0x5e2920(0xe4)](this['prefix']+':'+_0x100418,_0x2aed58,_0x1f6e48);}async[a4_0x29c083(0x102)](_0x3b7348,_0x322331){return new Promise((_0x14df5a,_0x32fbfc)=>{var _0x5c52e0=a4_0x3a11;this[_0x5c52e0(0xe8)][_0x5c52e0(0x102)](this['prefix']+':'+_0x3b7348,(_0x2fc272,_0x51f819)=>{_0x2fc272?_0x32fbfc(_0x2fc272):_0x14df5a(_0x51f819||_0x322331);});});}async['hdel'](_0x9c522a,_0x27487f){var _0x57feba=a4_0x29c083;return await this[_0x57feba(0xed)](_0x9c522a+'#'+_0x27487f);}async[a4_0x29c083(0xf6)](_0x1840ff,_0x420040,_0x3a3d18,_0x3ed38){return await this['set'](_0x1840ff+'#'+_0x420040,_0x3a3d18,_0x3ed38);}async[a4_0x29c083(0x108)](_0x43e82f,_0x2c38c1,_0xf91a1d){var _0x5f558f=a4_0x29c083;return await this[_0x5f558f(0x102)](_0x43e82f+'#'+_0x2c38c1,_0xf91a1d);}}exports[a4_0x29c083(0xe6)]=Cache;
1
+ var a4_0x10aa37=a4_0x5432;function a4_0x5432(_0x55e51e,_0x478af4){var _0x586309=a4_0x4495();return a4_0x5432=function(_0x4aef3e,_0x283ff6){_0x4aef3e=_0x4aef3e-0xcb;var _0x4495e0=_0x586309[_0x4aef3e];return _0x4495e0;},a4_0x5432(_0x55e51e,_0x478af4);}(function(_0x7b3ffc,_0x24d66b){var _0x5b9420=a4_0x5432,_0x50609c=_0x7b3ffc();while(!![]){try{var _0x17e2eb=-parseInt(_0x5b9420(0xf5))/0x1+-parseInt(_0x5b9420(0xd7))/0x2+parseInt(_0x5b9420(0xf1))/0x3*(-parseInt(_0x5b9420(0xf3))/0x4)+parseInt(_0x5b9420(0xf0))/0x5+parseInt(_0x5b9420(0xfb))/0x6*(parseInt(_0x5b9420(0xcc))/0x7)+parseInt(_0x5b9420(0xd2))/0x8*(-parseInt(_0x5b9420(0xe2))/0x9)+parseInt(_0x5b9420(0xe7))/0xa;if(_0x17e2eb===_0x24d66b)break;else _0x50609c['push'](_0x50609c['shift']());}catch(_0x4ae128){_0x50609c['push'](_0x50609c['shift']());}}}(a4_0x4495,0xcbf27));var a4_0x283ff6=(function(){var _0x1e5215=!![];return function(_0x1a9f6e,_0x203203){var _0x2e535c=_0x1e5215?function(){var _0x326f2f=a4_0x5432;if(_0x203203){var _0x1bb5bb=_0x203203[_0x326f2f(0xcd)](_0x1a9f6e,arguments);return _0x203203=null,_0x1bb5bb;}}:function(){};return _0x1e5215=![],_0x2e535c;};}()),a4_0x4aef3e=a4_0x283ff6(this,function(){var _0x937e5c=a4_0x5432;return a4_0x4aef3e[_0x937e5c(0xe0)]()[_0x937e5c(0xe6)](_0x937e5c(0xed))[_0x937e5c(0xe0)]()['constructor'](a4_0x4aef3e)['search'](_0x937e5c(0xed));});a4_0x4aef3e();'use strict';function a4_0x4495(){var _0x2a25c9=['stores','6188216UQcoyU','metadata','Scope','CacheService','design:type','1924248IqxxrO','del','file','__metadata','cache-manager','store','get','@midwayjs/core','Cache','toString','hdel','18qqIswt','Singleton','options','ScopeEnum','search','25697260DaAegZ','getOwnPropertyDescriptor','caching','name','function','Config','(((.+)+)+)+$','defineProperty','hset','7753825qknQBP','244905DNRrSW','decorate','68FohQXd','prefix','273720GpjWVq','reset','config','object','length','clients','6jZsFsS','redis','6198983DcDxux','apply','set','Provide','cache'];a4_0x4495=function(){return _0x2a25c9;};return a4_0x4495();}var __decorate=this&&this['__decorate']||function(_0x1a4d98,_0x5d2a18,_0x2f4e7f,_0x1a0b4b){var _0x2c37a5=a4_0x5432,_0x18a03a=arguments[_0x2c37a5(0xf9)],_0x2bc861=_0x18a03a<0x3?_0x5d2a18:_0x1a0b4b===null?_0x1a0b4b=Object[_0x2c37a5(0xe8)](_0x5d2a18,_0x2f4e7f):_0x1a0b4b,_0x2df6c5;if(typeof Reflect===_0x2c37a5(0xf8)&&typeof Reflect[_0x2c37a5(0xf2)]==='function')_0x2bc861=Reflect[_0x2c37a5(0xf2)](_0x1a4d98,_0x5d2a18,_0x2f4e7f,_0x1a0b4b);else{for(var _0x5026cd=_0x1a4d98[_0x2c37a5(0xf9)]-0x1;_0x5026cd>=0x0;_0x5026cd--)if(_0x2df6c5=_0x1a4d98[_0x5026cd])_0x2bc861=(_0x18a03a<0x3?_0x2df6c5(_0x2bc861):_0x18a03a>0x3?_0x2df6c5(_0x5d2a18,_0x2f4e7f,_0x2bc861):_0x2df6c5(_0x5d2a18,_0x2f4e7f))||_0x2bc861;}return _0x18a03a>0x3&&_0x2bc861&&Object[_0x2c37a5(0xee)](_0x5d2a18,_0x2f4e7f,_0x2bc861),_0x2bc861;},__metadata=this&&this[a4_0x10aa37(0xda)]||function(_0xf081c5,_0x50fe67){var _0x4138ea=a4_0x10aa37;if(typeof Reflect===_0x4138ea(0xf8)&&typeof Reflect[_0x4138ea(0xd3)]===_0x4138ea(0xeb))return Reflect[_0x4138ea(0xd3)](_0xf081c5,_0x50fe67);};Object[a4_0x10aa37(0xee)](exports,'__esModule',{'value':!![]}),exports['Cache']=exports[a4_0x10aa37(0xd5)]=void 0x0;const cacheManager=require(a4_0x10aa37(0xdb)),core_1=require(a4_0x10aa37(0xde));let CacheService=class CacheService{constructor(){var _0x3d22d6=a4_0x10aa37;this[_0x3d22d6(0xd0)]=undefined,this[_0x3d22d6(0xfa)]=new Map();}['use'](_0xd1bb3f){var _0x260d7c=a4_0x10aa37,_0x36744d,_0x216d05;if(!this[_0x260d7c(0xd0)]){const _0x3d681f=((_0x36744d=this['config'][_0x260d7c(0xd1)])===null||_0x36744d===void 0x0?void 0x0:_0x36744d[(_0x216d05=this[_0x260d7c(0xf7)])===null||_0x216d05===void 0x0?void 0x0:_0x216d05['default']])||this[_0x260d7c(0xf7)]['stores'][_0x260d7c(0xd9)];this[_0x260d7c(0xd0)]=cacheManager[_0x260d7c(0xe9)]({..._0x3d681f[_0x260d7c(0xe4)],'store':_0x3d681f['store']});}return!this['clients']['has'](_0xd1bb3f)&&this[_0x260d7c(0xfa)][_0x260d7c(0xce)](_0xd1bb3f,new Cache(_0xd1bb3f,this[_0x260d7c(0xd0)])),this[_0x260d7c(0xfa)][_0x260d7c(0xdd)](_0xd1bb3f);}async[a4_0x10aa37(0xf6)](){var _0x37261b=a4_0x10aa37;return await this[_0x37261b(0xd0)]['reset']();}};exports[a4_0x10aa37(0xd5)]=CacheService,__decorate([(0x0,core_1[a4_0x10aa37(0xec)])(a4_0x10aa37(0xd0)),__metadata(a4_0x10aa37(0xd6),Object)],CacheService['prototype'],a4_0x10aa37(0xf7),void 0x0),exports[a4_0x10aa37(0xd5)]=CacheService=__decorate([(0x0,core_1[a4_0x10aa37(0xcf)])(),(0x0,core_1[a4_0x10aa37(0xd4)])(core_1[a4_0x10aa37(0xe5)][a4_0x10aa37(0xe3)])],CacheService);class Cache{constructor(_0x299610,_0xd1eca){var _0x54db34=a4_0x10aa37;this[_0x54db34(0xd0)]=_0xd1eca,this[_0x54db34(0xf4)]=_0x299610;}async[a4_0x10aa37(0xd8)](_0x20ec59){var _0x5b4213=a4_0x10aa37;return await this[_0x5b4213(0xd0)][_0x5b4213(0xd8)](this['prefix']+':'+_0x20ec59);}async[a4_0x10aa37(0xce)](_0x4af33a,_0x406744,_0x2f90bd){var _0x32ad54=a4_0x10aa37,_0x4d322a,_0x5deefc;return((_0x5deefc=(_0x4d322a=this[_0x32ad54(0xd0)])===null||_0x4d322a===void 0x0?void 0x0:_0x4d322a[_0x32ad54(0xdc)])===null||_0x5deefc===void 0x0?void 0x0:_0x5deefc[_0x32ad54(0xea)])==_0x32ad54(0xcb)?await this[_0x32ad54(0xd0)][_0x32ad54(0xce)](this[_0x32ad54(0xf4)]+':'+_0x4af33a,_0x406744,{'ttl':_0x2f90bd}):await this[_0x32ad54(0xd0)][_0x32ad54(0xce)](this['prefix']+':'+_0x4af33a,_0x406744,_0x2f90bd);}async[a4_0x10aa37(0xdd)](_0x328022,_0x3438f4){return new Promise((_0x19e27b,_0x1d77c3)=>{var _0x3ef618=a4_0x5432;this['cache'][_0x3ef618(0xdd)](this['prefix']+':'+_0x328022,(_0x3d189b,_0x3abdd8)=>{_0x3d189b?_0x1d77c3(_0x3d189b):_0x19e27b(_0x3abdd8||_0x3438f4);});});}async[a4_0x10aa37(0xe1)](_0x3e306b,_0x293c2a){var _0x3378ae=a4_0x10aa37;return await this[_0x3378ae(0xd8)](_0x3e306b+'#'+_0x293c2a);}async[a4_0x10aa37(0xef)](_0x2dc211,_0x5286e5,_0x1c22f4,_0x3b6cf7){var _0x2f671c=a4_0x10aa37;return await this[_0x2f671c(0xce)](_0x2dc211+'#'+_0x5286e5,_0x1c22f4,_0x3b6cf7);}async['hget'](_0x24ea10,_0x492108,_0x115601){var _0x3431b1=a4_0x10aa37;return await this[_0x3431b1(0xdd)](_0x24ea10+'#'+_0x492108,_0x115601);}}exports[a4_0x10aa37(0xdf)]=Cache;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.51",
3
+ "version": "3.4.53",
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": "af85e33129fdd9c9f5028b6f12ad31676e4e1ae0"
26
+ "gitHead": "4cafd5d54157f141defc7ed3e3b7044bd43dc4f6"
27
27
  }