@anncic-api/cache 3.4.32 → 3.4.33

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,33 +1,33 @@
1
- declare const _default: (appinfo: any) => {
2
- cache: {
3
- default: string;
4
- stores: {
5
- file: {
6
- store: any;
7
- options: {
8
- ttl: number;
9
- subdirs: boolean;
10
- path: string;
11
- };
12
- };
13
- redis: {
14
- store: any;
15
- options: {
16
- port: number;
17
- host: string;
18
- password: string;
19
- ttl: number;
20
- keyPrefix: string;
21
- };
22
- };
23
- memory: {
24
- store: string;
25
- options: {
26
- max: number;
27
- ttl: number;
28
- };
29
- };
30
- };
31
- };
32
- };
33
- export default _default;
1
+ declare const _default: (appinfo: any) => {
2
+ cache: {
3
+ default: string;
4
+ stores: {
5
+ file: {
6
+ store: any;
7
+ options: {
8
+ ttl: number;
9
+ subdirs: boolean;
10
+ path: string;
11
+ };
12
+ };
13
+ redis: {
14
+ store: any;
15
+ options: {
16
+ port: number;
17
+ host: string;
18
+ password: string;
19
+ ttl: number;
20
+ keyPrefix: string;
21
+ };
22
+ };
23
+ memory: {
24
+ store: string;
25
+ options: {
26
+ max: number;
27
+ ttl: number;
28
+ };
29
+ };
30
+ };
31
+ };
32
+ };
33
+ export default _default;
@@ -1 +1 @@
1
- const a0_0x389c7a=a0_0x5252;(function(_0x38bac9,_0x5a12ab){const _0x11fcd5=a0_0x5252,_0x58cde9=_0x38bac9();while(!![]){try{const _0x29c496=parseInt(_0x11fcd5(0x108))/0x1*(parseInt(_0x11fcd5(0xfd))/0x2)+-parseInt(_0x11fcd5(0x10e))/0x3*(-parseInt(_0x11fcd5(0xfe))/0x4)+parseInt(_0x11fcd5(0x111))/0x5+parseInt(_0x11fcd5(0xfc))/0x6*(parseInt(_0x11fcd5(0xff))/0x7)+parseInt(_0x11fcd5(0x101))/0x8*(parseInt(_0x11fcd5(0xfb))/0x9)+-parseInt(_0x11fcd5(0x10a))/0xa+-parseInt(_0x11fcd5(0x10b))/0xb;if(_0x29c496===_0x5a12ab)break;else _0x58cde9['push'](_0x58cde9['shift']());}catch(_0x337b12){_0x58cde9['push'](_0x58cde9['shift']());}}}(a0_0x4cbb,0xd5d1d));const a0_0x545474=(function(){let _0x518ad3=!![];return function(_0x4d3f29,_0x41f2bf){const _0x2dd0bc=_0x518ad3?function(){const _0x3c983d=a0_0x5252;if(_0x41f2bf){const _0x486d16=_0x41f2bf[_0x3c983d(0x10c)](_0x4d3f29,arguments);return _0x41f2bf=null,_0x486d16;}}:function(){};return _0x518ad3=![],_0x2dd0bc;};}()),a0_0x47f912=a0_0x545474(this,function(){const _0x283fe4=a0_0x5252;return a0_0x47f912['toString']()[_0x283fe4(0x104)](_0x283fe4(0x112))[_0x283fe4(0x102)]()['constructor'](a0_0x47f912)[_0x283fe4(0x104)](_0x283fe4(0x112));});a0_0x47f912();'use strict';Object[a0_0x389c7a(0x103)](exports,a0_0x389c7a(0x107),{'value':!![]});function a0_0x4cbb(){const _0x35a453=['384528DyPmlP','1365KImtCs','/runtime/.cache','264sVpoeu','toString','defineProperty','search','cache-manager-ioredis','file','__esModule','110927vXaIqz','memory','10303140gkFGYc','14497131fEcIWC','apply','127.0.0.1','6UHkjhS','env','name','6134085CeUoPj','(((.+)+)+)+$','284526ETBUdD','2958oTwsvn','12JqrQNo'];a0_0x4cbb=function(){return _0x35a453;};return a0_0x4cbb();}function a0_0x5252(_0x22eb14,_0x32457a){const _0x41f0f6=a0_0x4cbb();return a0_0x5252=function(_0x47f912,_0x545474){_0x47f912=_0x47f912-0xfb;let _0x4cbb65=_0x41f0f6[_0x47f912];return _0x4cbb65;},a0_0x5252(_0x22eb14,_0x32457a);}const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x389c7a(0x105));exports['default']=_0x1ba7d1=>{const _0x2cb945=a0_0x389c7a;return{'cache':{'default':_0x2cb945(0x106),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x1ba7d1['appDir']+_0x2cb945(0x100)+((_0x1ba7d1===null||_0x1ba7d1===void 0x0?void 0x0:_0x1ba7d1[_0x2cb945(0x10f)])?'-'+_0x1ba7d1[_0x2cb945(0x10f)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2cb945(0x10d),'password':'','ttl':0xed4e00,'keyPrefix':_0x1ba7d1[_0x2cb945(0x110)]+':'+((_0x1ba7d1===null||_0x1ba7d1===void 0x0?void 0x0:_0x1ba7d1[_0x2cb945(0x10f)])?_0x1ba7d1[_0x2cb945(0x10f)]+':':'')}},'memory':{'store':_0x2cb945(0x109),'options':{'max':0x64,'ttl':0xed4e00}}}}};};
1
+ const a0_0x3ead47=a0_0x4dce;(function(_0x13b57f,_0x41523f){const _0x4da7c1=a0_0x4dce,_0x4d7ff8=_0x13b57f();while(!![]){try{const _0x1951ab=parseInt(_0x4da7c1(0x12f))/0x1*(-parseInt(_0x4da7c1(0x149))/0x2)+parseInt(_0x4da7c1(0x133))/0x3*(-parseInt(_0x4da7c1(0x13a))/0x4)+-parseInt(_0x4da7c1(0x131))/0x5*(-parseInt(_0x4da7c1(0x138))/0x6)+-parseInt(_0x4da7c1(0x13c))/0x7*(-parseInt(_0x4da7c1(0x141))/0x8)+parseInt(_0x4da7c1(0x143))/0x9+parseInt(_0x4da7c1(0x145))/0xa*(parseInt(_0x4da7c1(0x148))/0xb)+-parseInt(_0x4da7c1(0x140))/0xc;if(_0x1951ab===_0x41523f)break;else _0x4d7ff8['push'](_0x4d7ff8['shift']());}catch(_0x139321){_0x4d7ff8['push'](_0x4d7ff8['shift']());}}}(a0_0x1465,0xda98a));const a0_0x5d978d=(function(){let _0x493c40=!![];return function(_0x38e2fd,_0x12c58b){const _0x3a5182=_0x493c40?function(){const _0x1d1f03=a0_0x4dce;if(_0x12c58b){const _0x57c6f0=_0x12c58b[_0x1d1f03(0x132)](_0x38e2fd,arguments);return _0x12c58b=null,_0x57c6f0;}}:function(){};return _0x493c40=![],_0x3a5182;};}()),a0_0x14fd38=a0_0x5d978d(this,function(){const _0x39837f=a0_0x4dce;return a0_0x14fd38[_0x39837f(0x134)]()['search'](_0x39837f(0x137))[_0x39837f(0x134)]()[_0x39837f(0x146)](a0_0x14fd38)[_0x39837f(0x13e)](_0x39837f(0x137));});a0_0x14fd38();function a0_0x1465(){const _0x3b745b=['32PYvdYt','default','4767417vqoibF','127.0.0.1','3688660zIsxGE','constructor','memory','11YhFxZZ','910mLqTmZ','defineProperty','1015ZxBVTv','__esModule','145OMLNjw','apply','180918xmUMUv','toString','/runtime/.cache','appDir','(((.+)+)+)+$','168066cURZjB','env','12thWiGl','cache-manager-ioredis','995183KReMNB','file','search','name','8897532uLRNeB'];a0_0x1465=function(){return _0x3b745b;};return a0_0x1465();}'use strict';Object[a0_0x3ead47(0x12e)](exports,a0_0x3ead47(0x130),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x3ead47(0x13b));function a0_0x4dce(_0x5dd537,_0x5a6b9c){const _0x29a59e=a0_0x1465();return a0_0x4dce=function(_0x14fd38,_0x5d978d){_0x14fd38=_0x14fd38-0x12e;let _0x146576=_0x29a59e[_0x14fd38];return _0x146576;},a0_0x4dce(_0x5dd537,_0x5a6b9c);}exports[a0_0x3ead47(0x142)]=_0xf2c6ad=>{const _0x33b2e2=a0_0x3ead47;return{'cache':{'default':_0x33b2e2(0x13d),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0xf2c6ad[_0x33b2e2(0x136)]+_0x33b2e2(0x135)+((_0xf2c6ad===null||_0xf2c6ad===void 0x0?void 0x0:_0xf2c6ad[_0x33b2e2(0x139)])?'-'+_0xf2c6ad[_0x33b2e2(0x139)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x33b2e2(0x144),'password':'','ttl':0xed4e00,'keyPrefix':_0xf2c6ad[_0x33b2e2(0x13f)]+':'+((_0xf2c6ad===null||_0xf2c6ad===void 0x0?void 0x0:_0xf2c6ad[_0x33b2e2(0x139)])?_0xf2c6ad[_0x33b2e2(0x139)]+':':'')}},'memory':{'store':_0x33b2e2(0x147),'options':{'max':0x64,'ttl':0xed4e00}}}}};};
@@ -1,2 +1,2 @@
1
- export declare class CustomConfiguration {
2
- }
1
+ export declare class CustomConfiguration {
2
+ }
@@ -1 +1 @@
1
- var a1_0x4dd04c=a1_0x17aa;(function(_0x1a9b6c,_0xd9afd0){var _0x53a749=a1_0x17aa,_0x5588d1=_0x1a9b6c();while(!![]){try{var _0x1aa674=-parseInt(_0x53a749(0xe8))/0x1+-parseInt(_0x53a749(0xf0))/0x2+parseInt(_0x53a749(0xe2))/0x3+-parseInt(_0x53a749(0xee))/0x4*(-parseInt(_0x53a749(0xeb))/0x5)+parseInt(_0x53a749(0xec))/0x6+parseInt(_0x53a749(0xe5))/0x7*(parseInt(_0x53a749(0xed))/0x8)+-parseInt(_0x53a749(0xdd))/0x9;if(_0x1aa674===_0xd9afd0)break;else _0x5588d1['push'](_0x5588d1['shift']());}catch(_0x154cfa){_0x5588d1['push'](_0x5588d1['shift']());}}}(a1_0xe4f8,0xe80f8));var a1_0xa37317=(function(){var _0x49305e=!![];return function(_0x20e5dd,_0x2208c9){var _0xe970b7=_0x49305e?function(){if(_0x2208c9){var _0x52f03c=_0x2208c9['apply'](_0x20e5dd,arguments);return _0x2208c9=null,_0x52f03c;}}:function(){};return _0x49305e=![],_0xe970b7;};}()),a1_0x2d9513=a1_0xa37317(this,function(){var _0x52f21d=a1_0x17aa;return a1_0x2d9513[_0x52f21d(0xe1)]()['search'](_0x52f21d(0xe3))['toString']()[_0x52f21d(0xde)](a1_0x2d9513)[_0x52f21d(0xe0)](_0x52f21d(0xe3));});a1_0x2d9513();'use strict';var __decorate=this&&this[a1_0x4dd04c(0xf1)]||function(_0x33acc4,_0x1ea13e,_0x21ccdd,_0x5ab6ab){var _0x24f3a2=a1_0x4dd04c,_0x76de8e=arguments[_0x24f3a2(0xef)],_0x5eee08=_0x76de8e<0x3?_0x1ea13e:_0x5ab6ab===null?_0x5ab6ab=Object[_0x24f3a2(0xdc)](_0x1ea13e,_0x21ccdd):_0x5ab6ab,_0x37faff;if(typeof Reflect==='object'&&typeof Reflect[_0x24f3a2(0xe4)]===_0x24f3a2(0xe6))_0x5eee08=Reflect[_0x24f3a2(0xe4)](_0x33acc4,_0x1ea13e,_0x21ccdd,_0x5ab6ab);else{for(var _0x1d8904=_0x33acc4[_0x24f3a2(0xef)]-0x1;_0x1d8904>=0x0;_0x1d8904--)if(_0x37faff=_0x33acc4[_0x1d8904])_0x5eee08=(_0x76de8e<0x3?_0x37faff(_0x5eee08):_0x76de8e>0x3?_0x37faff(_0x1ea13e,_0x21ccdd,_0x5eee08):_0x37faff(_0x1ea13e,_0x21ccdd))||_0x5eee08;}return _0x76de8e>0x3&&_0x5eee08&&Object['defineProperty'](_0x1ea13e,_0x21ccdd,_0x5eee08),_0x5eee08;};Object['defineProperty'](exports,a1_0x4dd04c(0xea),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x4dd04c(0xf2)),ConfigDefault=require(a1_0x4dd04c(0xe9));let CustomConfiguration=class CustomConfiguration{};function a1_0xe4f8(){var _0x4056f7=['getOwnPropertyDescriptor','7191846DjESxE','constructor','CustomConfiguration','search','toString','821691bGtzhX','(((.+)+)+)+$','decorate','22603zmiCGV','function','anncic-api:cache','638086Vpipmg','./config/config.default','__esModule','7438565nYYogM','3018078ZdjcNy','2776fbZptL','4YsSwPJ','length','1994772qfDOWr','__decorate','@midwayjs/core','Configuration'];a1_0xe4f8=function(){return _0x4056f7;};return a1_0xe4f8();}function a1_0x17aa(_0x15e53f,_0x3b04a6){var _0xc2c56=a1_0xe4f8();return a1_0x17aa=function(_0x2d9513,_0xa37317){_0x2d9513=_0x2d9513-0xdc;var _0xe4f83b=_0xc2c56[_0x2d9513];return _0xe4f83b;},a1_0x17aa(_0x15e53f,_0x3b04a6);}exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x4dd04c(0xdf)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x4dd04c(0xf3)])({'conflictCheck':![],'namespace':a1_0x4dd04c(0xe7),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x5578e9=a1_0x1d6d;function a1_0x2acf(){var _0x5d904b=['constructor','137949mJBtAt','__decorate','1380015aSWSJi','CustomConfiguration','function','decorate','toString','6KofYSv','24dlDArm','1131596GZzQhp','317374jxoJLE','(((.+)+)+)+$','apply','search','defineProperty','length','70328ednhtk','getOwnPropertyDescriptor','__esModule','668840AKFrSn','15682464ADDaNY'];a1_0x2acf=function(){return _0x5d904b;};return a1_0x2acf();}(function(_0x42d011,_0x418a7a){var _0x116689=a1_0x1d6d,_0x1d25fe=_0x42d011();while(!![]){try{var _0x2e537d=-parseInt(_0x116689(0x1be))/0x1+-parseInt(_0x116689(0x1c7))/0x2+parseInt(_0x116689(0x1bb))/0x3*(-parseInt(_0x116689(0x1bd))/0x4)+-parseInt(_0x116689(0x1cc))/0x5+parseInt(_0x116689(0x1bc))/0x6*(parseInt(_0x116689(0x1ca))/0x7)+-parseInt(_0x116689(0x1c4))/0x8+parseInt(_0x116689(0x1c8))/0x9;if(_0x2e537d===_0x418a7a)break;else _0x1d25fe['push'](_0x1d25fe['shift']());}catch(_0x2bc34a){_0x1d25fe['push'](_0x1d25fe['shift']());}}}(a1_0x2acf,0x4ddda));function a1_0x1d6d(_0x2d90a7,_0x5a434e){var _0x3483ab=a1_0x2acf();return a1_0x1d6d=function(_0xa7f9ad,_0x4c77f6){_0xa7f9ad=_0xa7f9ad-0x1b7;var _0x2acfba=_0x3483ab[_0xa7f9ad];return _0x2acfba;},a1_0x1d6d(_0x2d90a7,_0x5a434e);}var a1_0x4c77f6=(function(){var _0x4fd611=!![];return function(_0x239d80,_0x3ccb13){var _0x3d03b7=_0x4fd611?function(){var _0x58e97f=a1_0x1d6d;if(_0x3ccb13){var _0x3c3806=_0x3ccb13[_0x58e97f(0x1c0)](_0x239d80,arguments);return _0x3ccb13=null,_0x3c3806;}}:function(){};return _0x4fd611=![],_0x3d03b7;};}()),a1_0xa7f9ad=a1_0x4c77f6(this,function(){var _0x4ef766=a1_0x1d6d;return a1_0xa7f9ad[_0x4ef766(0x1ba)]()['search'](_0x4ef766(0x1bf))['toString']()[_0x4ef766(0x1c9)](a1_0xa7f9ad)[_0x4ef766(0x1c1)](_0x4ef766(0x1bf));});a1_0xa7f9ad();'use strict';var __decorate=this&&this[a1_0x5578e9(0x1cb)]||function(_0x3ba649,_0x31a05f,_0x1da378,_0x359685){var _0x28ed2e=a1_0x5578e9,_0x11ce23=arguments[_0x28ed2e(0x1c3)],_0x878841=_0x11ce23<0x3?_0x31a05f:_0x359685===null?_0x359685=Object[_0x28ed2e(0x1c5)](_0x31a05f,_0x1da378):_0x359685,_0x134038;if(typeof Reflect==='object'&&typeof Reflect[_0x28ed2e(0x1b9)]===_0x28ed2e(0x1b8))_0x878841=Reflect[_0x28ed2e(0x1b9)](_0x3ba649,_0x31a05f,_0x1da378,_0x359685);else{for(var _0x3bf0ba=_0x3ba649[_0x28ed2e(0x1c3)]-0x1;_0x3bf0ba>=0x0;_0x3bf0ba--)if(_0x134038=_0x3ba649[_0x3bf0ba])_0x878841=(_0x11ce23<0x3?_0x134038(_0x878841):_0x11ce23>0x3?_0x134038(_0x31a05f,_0x1da378,_0x878841):_0x134038(_0x31a05f,_0x1da378))||_0x878841;}return _0x11ce23>0x3&&_0x878841&&Object[_0x28ed2e(0x1c2)](_0x31a05f,_0x1da378,_0x878841),_0x878841;};Object[a1_0x5578e9(0x1c2)](exports,a1_0x5578e9(0x1c6),{'value':!![]}),exports[a1_0x5578e9(0x1b7)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5578e9(0x1b7)]=CustomConfiguration;
@@ -1 +1 @@
1
- export declare function Cache(key?: string, ttl?: number): MethodDecorator;
1
+ export declare function Cache(key?: string, ttl?: number): MethodDecorator;
@@ -1 +1 @@
1
- const a2_0x4216f0=a2_0x1804;function a2_0x1804(_0x445361,_0x10bdf1){const _0x3a4198=a2_0x2765();return a2_0x1804=function(_0x2c7595,_0x19be29){_0x2c7595=_0x2c7595-0x7a;let _0x27650e=_0x3a4198[_0x2c7595];return _0x27650e;},a2_0x1804(_0x445361,_0x10bdf1);}function a2_0x2765(){const _0x59a19b=['1rxxTku','1379418fHGlsd','16871922xTdAHD','use','defineProperty','toString','stringify','CacheService','Cache','4628964hfjwGD','Method::Decorator','getAsync','792830FTScJf','__esModule','REQUEST_OBJ_CTX_KEY','apply','value','crypto-js','132lyPvKB','set','695443ShJyzu','app','getApplicationContext','../service/CacheService','925790nsKBsG','MD5','search','parse','96PnbEca'];a2_0x2765=function(){return _0x59a19b;};return a2_0x2765();}(function(_0xb54c32,_0x3369f9){const _0x3132ba=a2_0x1804,_0x22171a=_0xb54c32();while(!![]){try{const _0x14e295=parseInt(_0x3132ba(0x7f))/0x1*(-parseInt(_0x3132ba(0x7a))/0x2)+-parseInt(_0x3132ba(0x80))/0x3+-parseInt(_0x3132ba(0x91))/0x4+parseInt(_0x3132ba(0x8b))/0x5+parseInt(_0x3132ba(0x88))/0x6+parseInt(_0x3132ba(0x93))/0x7*(-parseInt(_0x3132ba(0x7e))/0x8)+parseInt(_0x3132ba(0x81))/0x9;if(_0x14e295===_0x3369f9)break;else _0x22171a['push'](_0x22171a['shift']());}catch(_0x237e73){_0x22171a['push'](_0x22171a['shift']());}}}(a2_0x2765,0xa8684));const a2_0x19be29=(function(){let _0x1ccf9b=!![];return function(_0x863104,_0x261460){const _0x4c8bc6=_0x1ccf9b?function(){const _0x464816=a2_0x1804;if(_0x261460){const _0x22bafe=_0x261460[_0x464816(0x8e)](_0x863104,arguments);return _0x261460=null,_0x22bafe;}}:function(){};return _0x1ccf9b=![],_0x4c8bc6;};}()),a2_0x2c7595=a2_0x19be29(this,function(){const _0x51d9cb=a2_0x1804;return a2_0x2c7595[_0x51d9cb(0x84)]()[_0x51d9cb(0x7c)]('(((.+)+)+)+$')[_0x51d9cb(0x84)]()['constructor'](a2_0x2c7595)['search']('(((.+)+)+)+$');});a2_0x2c7595();'use strict';Object[a2_0x4216f0(0x83)](exports,a2_0x4216f0(0x8c),{'value':!![]}),exports[a2_0x4216f0(0x87)]=void 0x0;const crypto_js_1=require(a2_0x4216f0(0x90)),CacheService_1=require(a2_0x4216f0(0x96)),core_1=require('@midwayjs/core');function Cache(_0x2596a4,_0x1c1060){return(_0x50f4f8,_0x489f68,_0x3f5017)=>{const _0x176b84=a2_0x1804,_0x51c909=_0x3f5017[_0x176b84(0x8f)];return _0x3f5017[_0x176b84(0x8f)]=async function(..._0x2e818f){const _0x2d7ca0=_0x176b84;!_0x2596a4&&(_0x2596a4=(0x0,crypto_js_1[_0x2d7ca0(0x7b)])(JSON[_0x2d7ca0(0x85)](_0x2e818f))['toString']());let _0x3c84e2=await this[core_1[_0x2d7ca0(0x8d)]][_0x2d7ca0(0x94)][_0x2d7ca0(0x95)]()[_0x2d7ca0(0x8a)](CacheService_1[_0x2d7ca0(0x86)]),_0x94c8e0=await _0x3c84e2[_0x2d7ca0(0x82)](_0x2d7ca0(0x89))['get'](_0x2596a4);if(_0x94c8e0)return JSON[_0x2d7ca0(0x7d)](_0x94c8e0);else _0x94c8e0=await _0x51c909['apply'](this,[..._0x2e818f]),await _0x3c84e2[_0x2d7ca0(0x82)](_0x2d7ca0(0x89))[_0x2d7ca0(0x92)](_0x2596a4,JSON[_0x2d7ca0(0x85)](_0x94c8e0),_0x1c1060);return _0x94c8e0;},_0x3f5017;};}exports['Cache']=Cache;
1
+ const a2_0x1c735a=a2_0x2d65;(function(_0x51cfba,_0x4fd776){const _0x4135df=a2_0x2d65,_0x396ba1=_0x51cfba();while(!![]){try{const _0x3db915=parseInt(_0x4135df(0x132))/0x1+parseInt(_0x4135df(0x12c))/0x2+-parseInt(_0x4135df(0x12a))/0x3*(-parseInt(_0x4135df(0x13c))/0x4)+parseInt(_0x4135df(0x126))/0x5+parseInt(_0x4135df(0x138))/0x6+parseInt(_0x4135df(0x137))/0x7*(-parseInt(_0x4135df(0x12d))/0x8)+-parseInt(_0x4135df(0x125))/0x9;if(_0x3db915===_0x4fd776)break;else _0x396ba1['push'](_0x396ba1['shift']());}catch(_0x4df59e){_0x396ba1['push'](_0x396ba1['shift']());}}}(a2_0x4b54,0xa5021));const a2_0x56688c=(function(){let _0x2941ae=!![];return function(_0x179b74,_0x3fb221){const _0x69f0ad=_0x2941ae?function(){const _0x1586e1=a2_0x2d65;if(_0x3fb221){const _0x40a8d4=_0x3fb221[_0x1586e1(0x124)](_0x179b74,arguments);return _0x3fb221=null,_0x40a8d4;}}:function(){};return _0x2941ae=![],_0x69f0ad;};}()),a2_0x3bf202=a2_0x56688c(this,function(){const _0x12a6cd=a2_0x2d65;return a2_0x3bf202[_0x12a6cd(0x12e)]()[_0x12a6cd(0x13b)](_0x12a6cd(0x128))['toString']()['constructor'](a2_0x3bf202)['search']('(((.+)+)+)+$');});a2_0x3bf202();function a2_0x2d65(_0x19eba4,_0x542fc6){const _0xa21bee=a2_0x4b54();return a2_0x2d65=function(_0x3bf202,_0x56688c){_0x3bf202=_0x3bf202-0x123;let _0x4b5467=_0xa21bee[_0x3bf202];return _0x4b5467;},a2_0x2d65(_0x19eba4,_0x542fc6);}'use strict';Object[a2_0x1c735a(0x13a)](exports,a2_0x1c735a(0x129),{'value':!![]}),exports[a2_0x1c735a(0x136)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function Cache(_0x32e0cf,_0x3e4b0){return(_0x794f54,_0xa39656,_0x463397)=>{const _0x5ce679=a2_0x2d65,_0x2cc5c9=_0x463397[_0x5ce679(0x131)];return _0x463397[_0x5ce679(0x131)]=async function(..._0x2d0201){const _0x3825b8=_0x5ce679;!_0x32e0cf&&(_0x32e0cf=(0x0,crypto_js_1[_0x3825b8(0x134)])(JSON['stringify'](_0x2d0201))[_0x3825b8(0x12e)]());let _0x5db254=await this[core_1[_0x3825b8(0x12b)]][_0x3825b8(0x135)][_0x3825b8(0x139)]()[_0x3825b8(0x130)](CacheService_1[_0x3825b8(0x123)]),_0x18b0d9=await _0x5db254[_0x3825b8(0x133)](_0x3825b8(0x127))['get'](_0x32e0cf);if(_0x18b0d9)return JSON['parse'](_0x18b0d9);else _0x18b0d9=await _0x2cc5c9[_0x3825b8(0x124)](this,[..._0x2d0201]),await _0x5db254[_0x3825b8(0x133)](_0x3825b8(0x127))[_0x3825b8(0x12f)](_0x32e0cf,JSON['stringify'](_0x18b0d9),_0x3e4b0);return _0x18b0d9;},_0x463397;};}exports[a2_0x1c735a(0x136)]=Cache;function a2_0x4b54(){const _0xc780e4=['643091Romtel','use','MD5','app','Cache','225323zOZVYz','252786DxOfhK','getApplicationContext','defineProperty','search','874436fhrEiI','CacheService','apply','3626478ONyCwU','5044060coJLFg','Method::Decorator','(((.+)+)+)+$','__esModule','3GkwPKC','REQUEST_OBJ_CTX_KEY','392440UetwSd','256YPfdBV','toString','set','getAsync','value'];a2_0x4b54=function(){return _0xc780e4;};return a2_0x4b54();}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { CustomConfiguration as Configuration } from './configuration';
2
- export { Cache } from './decorator/Cache';
3
- export { CacheService } from "./service/CacheService";
1
+ export { CustomConfiguration as Configuration } from './configuration';
2
+ export { Cache } from './decorator/Cache';
3
+ export { CacheService } from "./service/CacheService";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x2a392c=a3_0x1871;(function(_0x1ce9ef,_0x5006db){var _0x765645=a3_0x1871,_0x58ceb5=_0x1ce9ef();while(!![]){try{var _0x4e8afe=parseInt(_0x765645(0x1b7))/0x1*(-parseInt(_0x765645(0x1bc))/0x2)+parseInt(_0x765645(0x1b1))/0x3*(parseInt(_0x765645(0x1b3))/0x4)+-parseInt(_0x765645(0x1b2))/0x5*(-parseInt(_0x765645(0x1b0))/0x6)+parseInt(_0x765645(0x1bf))/0x7*(parseInt(_0x765645(0x1af))/0x8)+parseInt(_0x765645(0x1ac))/0x9*(parseInt(_0x765645(0x1b9))/0xa)+-parseInt(_0x765645(0x1be))/0xb*(-parseInt(_0x765645(0x1b5))/0xc)+-parseInt(_0x765645(0x1ad))/0xd;if(_0x4e8afe===_0x5006db)break;else _0x58ceb5['push'](_0x58ceb5['shift']());}catch(_0x4a24fa){_0x58ceb5['push'](_0x58ceb5['shift']());}}}(a3_0x3602,0x4016f));var a3_0x32c7ea=(function(){var _0x241e72=!![];return function(_0x2fc536,_0x20d18c){var _0x5a88a2=_0x241e72?function(){var _0x132315=a3_0x1871;if(_0x20d18c){var _0xc5b858=_0x20d18c[_0x132315(0x1bd)](_0x2fc536,arguments);return _0x20d18c=null,_0xc5b858;}}:function(){};return _0x241e72=![],_0x5a88a2;};}()),a3_0x2b6199=a3_0x32c7ea(this,function(){var _0x106006=a3_0x1871;return a3_0x2b6199[_0x106006(0x1b8)]()[_0x106006(0x1c0)](_0x106006(0x1b6))[_0x106006(0x1b8)]()['constructor'](a3_0x2b6199)[_0x106006(0x1c0)](_0x106006(0x1b6));});a3_0x2b6199();'use strict';function a3_0x3602(){var _0x3359e9=['45SVRjKY','4658888zBtvSr','Configuration','128bcdzXU','60JdVyYB','225723iyDCpx','166965fxuNJw','16EGxTMZ','Cache','810804UjpNcl','(((.+)+)+)+$','114909CoIVHI','toString','100070EnmMWn','defineProperty','./configuration','6qXxwHR','apply','33tkNgSM','34118nkaytz','search','CacheService'];a3_0x3602=function(){return _0x3359e9;};return a3_0x3602();}Object[a3_0x2a392c(0x1ba)](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports[a3_0x2a392c(0x1b4)]=exports[a3_0x2a392c(0x1ae)]=void 0x0;var configuration_1=require(a3_0x2a392c(0x1bb));function a3_0x1871(_0x1a6e35,_0x5a7371){var _0xe6d426=a3_0x3602();return a3_0x1871=function(_0x2b6199,_0x32c7ea){_0x2b6199=_0x2b6199-0x1ac;var _0x3602f6=_0xe6d426[_0x2b6199];return _0x3602f6;},a3_0x1871(_0x1a6e35,_0x5a7371);}Object[a3_0x2a392c(0x1ba)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require('./decorator/Cache');Object[a3_0x2a392c(0x1ba)](exports,a3_0x2a392c(0x1b4),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require('./service/CacheService');Object[a3_0x2a392c(0x1ba)](exports,a3_0x2a392c(0x1c1),{'enumerable':!![],'get':function(){var _0x458730=a3_0x2a392c;return CacheService_1[_0x458730(0x1c1)];}});
1
+ var a3_0x463656=a3_0x9e23;function a3_0x9e23(_0x40e356,_0x1ae1e2){var _0x50ef17=a3_0x4e16();return a3_0x9e23=function(_0x5a4948,_0x477806){_0x5a4948=_0x5a4948-0x1df;var _0x4e1649=_0x50ef17[_0x5a4948];return _0x4e1649;},a3_0x9e23(_0x40e356,_0x1ae1e2);}(function(_0x4bd9cc,_0xf1e178){var _0x258adf=a3_0x9e23,_0x2744c2=_0x4bd9cc();while(!![]){try{var _0x1b627c=parseInt(_0x258adf(0x1e7))/0x1*(parseInt(_0x258adf(0x1ea))/0x2)+-parseInt(_0x258adf(0x1e9))/0x3+-parseInt(_0x258adf(0x1ed))/0x4+-parseInt(_0x258adf(0x1ee))/0x5+parseInt(_0x258adf(0x1e8))/0x6+parseInt(_0x258adf(0x1e5))/0x7*(-parseInt(_0x258adf(0x1ec))/0x8)+parseInt(_0x258adf(0x1e3))/0x9*(parseInt(_0x258adf(0x1eb))/0xa);if(_0x1b627c===_0xf1e178)break;else _0x2744c2['push'](_0x2744c2['shift']());}catch(_0xf41ad2){_0x2744c2['push'](_0x2744c2['shift']());}}}(a3_0x4e16,0xc6641));var a3_0x477806=(function(){var _0x44dde7=!![];return function(_0x27e609,_0xe73a66){var _0x4b732b=_0x44dde7?function(){if(_0xe73a66){var _0x5b0d9d=_0xe73a66['apply'](_0x27e609,arguments);return _0xe73a66=null,_0x5b0d9d;}}:function(){};return _0x44dde7=![],_0x4b732b;};}()),a3_0x5a4948=a3_0x477806(this,function(){var _0x317dfd=a3_0x9e23;return a3_0x5a4948[_0x317dfd(0x1f3)]()[_0x317dfd(0x1ef)]('(((.+)+)+)+$')[_0x317dfd(0x1f3)]()[_0x317dfd(0x1f4)](a3_0x5a4948)[_0x317dfd(0x1ef)](_0x317dfd(0x1e1));});a3_0x5a4948();'use strict';function a3_0x4e16(){var _0x1f1340=['Cache','toString','constructor','defineProperty','./decorator/Cache','(((.+)+)+)+$','Configuration','270VzReZE','./service/CacheService','366793KWcWqe','__esModule','1kFLCKt','3399270xaDdWQ','2025882dTsPxZ','514758HyMpRa','1204030slkhyV','248ZPpTHm','3178156cCDkjC','2646015CvmdyH','search','./configuration','CacheService'];a3_0x4e16=function(){return _0x1f1340;};return a3_0x4e16();}Object[a3_0x463656(0x1df)](exports,a3_0x463656(0x1e6),{'value':!![]}),exports[a3_0x463656(0x1f1)]=exports[a3_0x463656(0x1f2)]=exports[a3_0x463656(0x1e2)]=void 0x0;var configuration_1=require(a3_0x463656(0x1f0));Object[a3_0x463656(0x1df)](exports,a3_0x463656(0x1e2),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x463656(0x1e0));Object[a3_0x463656(0x1df)](exports,a3_0x463656(0x1f2),{'enumerable':!![],'get':function(){var _0x129f89=a3_0x463656;return Cache_1[_0x129f89(0x1f2)];}});var CacheService_1=require(a3_0x463656(0x1e4));Object[a3_0x463656(0x1df)](exports,a3_0x463656(0x1f1),{'enumerable':!![],'get':function(){var _0x59e2ca=a3_0x463656;return CacheService_1[_0x59e2ca(0x1f1)];}});
@@ -1,19 +1,19 @@
1
- import * as cacheManager from 'cache-manager';
2
- export declare class CacheService {
3
- protected config: any;
4
- protected cache: cacheManager.Cache;
5
- protected clients: Map<string, Cache>;
6
- use(registerCache: string): Cache;
7
- reset(): Promise<any>;
8
- }
9
- export declare class Cache {
10
- readonly prefix: string;
11
- readonly cache: cacheManager.Cache;
12
- constructor(prefix: string, cache: cacheManager.Cache);
13
- del(key: string): Promise<any>;
14
- set<T>(key: string, value: T, ttl?: number): Promise<T>;
15
- get<T>(key: string, defaultval?: any): Promise<T>;
16
- hdel(key: string, field: string): Promise<any>;
17
- hset<T>(key: string, field: string, value: T, ttl?: number): Promise<T>;
18
- hget<T>(key: string, field: string, defaultval?: any): Promise<T>;
19
- }
1
+ import * as cacheManager from 'cache-manager';
2
+ export declare class CacheService {
3
+ protected config: any;
4
+ protected cache: cacheManager.Cache;
5
+ protected clients: Map<string, Cache>;
6
+ use(registerCache: string): Cache;
7
+ reset(): Promise<any>;
8
+ }
9
+ export declare class Cache {
10
+ readonly prefix: string;
11
+ readonly cache: cacheManager.Cache;
12
+ constructor(prefix: string, cache: cacheManager.Cache);
13
+ del(key: string): Promise<any>;
14
+ set<T>(key: string, value: T, ttl?: number): Promise<T>;
15
+ get<T>(key: string, defaultval?: any): Promise<T>;
16
+ hdel(key: string, field: string): Promise<any>;
17
+ hset<T>(key: string, field: string, value: T, ttl?: number): Promise<T>;
18
+ hget<T>(key: string, field: string, defaultval?: any): Promise<T>;
19
+ }
@@ -1 +1 @@
1
- var a4_0x1860ef=a4_0x45f6;function a4_0x1b50(){var _0x3f2024=['set','clients','search','762543KZDbLv','function','hget','length','caching','store','Config','__esModule','getOwnPropertyDescriptor','250170kFiiSS','prefix','CacheService','object','has','__metadata','config','constructor','cache','ScopeEnum','(((.+)+)+)+$','del','56575UcCztt','reset','cache-manager','options','get','Provide','@midwayjs/core','stores','default','file','use','toString','1021516BlRGrx','metadata','hset','decorate','Scope','3320212xEXUtZ','design:type','Cache','488430DsIwDl','519102PIVcDR','defineProperty'];a4_0x1b50=function(){return _0x3f2024;};return a4_0x1b50();}(function(_0x434af5,_0x37c909){var _0x3554cf=a4_0x45f6,_0x47877e=_0x434af5();while(!![]){try{var _0xa2f3=parseInt(_0x3554cf(0x122))/0x1+-parseInt(_0x3554cf(0x108))/0x2+parseInt(_0x3554cf(0x10d))/0x3+-parseInt(_0x3554cf(0x12e))/0x4+-parseInt(_0x3554cf(0x107))/0x5+-parseInt(_0x3554cf(0x116))/0x6+parseInt(_0x3554cf(0x133))/0x7;if(_0xa2f3===_0x37c909)break;else _0x47877e['push'](_0x47877e['shift']());}catch(_0x4e4fae){_0x47877e['push'](_0x47877e['shift']());}}}(a4_0x1b50,0x1fec9));var a4_0x51fa8b=(function(){var _0xbd9cee=!![];return function(_0x76ed35,_0x484e2f){var _0x1fac9d=_0xbd9cee?function(){if(_0x484e2f){var _0x305e5e=_0x484e2f['apply'](_0x76ed35,arguments);return _0x484e2f=null,_0x305e5e;}}:function(){};return _0xbd9cee=![],_0x1fac9d;};}()),a4_0x46016b=a4_0x51fa8b(this,function(){var _0x1b2184=a4_0x45f6;return a4_0x46016b[_0x1b2184(0x12d)]()[_0x1b2184(0x10c)]('(((.+)+)+)+$')[_0x1b2184(0x12d)]()[_0x1b2184(0x11d)](a4_0x46016b)[_0x1b2184(0x10c)](_0x1b2184(0x120));});a4_0x46016b();'use strict';var __decorate=this&&this['__decorate']||function(_0x36a4bf,_0x2883d5,_0x47f86a,_0x3f57df){var _0x139e64=a4_0x45f6,_0x545ac7=arguments['length'],_0x188314=_0x545ac7<0x3?_0x2883d5:_0x3f57df===null?_0x3f57df=Object[_0x139e64(0x115)](_0x2883d5,_0x47f86a):_0x3f57df,_0x38f277;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x139e64(0x10e))_0x188314=Reflect[_0x139e64(0x131)](_0x36a4bf,_0x2883d5,_0x47f86a,_0x3f57df);else{for(var _0x5b2916=_0x36a4bf[_0x139e64(0x110)]-0x1;_0x5b2916>=0x0;_0x5b2916--)if(_0x38f277=_0x36a4bf[_0x5b2916])_0x188314=(_0x545ac7<0x3?_0x38f277(_0x188314):_0x545ac7>0x3?_0x38f277(_0x2883d5,_0x47f86a,_0x188314):_0x38f277(_0x2883d5,_0x47f86a))||_0x188314;}return _0x545ac7>0x3&&_0x188314&&Object['defineProperty'](_0x2883d5,_0x47f86a,_0x188314),_0x188314;},__metadata=this&&this[a4_0x1860ef(0x11b)]||function(_0x12319f,_0x5d8f78){var _0x3b28e1=a4_0x1860ef;if(typeof Reflect===_0x3b28e1(0x119)&&typeof Reflect[_0x3b28e1(0x12f)]==='function')return Reflect[_0x3b28e1(0x12f)](_0x12319f,_0x5d8f78);};Object[a4_0x1860ef(0x109)](exports,a4_0x1860ef(0x114),{'value':!![]}),exports[a4_0x1860ef(0x135)]=exports[a4_0x1860ef(0x118)]=void 0x0;const cacheManager=require(a4_0x1860ef(0x124)),core_1=require(a4_0x1860ef(0x128));let CacheService=class CacheService{constructor(){var _0x191166=a4_0x1860ef;this['cache']=undefined,this[_0x191166(0x10b)]=new Map();}[a4_0x1860ef(0x12c)](_0xb14dc0){var _0x56fb8b=a4_0x1860ef,_0xccb2c7,_0x3b9e62;if(!this[_0x56fb8b(0x11e)]){const _0x5f1cdc=((_0xccb2c7=this[_0x56fb8b(0x11c)]['stores'])===null||_0xccb2c7===void 0x0?void 0x0:_0xccb2c7[(_0x3b9e62=this[_0x56fb8b(0x11c)])===null||_0x3b9e62===void 0x0?void 0x0:_0x3b9e62[_0x56fb8b(0x12a)]])||this[_0x56fb8b(0x11c)][_0x56fb8b(0x129)][_0x56fb8b(0x12b)];this[_0x56fb8b(0x11e)]=cacheManager[_0x56fb8b(0x111)]({..._0x5f1cdc[_0x56fb8b(0x125)],'store':_0x5f1cdc[_0x56fb8b(0x112)]});}return!this[_0x56fb8b(0x10b)][_0x56fb8b(0x11a)](_0xb14dc0)&&this[_0x56fb8b(0x10b)][_0x56fb8b(0x10a)](_0xb14dc0,new Cache(_0xb14dc0,this[_0x56fb8b(0x11e)])),this['clients'][_0x56fb8b(0x126)](_0xb14dc0);}async[a4_0x1860ef(0x123)](){var _0x57458c=a4_0x1860ef;return await this[_0x57458c(0x11e)][_0x57458c(0x123)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x1860ef(0x113)])(a4_0x1860ef(0x11e)),__metadata(a4_0x1860ef(0x134),Object)],CacheService['prototype'],a4_0x1860ef(0x11c),void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1[a4_0x1860ef(0x127)])(),(0x0,core_1[a4_0x1860ef(0x132)])(core_1[a4_0x1860ef(0x11f)]['Singleton'])],CacheService);class Cache{constructor(_0x1bb5ef,_0x3f72d9){var _0x4f0305=a4_0x1860ef;this[_0x4f0305(0x11e)]=_0x3f72d9,this[_0x4f0305(0x117)]=_0x1bb5ef;}async[a4_0x1860ef(0x121)](_0x258841){var _0x1babd1=a4_0x1860ef;return await this[_0x1babd1(0x11e)][_0x1babd1(0x121)](this[_0x1babd1(0x117)]+':'+_0x258841);}async['set'](_0x4773b1,_0x445d3a,_0x4a6bce){var _0x2c13c3=a4_0x1860ef;return await this[_0x2c13c3(0x11e)][_0x2c13c3(0x10a)](this[_0x2c13c3(0x117)]+':'+_0x4773b1,_0x445d3a,_0x4a6bce);}async[a4_0x1860ef(0x126)](_0xbff313,_0x16295c){return new Promise((_0x1aa820,_0x402a8c)=>{var _0x35031f=a4_0x45f6;this[_0x35031f(0x11e)]['get'](this[_0x35031f(0x117)]+':'+_0xbff313,(_0x392ed5,_0x365287)=>{_0x392ed5?_0x402a8c(_0x392ed5):_0x1aa820(_0x365287||_0x16295c);});});}async['hdel'](_0x4efb93,_0x459c89){return await this['del'](_0x4efb93+'#'+_0x459c89);}async[a4_0x1860ef(0x130)](_0x1c8c3a,_0x3e4ba1,_0x79f3bb,_0x132cfa){var _0x18ca42=a4_0x1860ef;return await this[_0x18ca42(0x10a)](_0x1c8c3a+'#'+_0x3e4ba1,_0x79f3bb,_0x132cfa);}async[a4_0x1860ef(0x10f)](_0x1bd2a9,_0x1731d6,_0x33b5b5){return await this['get'](_0x1bd2a9+'#'+_0x1731d6,_0x33b5b5);}}function a4_0x45f6(_0x5c6161,_0xa69d9e){var _0x273ab7=a4_0x1b50();return a4_0x45f6=function(_0x46016b,_0x51fa8b){_0x46016b=_0x46016b-0x107;var _0x1b5094=_0x273ab7[_0x46016b];return _0x1b5094;},a4_0x45f6(_0x5c6161,_0xa69d9e);}exports[a4_0x1860ef(0x135)]=Cache;
1
+ var a4_0x3315bf=a4_0x2cd7;function a4_0x2cd7(_0x108edd,_0x1fedf5){var _0x35833f=a4_0x2711();return a4_0x2cd7=function(_0xd184dd,_0x5df340){_0xd184dd=_0xd184dd-0x1f1;var _0x27113b=_0x35833f[_0xd184dd];return _0x27113b;},a4_0x2cd7(_0x108edd,_0x1fedf5);}function a4_0x2711(){var _0x271c02=['prototype','56NcVaVF','ScopeEnum','caching','default','design:type','hset','__metadata','cache','CacheService','defineProperty','hget','Config','metadata','toString','apply','3wAVzNx','reset','del','Singleton','constructor','Cache','18phzcLY','use','file','Scope','length','get','318120nCfVhV','5306672WueOoJ','prefix','__decorate','clients','2972070kqogPw','1229734avpSOJ','4092152SSllSL','(((.+)+)+)+$','cache-manager','hdel','config','function','getOwnPropertyDescriptor','756654upJvev','stores','options','@midwayjs/core','set','2049856tFyykN'];a4_0x2711=function(){return _0x271c02;};return a4_0x2711();}(function(_0x3088e5,_0x5c795b){var _0x46db79=a4_0x2cd7,_0x2df14e=_0x3088e5();while(!![]){try{var _0x19a2d0=-parseInt(_0x46db79(0x21e))/0x1+parseInt(_0x46db79(0x1fb))/0x2*(parseInt(_0x46db79(0x20c))/0x3)+parseInt(_0x46db79(0x219))/0x4+-parseInt(_0x46db79(0x218))/0x5+parseInt(_0x46db79(0x1f6))/0x6*(-parseInt(_0x46db79(0x1fd))/0x7)+-parseInt(_0x46db79(0x21f))/0x8*(-parseInt(_0x46db79(0x212))/0x9)+-parseInt(_0x46db79(0x21d))/0xa;if(_0x19a2d0===_0x5c795b)break;else _0x2df14e['push'](_0x2df14e['shift']());}catch(_0x3aedcf){_0x2df14e['push'](_0x2df14e['shift']());}}}(a4_0x2711,0xbd41d));var a4_0x5df340=(function(){var _0x497ec8=!![];return function(_0x311618,_0x313a74){var _0x439e4e=_0x497ec8?function(){var _0x5736a1=a4_0x2cd7;if(_0x313a74){var _0x162161=_0x313a74[_0x5736a1(0x20b)](_0x311618,arguments);return _0x313a74=null,_0x162161;}}:function(){};return _0x497ec8=![],_0x439e4e;};}()),a4_0xd184dd=a4_0x5df340(this,function(){var _0x1144a3=a4_0x2cd7;return a4_0xd184dd[_0x1144a3(0x20a)]()['search'](_0x1144a3(0x220))[_0x1144a3(0x20a)]()[_0x1144a3(0x210)](a4_0xd184dd)['search'](_0x1144a3(0x220));});a4_0xd184dd();'use strict';var __decorate=this&&this[a4_0x3315bf(0x21b)]||function(_0x4ed60c,_0x1a4699,_0x1d8b82,_0x1b87dc){var _0x2ddd9e=a4_0x3315bf,_0x260bb1=arguments[_0x2ddd9e(0x216)],_0x50312b=_0x260bb1<0x3?_0x1a4699:_0x1b87dc===null?_0x1b87dc=Object[_0x2ddd9e(0x1f5)](_0x1a4699,_0x1d8b82):_0x1b87dc,_0x3f4095;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x2ddd9e(0x1f4))_0x50312b=Reflect['decorate'](_0x4ed60c,_0x1a4699,_0x1d8b82,_0x1b87dc);else{for(var _0x40290e=_0x4ed60c['length']-0x1;_0x40290e>=0x0;_0x40290e--)if(_0x3f4095=_0x4ed60c[_0x40290e])_0x50312b=(_0x260bb1<0x3?_0x3f4095(_0x50312b):_0x260bb1>0x3?_0x3f4095(_0x1a4699,_0x1d8b82,_0x50312b):_0x3f4095(_0x1a4699,_0x1d8b82))||_0x50312b;}return _0x260bb1>0x3&&_0x50312b&&Object[_0x2ddd9e(0x206)](_0x1a4699,_0x1d8b82,_0x50312b),_0x50312b;},__metadata=this&&this[a4_0x3315bf(0x203)]||function(_0x494d3c,_0x45b4cb){var _0x533073=a4_0x3315bf;if(typeof Reflect==='object'&&typeof Reflect[_0x533073(0x209)]===_0x533073(0x1f4))return Reflect[_0x533073(0x209)](_0x494d3c,_0x45b4cb);};Object[a4_0x3315bf(0x206)](exports,'__esModule',{'value':!![]}),exports['Cache']=exports[a4_0x3315bf(0x205)]=void 0x0;const cacheManager=require(a4_0x3315bf(0x1f1)),core_1=require(a4_0x3315bf(0x1f9));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x3315bf(0x213)](_0x5b53c1){var _0x225e95=a4_0x3315bf,_0x343c06,_0x432136;if(!this['cache']){const _0x8c61fc=((_0x343c06=this['config'][_0x225e95(0x1f7)])===null||_0x343c06===void 0x0?void 0x0:_0x343c06[(_0x432136=this[_0x225e95(0x1f3)])===null||_0x432136===void 0x0?void 0x0:_0x432136[_0x225e95(0x200)]])||this[_0x225e95(0x1f3)]['stores'][_0x225e95(0x214)];this[_0x225e95(0x204)]=cacheManager[_0x225e95(0x1ff)]({..._0x8c61fc[_0x225e95(0x1f8)],'store':_0x8c61fc['store']});}return!this[_0x225e95(0x21c)]['has'](_0x5b53c1)&&this[_0x225e95(0x21c)][_0x225e95(0x1fa)](_0x5b53c1,new Cache(_0x5b53c1,this['cache'])),this['clients'][_0x225e95(0x217)](_0x5b53c1);}async[a4_0x3315bf(0x20d)](){var _0x4bb768=a4_0x3315bf;return await this[_0x4bb768(0x204)][_0x4bb768(0x20d)]();}};__decorate([(0x0,core_1[a4_0x3315bf(0x208)])(a4_0x3315bf(0x204)),__metadata(a4_0x3315bf(0x201),Object)],CacheService[a4_0x3315bf(0x1fc)],a4_0x3315bf(0x1f3),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x3315bf(0x215)])(core_1[a4_0x3315bf(0x1fe)][a4_0x3315bf(0x20f)])],CacheService),exports[a4_0x3315bf(0x205)]=CacheService;class Cache{constructor(_0x1a7734,_0x1df26c){var _0x449b71=a4_0x3315bf;this[_0x449b71(0x204)]=_0x1df26c,this[_0x449b71(0x21a)]=_0x1a7734;}async[a4_0x3315bf(0x20e)](_0x26c16e){var _0x3b2e8b=a4_0x3315bf;return await this[_0x3b2e8b(0x204)][_0x3b2e8b(0x20e)](this['prefix']+':'+_0x26c16e);}async[a4_0x3315bf(0x1fa)](_0x785b4c,_0x283543,_0x59d55f){var _0xf2eb03=a4_0x3315bf;return await this['cache']['set'](this[_0xf2eb03(0x21a)]+':'+_0x785b4c,_0x283543,_0x59d55f);}async[a4_0x3315bf(0x217)](_0x22ebc2,_0x5e3e54){return new Promise((_0x4a2cfc,_0x4d1c5a)=>{var _0x2ebc76=a4_0x2cd7;this[_0x2ebc76(0x204)][_0x2ebc76(0x217)](this['prefix']+':'+_0x22ebc2,(_0x5a6a42,_0x1dddb0)=>{_0x5a6a42?_0x4d1c5a(_0x5a6a42):_0x4a2cfc(_0x1dddb0||_0x5e3e54);});});}async[a4_0x3315bf(0x1f2)](_0x102d21,_0xc6b3b5){var _0x537429=a4_0x3315bf;return await this[_0x537429(0x20e)](_0x102d21+'#'+_0xc6b3b5);}async[a4_0x3315bf(0x202)](_0x223dcb,_0x1a87ea,_0x364b7f,_0x75976c){var _0x2c3ae5=a4_0x3315bf;return await this[_0x2c3ae5(0x1fa)](_0x223dcb+'#'+_0x1a87ea,_0x364b7f,_0x75976c);}async[a4_0x3315bf(0x207)](_0x22453b,_0x57a034,_0x5e276d){var _0x209cd4=a4_0x3315bf;return await this[_0x209cd4(0x217)](_0x22453b+'#'+_0x57a034,_0x5e276d);}}exports[a4_0x3315bf(0x211)]=Cache;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.32",
3
+ "version": "3.4.33",
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.1.3"
25
25
  },
26
- "gitHead": "5afc38409934e75ee16d85df4b50cf6bea738297"
26
+ "gitHead": "6e3dc4cc04c16c5f54d726b20f373b159310d1dc"
27
27
  }