@anncic-api/cache 3.4.51 → 3.4.52

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_0xb73810=a0_0xa859;(function(_0x29c7bb,_0x33d7c4){const _0x361003=a0_0xa859,_0x3a74db=_0x29c7bb();while(!![]){try{const _0x1c5e72=-parseInt(_0x361003(0x14d))/0x1*(parseInt(_0x361003(0x157))/0x2)+parseInt(_0x361003(0x14f))/0x3+-parseInt(_0x361003(0x152))/0x4+-parseInt(_0x361003(0x148))/0x5+parseInt(_0x361003(0x15c))/0x6*(parseInt(_0x361003(0x146))/0x7)+-parseInt(_0x361003(0x151))/0x8+parseInt(_0x361003(0x14b))/0x9*(parseInt(_0x361003(0x14e))/0xa);if(_0x1c5e72===_0x33d7c4)break;else _0x3a74db['push'](_0x3a74db['shift']());}catch(_0x201760){_0x3a74db['push'](_0x3a74db['shift']());}}}(a0_0x32d1,0x7c5ad));const a0_0x3d91af=(function(){let _0x20c217=!![];return function(_0x169801,_0x371399){const _0x1f4161=_0x20c217?function(){const _0x409b34=a0_0xa859;if(_0x371399){const _0x28c63c=_0x371399[_0x409b34(0x158)](_0x169801,arguments);return _0x371399=null,_0x28c63c;}}:function(){};return _0x20c217=![],_0x1f4161;};}()),a0_0x38419a=a0_0x3d91af(this,function(){const _0x41b910=a0_0xa859;return a0_0x38419a[_0x41b910(0x156)]()['search'](_0x41b910(0x155))[_0x41b910(0x156)]()[_0x41b910(0x147)](a0_0x38419a)['search']('(((.+)+)+)+$');});a0_0x38419a();'use strict';Object[a0_0xb73810(0x15a)](exports,'__esModule',{'value':!![]});function a0_0xa859(_0x218204,_0x1f82d9){const _0x3297d4=a0_0x32d1();return a0_0xa859=function(_0x38419a,_0x3d91af){_0x38419a=_0x38419a-0x146;let _0x32d107=_0x3297d4[_0x38419a];return _0x32d107;},a0_0xa859(_0x218204,_0x1f82d9);}function a0_0x32d1(){const _0x257949=['25FsvYhm','5607310oDiRnr','120732hYYoyY','env','5965800lsYkzq','2139012wdUzeg','cache-manager-fs-hash','appDir','(((.+)+)+)+$','toString','26278ssJnes','apply','/runtime/.cache','defineProperty','127.0.0.1','228nQjBIC','131831ZGiBZl','constructor','4402560qVYThj','default','file','36bvlCki','memory'];a0_0x32d1=function(){return _0x257949;};return a0_0x32d1();}const fsStore=require(a0_0xb73810(0x153)),redisStore=require('cache-manager-ioredis');exports[a0_0xb73810(0x149)]=_0x598030=>{const _0xf2af3=a0_0xb73810;return{'cache':{'default':_0xf2af3(0x14a),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x598030[_0xf2af3(0x154)]+_0xf2af3(0x159)+((_0x598030===null||_0x598030===void 0x0?void 0x0:_0x598030[_0xf2af3(0x150)])?'-'+_0x598030['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0xf2af3(0x15b),'password':'','keyPrefix':_0x598030['name']+':'+((_0x598030===null||_0x598030===void 0x0?void 0x0:_0x598030[_0xf2af3(0x150)])?_0x598030[_0xf2af3(0x150)]+':':'')}},'memory':{'store':_0xf2af3(0x14c),'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_0x5ceef5=a1_0x416a;(function(_0x1f5137,_0x5d4f15){var _0x28529b=a1_0x416a,_0x33d7a0=_0x1f5137();while(!![]){try{var _0x21b11e=parseInt(_0x28529b(0x1f1))/0x1*(-parseInt(_0x28529b(0x204))/0x2)+parseInt(_0x28529b(0x202))/0x3*(-parseInt(_0x28529b(0x1f0))/0x4)+parseInt(_0x28529b(0x1f9))/0x5+-parseInt(_0x28529b(0x1fa))/0x6+-parseInt(_0x28529b(0x1f3))/0x7*(-parseInt(_0x28529b(0x1f8))/0x8)+-parseInt(_0x28529b(0x205))/0x9+parseInt(_0x28529b(0x1f7))/0xa;if(_0x21b11e===_0x5d4f15)break;else _0x33d7a0['push'](_0x33d7a0['shift']());}catch(_0x4e8fb7){_0x33d7a0['push'](_0x33d7a0['shift']());}}}(a1_0x496c,0xaad7e));var a1_0x25b746=(function(){var _0x3616d8=!![];return function(_0x24c5d2,_0x21a9c4){var _0x549c98=_0x3616d8?function(){if(_0x21a9c4){var _0x58de6f=_0x21a9c4['apply'](_0x24c5d2,arguments);return _0x21a9c4=null,_0x58de6f;}}:function(){};return _0x3616d8=![],_0x549c98;};}()),a1_0x1d14dd=a1_0x25b746(this,function(){var _0x290097=a1_0x416a;return a1_0x1d14dd[_0x290097(0x1f4)]()['search'](_0x290097(0x1fd))[_0x290097(0x1f4)]()['constructor'](a1_0x1d14dd)['search']('(((.+)+)+)+$');});function a1_0x496c(){var _0x4fbbdb=['defineProperty','object','__esModule','length','1842RPKuwR','decorate','43648HwJkSA','5721624oqSvHK','580dWthBV','20UceNAN','CustomConfiguration','7315UyLtId','toString','function','__decorate','14223460azOLTx','5872uKOnKb','5236960PUuyCp','8254488xEKAnc','Configuration','getOwnPropertyDescriptor','(((.+)+)+)+$'];a1_0x496c=function(){return _0x4fbbdb;};return a1_0x496c();}a1_0x1d14dd();'use strict';var __decorate=this&&this[a1_0x5ceef5(0x1f6)]||function(_0x280b39,_0x4165e2,_0x39e8e1,_0x7e64f7){var _0x37efd8=a1_0x5ceef5,_0x3ff25d=arguments[_0x37efd8(0x201)],_0x1d7b4f=_0x3ff25d<0x3?_0x4165e2:_0x7e64f7===null?_0x7e64f7=Object[_0x37efd8(0x1fc)](_0x4165e2,_0x39e8e1):_0x7e64f7,_0x5b185c;if(typeof Reflect===_0x37efd8(0x1ff)&&typeof Reflect[_0x37efd8(0x203)]===_0x37efd8(0x1f5))_0x1d7b4f=Reflect['decorate'](_0x280b39,_0x4165e2,_0x39e8e1,_0x7e64f7);else{for(var _0x40d0df=_0x280b39[_0x37efd8(0x201)]-0x1;_0x40d0df>=0x0;_0x40d0df--)if(_0x5b185c=_0x280b39[_0x40d0df])_0x1d7b4f=(_0x3ff25d<0x3?_0x5b185c(_0x1d7b4f):_0x3ff25d>0x3?_0x5b185c(_0x4165e2,_0x39e8e1,_0x1d7b4f):_0x5b185c(_0x4165e2,_0x39e8e1))||_0x1d7b4f;}return _0x3ff25d>0x3&&_0x1d7b4f&&Object['defineProperty'](_0x4165e2,_0x39e8e1,_0x1d7b4f),_0x1d7b4f;};function a1_0x416a(_0x3fd0d0,_0x3aa8d8){var _0x288d34=a1_0x496c();return a1_0x416a=function(_0x1d14dd,_0x25b746){_0x1d14dd=_0x1d14dd-0x1f0;var _0x496c86=_0x288d34[_0x1d14dd];return _0x496c86;},a1_0x416a(_0x3fd0d0,_0x3aa8d8);}Object[a1_0x5ceef5(0x1fe)](exports,a1_0x5ceef5(0x200),{'value':!![]}),exports[a1_0x5ceef5(0x1f2)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x5ceef5(0x1f2)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x5ceef5(0x1fb)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -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_0x4b90da=a2_0x7f32;(function(_0x31e15a,_0x23fa49){const _0x411cfd=a2_0x7f32,_0xdcb8bb=_0x31e15a();while(!![]){try{const _0x3a04a8=-parseInt(_0x411cfd(0xda))/0x1*(-parseInt(_0x411cfd(0xee))/0x2)+parseInt(_0x411cfd(0xf4))/0x3*(parseInt(_0x411cfd(0xdd))/0x4)+-parseInt(_0x411cfd(0xe6))/0x5+-parseInt(_0x411cfd(0xdc))/0x6+-parseInt(_0x411cfd(0xf2))/0x7+parseInt(_0x411cfd(0xed))/0x8*(-parseInt(_0x411cfd(0xe3))/0x9)+parseInt(_0x411cfd(0xdf))/0xa;if(_0x3a04a8===_0x23fa49)break;else _0xdcb8bb['push'](_0xdcb8bb['shift']());}catch(_0x4bbcef){_0xdcb8bb['push'](_0xdcb8bb['shift']());}}}(a2_0x31ac,0x268c2));const a2_0x3f111c=(function(){let _0x16a278=!![];return function(_0x5ae9b9,_0x279824){const _0x418e28=_0x16a278?function(){const _0x395efe=a2_0x7f32;if(_0x279824){const _0x545f97=_0x279824[_0x395efe(0xe7)](_0x5ae9b9,arguments);return _0x279824=null,_0x545f97;}}:function(){};return _0x16a278=![],_0x418e28;};}()),a2_0x1114e3=a2_0x3f111c(this,function(){const _0x501383=a2_0x7f32;return a2_0x1114e3[_0x501383(0xea)]()['search'](_0x501383(0xe8))['toString']()[_0x501383(0xe4)](a2_0x1114e3)[_0x501383(0xeb)](_0x501383(0xe8));});a2_0x1114e3();function a2_0x31ac(){const _0x19771e=['search','__esModule','1778280DtSGJy','4nlbqox','value','set','getApplicationContext','1042678WncJua','app','24tNEkAp','Method::Decorator','@midwayjs/core','use','124720zBBZPr','../service/CacheService','600048LjTUNH','136856gAfbUp','crypto-js','2562390ARNPmY','getAsync','REQUEST_OBJ_CTX_KEY','defineProperty','9zDKMwn','constructor','Cache','751270wIgHqV','apply','(((.+)+)+)+$','MD5','toString'];a2_0x31ac=function(){return _0x19771e;};return a2_0x31ac();}'use strict';function a2_0x7f32(_0x451f2e,_0xb49bd3){const _0x47e6fe=a2_0x31ac();return a2_0x7f32=function(_0x1114e3,_0x3f111c){_0x1114e3=_0x1114e3-0xd8;let _0x31acb0=_0x47e6fe[_0x1114e3];return _0x31acb0;},a2_0x7f32(_0x451f2e,_0xb49bd3);}Object[a2_0x4b90da(0xe2)](exports,a2_0x4b90da(0xec),{'value':!![]}),exports[a2_0x4b90da(0xe5)]=Cache;const crypto_js_1=require(a2_0x4b90da(0xde)),CacheService_1=require(a2_0x4b90da(0xdb)),core_1=require(a2_0x4b90da(0xd8));function json_encode(_0x509ada){try{return JSON['stringify'](_0x509ada);}catch(_0x55c023){return undefined;}}function Cache(_0x4163b2,_0x233e88){return(_0x14f904,_0x2608ae,_0x52ba64)=>{const _0x4ea57b=a2_0x7f32,_0x4074e5=_0x52ba64[_0x4ea57b(0xef)];return _0x52ba64[_0x4ea57b(0xef)]=async function(..._0x1b02d3){const _0x39189f=_0x4ea57b;_0x4163b2=(_0x4163b2?''+_0x4163b2:''+(_0x2608ae||''))+'.'+(0x0,crypto_js_1[_0x39189f(0xe9)])(json_encode(_0x1b02d3))[_0x39189f(0xea)]();let _0x44ff25=await this[core_1[_0x39189f(0xe1)]][_0x39189f(0xf3)][_0x39189f(0xf1)]()[_0x39189f(0xe0)](CacheService_1['CacheService']),_0x3af0f=await _0x44ff25[_0x39189f(0xd9)](_0x39189f(0xf5))['get'](_0x4163b2);if(_0x3af0f)return JSON['parse'](_0x3af0f);else _0x3af0f=await _0x4074e5[_0x39189f(0xe7)](this,[..._0x1b02d3]),await _0x44ff25[_0x39189f(0xd9)](_0x39189f(0xf5))[_0x39189f(0xf0)](_0x4163b2,JSON['stringify'](_0x3af0f),_0x233e88);return _0x3af0f;},_0x52ba64;};}
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
+ function a3_0x3084(){var _0xa5b111=['5ComPLk','Configuration','86698rXyWzs','6963720ETAloE','(((.+)+)+)+$','4419MzjFIS','8yfxvrL','498424yhSyQh','CacheService','defineProperty','CustomConfiguration','constructor','search','18762RNLGCT','./configuration','toString','Cache','11nYdeii','1060500BlUaFz','140npXEZy','__esModule','26514LQHDiG','287EYBrTI'];a3_0x3084=function(){return _0xa5b111;};return a3_0x3084();}var a3_0x381e9f=a3_0x1700;(function(_0x258750,_0x9a2b25){var _0x5746e2=a3_0x1700,_0x5e8f51=_0x258750();while(!![]){try{var _0xa6876d=parseInt(_0x5746e2(0x1c7))/0x1*(parseInt(_0x5746e2(0x1c9))/0x2)+parseInt(_0x5746e2(0x1d4))/0x3*(parseInt(_0x5746e2(0x1cd))/0x4)+parseInt(_0x5746e2(0x1c2))/0x5+parseInt(_0x5746e2(0x1c5))/0x6*(parseInt(_0x5746e2(0x1c6))/0x7)+parseInt(_0x5746e2(0x1ce))/0x8+parseInt(_0x5746e2(0x1cc))/0x9*(parseInt(_0x5746e2(0x1c3))/0xa)+-parseInt(_0x5746e2(0x1c1))/0xb*(parseInt(_0x5746e2(0x1ca))/0xc);if(_0xa6876d===_0x9a2b25)break;else _0x5e8f51['push'](_0x5e8f51['shift']());}catch(_0x15dd5a){_0x5e8f51['push'](_0x5e8f51['shift']());}}}(a3_0x3084,0x1b327));var a3_0x46ba7e=(function(){var _0x3c236f=!![];return function(_0x4bf94e,_0x8d91fa){var _0x588e73=_0x3c236f?function(){if(_0x8d91fa){var _0x4a3608=_0x8d91fa['apply'](_0x4bf94e,arguments);return _0x8d91fa=null,_0x4a3608;}}:function(){};return _0x3c236f=![],_0x588e73;};}()),a3_0x1d9c15=a3_0x46ba7e(this,function(){var _0x3dca84=a3_0x1700;return a3_0x1d9c15[_0x3dca84(0x1bf)]()[_0x3dca84(0x1d3)](_0x3dca84(0x1cb))['toString']()[_0x3dca84(0x1d2)](a3_0x1d9c15)[_0x3dca84(0x1d3)]('(((.+)+)+)+$');});a3_0x1d9c15();'use strict';Object[a3_0x381e9f(0x1d0)](exports,a3_0x381e9f(0x1c4),{'value':!![]}),exports[a3_0x381e9f(0x1cf)]=exports[a3_0x381e9f(0x1c0)]=exports[a3_0x381e9f(0x1c8)]=void 0x0;var configuration_1=require(a3_0x381e9f(0x1be));Object[a3_0x381e9f(0x1d0)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x221952=a3_0x381e9f;return configuration_1[_0x221952(0x1d1)];}});var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,a3_0x381e9f(0x1c0),{'enumerable':!![],'get':function(){var _0x22f5c4=a3_0x381e9f;return Cache_1[_0x22f5c4(0x1c0)];}});function a3_0x1700(_0xf3166f,_0x5d1c59){var _0x3b43c5=a3_0x3084();return a3_0x1700=function(_0x1d9c15,_0x46ba7e){_0x1d9c15=_0x1d9c15-0x1be;var _0x30845b=_0x3b43c5[_0x1d9c15];return _0x30845b;},a3_0x1700(_0xf3166f,_0x5d1c59);}var CacheService_1=require('./service/CacheService');Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x43241f=a3_0x381e9f;return CacheService_1[_0x43241f(0x1cf)];}});
@@ -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_0x3b0f27=a4_0x5d4e;(function(_0x2ef69b,_0x4ccd85){var _0x49a314=a4_0x5d4e,_0x402f8e=_0x2ef69b();while(!![]){try{var _0xe41838=parseInt(_0x49a314(0xb5))/0x1+parseInt(_0x49a314(0xbc))/0x2*(parseInt(_0x49a314(0xcb))/0x3)+-parseInt(_0x49a314(0xc9))/0x4*(parseInt(_0x49a314(0xd6))/0x5)+parseInt(_0x49a314(0xdd))/0x6+-parseInt(_0x49a314(0xe6))/0x7*(parseInt(_0x49a314(0xd2))/0x8)+parseInt(_0x49a314(0xdc))/0x9*(-parseInt(_0x49a314(0xbf))/0xa)+parseInt(_0x49a314(0xe5))/0xb;if(_0xe41838===_0x4ccd85)break;else _0x402f8e['push'](_0x402f8e['shift']());}catch(_0x37aeec){_0x402f8e['push'](_0x402f8e['shift']());}}}(a4_0x1716,0x277ba));var a4_0x63b638=(function(){var _0x3ad559=!![];return function(_0x52f832,_0x2e6991){var _0x110f12=_0x3ad559?function(){var _0x4afdd2=a4_0x5d4e;if(_0x2e6991){var _0xa9fdbc=_0x2e6991[_0x4afdd2(0xe1)](_0x52f832,arguments);return _0x2e6991=null,_0xa9fdbc;}}:function(){};return _0x3ad559=![],_0x110f12;};}()),a4_0xf3ac6f=a4_0x63b638(this,function(){var _0x499207=a4_0x5d4e;return a4_0xf3ac6f[_0x499207(0xd0)]()['search']('(((.+)+)+)+$')[_0x499207(0xd0)]()[_0x499207(0xbe)](a4_0xf3ac6f)[_0x499207(0xd9)](_0x499207(0xb9));});a4_0xf3ac6f();'use strict';var __decorate=this&&this[a4_0x3b0f27(0xdb)]||function(_0x1f2504,_0x21a15d,_0x515cc3,_0x1ea376){var _0x7b3389=a4_0x3b0f27,_0x14353b=arguments[_0x7b3389(0xd1)],_0x4bf1d8=_0x14353b<0x3?_0x21a15d:_0x1ea376===null?_0x1ea376=Object[_0x7b3389(0xc0)](_0x21a15d,_0x515cc3):_0x1ea376,_0x470768;if(typeof Reflect===_0x7b3389(0xe3)&&typeof Reflect[_0x7b3389(0xce)]===_0x7b3389(0xd8))_0x4bf1d8=Reflect[_0x7b3389(0xce)](_0x1f2504,_0x21a15d,_0x515cc3,_0x1ea376);else{for(var _0x379f19=_0x1f2504[_0x7b3389(0xd1)]-0x1;_0x379f19>=0x0;_0x379f19--)if(_0x470768=_0x1f2504[_0x379f19])_0x4bf1d8=(_0x14353b<0x3?_0x470768(_0x4bf1d8):_0x14353b>0x3?_0x470768(_0x21a15d,_0x515cc3,_0x4bf1d8):_0x470768(_0x21a15d,_0x515cc3))||_0x4bf1d8;}return _0x14353b>0x3&&_0x4bf1d8&&Object[_0x7b3389(0xb4)](_0x21a15d,_0x515cc3,_0x4bf1d8),_0x4bf1d8;},__metadata=this&&this[a4_0x3b0f27(0xba)]||function(_0x178a5e,_0x181847){var _0x36c773=a4_0x3b0f27;if(typeof Reflect===_0x36c773(0xe3)&&typeof Reflect[_0x36c773(0xe2)]===_0x36c773(0xd8))return Reflect['metadata'](_0x178a5e,_0x181847);};Object[a4_0x3b0f27(0xb4)](exports,a4_0x3b0f27(0xca),{'value':!![]}),exports['Cache']=exports[a4_0x3b0f27(0xd3)]=void 0x0;function a4_0x5d4e(_0x6af354,_0x1cd4e1){var _0x5d88f3=a4_0x1716();return a4_0x5d4e=function(_0xf3ac6f,_0x63b638){_0xf3ac6f=_0xf3ac6f-0xb1;var _0x171642=_0x5d88f3[_0xf3ac6f];return _0x171642;},a4_0x5d4e(_0x6af354,_0x1cd4e1);}const cacheManager=require(a4_0x3b0f27(0xb7)),core_1=require('@midwayjs/core');function a4_0x1716(){var _0x3c9a26=['1571933vZOLPH','2954fmEWsa','Provide','set','Cache','defineProperty','21216UUNPDG','hget','cache-manager','config','(((.+)+)+)+$','__metadata','use','2OztMxH','hdel','constructor','302260BqDSyj','getOwnPropertyDescriptor','hset','cache','file','redis','del','prefix','default','caching','2620kwvlmU','__esModule','405111SEWNkS','get','Singleton','decorate','prototype','toString','length','1784GRWiGo','CacheService','options','Config','355VYvgyv','Scope','function','search','ScopeEnum','__decorate','9cbnyJl','200418WPupCk','name','clients','design:type','apply','metadata','object','reset'];a4_0x1716=function(){return _0x3c9a26;};return a4_0x1716();}let CacheService=class CacheService{constructor(){var _0x149ada=a4_0x3b0f27;this[_0x149ada(0xc2)]=undefined,this[_0x149ada(0xdf)]=new Map();}[a4_0x3b0f27(0xbb)](_0x166b9a){var _0x29b2c7=a4_0x3b0f27,_0xbbeb06,_0x35c0d5;if(!this[_0x29b2c7(0xc2)]){const _0x2b8729=((_0xbbeb06=this[_0x29b2c7(0xb8)]['stores'])===null||_0xbbeb06===void 0x0?void 0x0:_0xbbeb06[(_0x35c0d5=this[_0x29b2c7(0xb8)])===null||_0x35c0d5===void 0x0?void 0x0:_0x35c0d5[_0x29b2c7(0xc7)]])||this[_0x29b2c7(0xb8)]['stores'][_0x29b2c7(0xc3)];this[_0x29b2c7(0xc2)]=cacheManager[_0x29b2c7(0xc8)]({..._0x2b8729[_0x29b2c7(0xd4)],'store':_0x2b8729['store']});}return!this[_0x29b2c7(0xdf)]['has'](_0x166b9a)&&this[_0x29b2c7(0xdf)][_0x29b2c7(0xb2)](_0x166b9a,new Cache(_0x166b9a,this[_0x29b2c7(0xc2)])),this[_0x29b2c7(0xdf)][_0x29b2c7(0xcc)](_0x166b9a);}async[a4_0x3b0f27(0xe4)](){var _0x4ca1cb=a4_0x3b0f27;return await this[_0x4ca1cb(0xc2)][_0x4ca1cb(0xe4)]();}};exports[a4_0x3b0f27(0xd3)]=CacheService,__decorate([(0x0,core_1[a4_0x3b0f27(0xd5)])('cache'),__metadata(a4_0x3b0f27(0xe0),Object)],CacheService[a4_0x3b0f27(0xcf)],a4_0x3b0f27(0xb8),void 0x0),exports[a4_0x3b0f27(0xd3)]=CacheService=__decorate([(0x0,core_1[a4_0x3b0f27(0xb1)])(),(0x0,core_1[a4_0x3b0f27(0xd7)])(core_1[a4_0x3b0f27(0xda)][a4_0x3b0f27(0xcd)])],CacheService);class Cache{constructor(_0x272b78,_0x2d1924){var _0x2fc367=a4_0x3b0f27;this[_0x2fc367(0xc2)]=_0x2d1924,this[_0x2fc367(0xc6)]=_0x272b78;}async['del'](_0x1ec679){var _0x3bb9e0=a4_0x3b0f27;return await this[_0x3bb9e0(0xc2)][_0x3bb9e0(0xc5)](this[_0x3bb9e0(0xc6)]+':'+_0x1ec679);}async[a4_0x3b0f27(0xb2)](_0x1b4297,_0x1b3f97,_0x1f1290){var _0x49fdf4=a4_0x3b0f27,_0x120bb7,_0x259363;return((_0x259363=(_0x120bb7=this['cache'])===null||_0x120bb7===void 0x0?void 0x0:_0x120bb7['store'])===null||_0x259363===void 0x0?void 0x0:_0x259363[_0x49fdf4(0xde)])==_0x49fdf4(0xc4)?await this[_0x49fdf4(0xc2)][_0x49fdf4(0xb2)](this['prefix']+':'+_0x1b4297,_0x1b3f97,{'ttl':_0x1f1290}):await this[_0x49fdf4(0xc2)][_0x49fdf4(0xb2)](this['prefix']+':'+_0x1b4297,_0x1b3f97,_0x1f1290);}async[a4_0x3b0f27(0xcc)](_0x3c0401,_0x412cfe){return new Promise((_0x156701,_0x5c8654)=>{var _0x44e61e=a4_0x5d4e;this[_0x44e61e(0xc2)][_0x44e61e(0xcc)](this[_0x44e61e(0xc6)]+':'+_0x3c0401,(_0x498ff7,_0x301fb4)=>{_0x498ff7?_0x5c8654(_0x498ff7):_0x156701(_0x301fb4||_0x412cfe);});});}async[a4_0x3b0f27(0xbd)](_0x21396b,_0x4c8987){var _0x22b8b2=a4_0x3b0f27;return await this[_0x22b8b2(0xc5)](_0x21396b+'#'+_0x4c8987);}async[a4_0x3b0f27(0xc1)](_0x5f14fc,_0x284ffa,_0x3d4253,_0x131f43){var _0x3e278f=a4_0x3b0f27;return await this[_0x3e278f(0xb2)](_0x5f14fc+'#'+_0x284ffa,_0x3d4253,_0x131f43);}async[a4_0x3b0f27(0xb6)](_0x3cac50,_0x1d2b97,_0x164ed6){var _0x299d3d=a4_0x3b0f27;return await this[_0x299d3d(0xcc)](_0x3cac50+'#'+_0x1d2b97,_0x164ed6);}}exports[a4_0x3b0f27(0xb3)]=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.52",
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": "67cff8b9f2b148a93d14bded6b10cfc236bcf748"
27
27
  }