@anncic-api/cache 3.4.32 → 3.4.34

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_0xbf8a9d=a0_0x37ec;(function(_0x23694d,_0x328a9e){const _0xf8c496=a0_0x37ec,_0x1ed5ee=_0x23694d();while(!![]){try{const _0x22a978=-parseInt(_0xf8c496(0x155))/0x1+-parseInt(_0xf8c496(0x166))/0x2*(-parseInt(_0xf8c496(0x156))/0x3)+parseInt(_0xf8c496(0x153))/0x4*(-parseInt(_0xf8c496(0x16c))/0x5)+-parseInt(_0xf8c496(0x160))/0x6*(-parseInt(_0xf8c496(0x16a))/0x7)+parseInt(_0xf8c496(0x15e))/0x8*(-parseInt(_0xf8c496(0x154))/0x9)+-parseInt(_0xf8c496(0x161))/0xa*(-parseInt(_0xf8c496(0x15c))/0xb)+-parseInt(_0xf8c496(0x167))/0xc*(-parseInt(_0xf8c496(0x15a))/0xd);if(_0x22a978===_0x328a9e)break;else _0x1ed5ee['push'](_0x1ed5ee['shift']());}catch(_0x660d96){_0x1ed5ee['push'](_0x1ed5ee['shift']());}}}(a0_0x418c,0x6ec61));const a0_0x16c07f=(function(){let _0x584e6f=!![];return function(_0x4393f6,_0x4c88b4){const _0x21a4f9=_0x584e6f?function(){if(_0x4c88b4){const _0x50db45=_0x4c88b4['apply'](_0x4393f6,arguments);return _0x4c88b4=null,_0x50db45;}}:function(){};return _0x584e6f=![],_0x21a4f9;};}()),a0_0x436ec7=a0_0x16c07f(this,function(){const _0x49225b=a0_0x37ec;return a0_0x436ec7[_0x49225b(0x158)]()['search'](_0x49225b(0x169))['toString']()[_0x49225b(0x152)](a0_0x436ec7)[_0x49225b(0x164)]('(((.+)+)+)+$');});a0_0x436ec7();'use strict';Object[a0_0xbf8a9d(0x163)](exports,a0_0xbf8a9d(0x162),{'value':!![]});function a0_0x37ec(_0x2eb1e8,_0x2ebc41){const _0x54b32e=a0_0x418c();return a0_0x37ec=function(_0x436ec7,_0x16c07f){_0x436ec7=_0x436ec7-0x152;let _0x418cbd=_0x54b32e[_0x436ec7];return _0x418cbd;},a0_0x37ec(_0x2eb1e8,_0x2ebc41);}function a0_0x418c(){const _0xef8b89=['appDir','toString','/runtime/.cache','1456iQbVAw','default','2519bDnNaj','cache-manager-ioredis','3612920yNdCce','cache-manager-fs-hash','715470SsbpHk','6340grJbXK','__esModule','defineProperty','search','env','210156WwVOrr','88140zKdEdA','memory','(((.+)+)+)+$','7mIyZyq','127.0.0.1','19025RSRELg','file','constructor','896XgRHAp','9eAptJq','64953uzlJkH','21LAUzLo'];a0_0x418c=function(){return _0xef8b89;};return a0_0x418c();}const fsStore=require(a0_0xbf8a9d(0x15f)),redisStore=require(a0_0xbf8a9d(0x15d));exports[a0_0xbf8a9d(0x15b)]=_0x9b7c9f=>{const _0x4e53c9=a0_0xbf8a9d;return{'cache':{'default':_0x4e53c9(0x16d),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x9b7c9f[_0x4e53c9(0x157)]+_0x4e53c9(0x159)+((_0x9b7c9f===null||_0x9b7c9f===void 0x0?void 0x0:_0x9b7c9f['env'])?'-'+_0x9b7c9f[_0x4e53c9(0x165)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x4e53c9(0x16b),'password':'','ttl':0xed4e00,'keyPrefix':_0x9b7c9f['name']+':'+((_0x9b7c9f===null||_0x9b7c9f===void 0x0?void 0x0:_0x9b7c9f[_0x4e53c9(0x165)])?_0x9b7c9f[_0x4e53c9(0x165)]+':':'')}},'memory':{'store':_0x4e53c9(0x168),'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
+ function a1_0x61dc(){var _0x311284=['toString','3276DAuyfF','1074VsOSKb','defineProperty','length','20mpcwmB','684344YwwZLs','apply','(((.+)+)+)+$','67fFdzhJ','3XefUAq','739116SVsDDT','@midwayjs/core','CustomConfiguration','getOwnPropertyDescriptor','object','7LBCLFK','313748HKHnDP','20108gHGHku','decorate','constructor','search','17404BLrYjf','anncic-api:cache','19780ReCpYy','28099435DGUQJt'];a1_0x61dc=function(){return _0x311284;};return a1_0x61dc();}var a1_0x5647bf=a1_0x1984;function a1_0x1984(_0x169b12,_0x3de714){var _0x59d817=a1_0x61dc();return a1_0x1984=function(_0x2f5a03,_0x297dac){_0x2f5a03=_0x2f5a03-0x96;var _0x61dc94=_0x59d817[_0x2f5a03];return _0x61dc94;},a1_0x1984(_0x169b12,_0x3de714);}(function(_0x38d7e1,_0x571a89){var _0x5c0e42=a1_0x1984,_0x360a8f=_0x38d7e1();while(!![]){try{var _0x1a82ec=parseInt(_0x5c0e42(0xa8))/0x1*(-parseInt(_0x5c0e42(0x9b))/0x2)+-parseInt(_0x5c0e42(0xa9))/0x3*(parseInt(_0x5c0e42(0x96))/0x4)+-parseInt(_0x5c0e42(0x9d))/0x5*(parseInt(_0x5c0e42(0xa1))/0x6)+-parseInt(_0x5c0e42(0xaf))/0x7*(parseInt(_0x5c0e42(0xa5))/0x8)+parseInt(_0x5c0e42(0xaa))/0x9*(parseInt(_0x5c0e42(0xa4))/0xa)+-parseInt(_0x5c0e42(0x97))/0xb*(parseInt(_0x5c0e42(0xa0))/0xc)+parseInt(_0x5c0e42(0x9e))/0xd;if(_0x1a82ec===_0x571a89)break;else _0x360a8f['push'](_0x360a8f['shift']());}catch(_0x566de4){_0x360a8f['push'](_0x360a8f['shift']());}}}(a1_0x61dc,0x5ab69));var a1_0x297dac=(function(){var _0x9324c0=!![];return function(_0x22d74d,_0x3a176c){var _0x334f8d=_0x9324c0?function(){var _0x325ebf=a1_0x1984;if(_0x3a176c){var _0x1d0672=_0x3a176c[_0x325ebf(0xa6)](_0x22d74d,arguments);return _0x3a176c=null,_0x1d0672;}}:function(){};return _0x9324c0=![],_0x334f8d;};}()),a1_0x2f5a03=a1_0x297dac(this,function(){var _0x4243a7=a1_0x1984;return a1_0x2f5a03[_0x4243a7(0x9f)]()[_0x4243a7(0x9a)](_0x4243a7(0xa7))[_0x4243a7(0x9f)]()[_0x4243a7(0x99)](a1_0x2f5a03)[_0x4243a7(0x9a)](_0x4243a7(0xa7));});a1_0x2f5a03();'use strict';var __decorate=this&&this['__decorate']||function(_0x14b728,_0x59ae8f,_0x42a775,_0x536c61){var _0x89913d=a1_0x1984,_0x38f890=arguments[_0x89913d(0xa3)],_0x385e49=_0x38f890<0x3?_0x59ae8f:_0x536c61===null?_0x536c61=Object[_0x89913d(0xad)](_0x59ae8f,_0x42a775):_0x536c61,_0x383a51;if(typeof Reflect===_0x89913d(0xae)&&typeof Reflect[_0x89913d(0x98)]==='function')_0x385e49=Reflect['decorate'](_0x14b728,_0x59ae8f,_0x42a775,_0x536c61);else{for(var _0x2ed634=_0x14b728[_0x89913d(0xa3)]-0x1;_0x2ed634>=0x0;_0x2ed634--)if(_0x383a51=_0x14b728[_0x2ed634])_0x385e49=(_0x38f890<0x3?_0x383a51(_0x385e49):_0x38f890>0x3?_0x383a51(_0x59ae8f,_0x42a775,_0x385e49):_0x383a51(_0x59ae8f,_0x42a775))||_0x385e49;}return _0x38f890>0x3&&_0x385e49&&Object[_0x89913d(0xa2)](_0x59ae8f,_0x42a775,_0x385e49),_0x385e49;};Object[a1_0x5647bf(0xa2)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x5647bf(0xab)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x5647bf(0x9c),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5647bf(0xac)]=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_0x35b37d=a2_0x4f82;(function(_0x11bddf,_0x51fbc3){const _0x3dfb1a=a2_0x4f82,_0x1ce7c9=_0x11bddf();while(!![]){try{const _0x240db7=-parseInt(_0x3dfb1a(0x157))/0x1*(parseInt(_0x3dfb1a(0x14d))/0x2)+-parseInt(_0x3dfb1a(0x163))/0x3+-parseInt(_0x3dfb1a(0x14e))/0x4*(-parseInt(_0x3dfb1a(0x165))/0x5)+-parseInt(_0x3dfb1a(0x166))/0x6*(parseInt(_0x3dfb1a(0x152))/0x7)+parseInt(_0x3dfb1a(0x160))/0x8+parseInt(_0x3dfb1a(0x153))/0x9*(parseInt(_0x3dfb1a(0x156))/0xa)+parseInt(_0x3dfb1a(0x14c))/0xb*(parseInt(_0x3dfb1a(0x159))/0xc);if(_0x240db7===_0x51fbc3)break;else _0x1ce7c9['push'](_0x1ce7c9['shift']());}catch(_0x41dbe2){_0x1ce7c9['push'](_0x1ce7c9['shift']());}}}(a2_0x3cfd,0xb0a54));const a2_0x4a32cf=(function(){let _0x156aed=!![];return function(_0x2cd7a1,_0x54021f){const _0x467ca7=_0x156aed?function(){const _0x1d9de5=a2_0x4f82;if(_0x54021f){const _0x969b96=_0x54021f[_0x1d9de5(0x14f)](_0x2cd7a1,arguments);return _0x54021f=null,_0x969b96;}}:function(){};return _0x156aed=![],_0x467ca7;};}()),a2_0x32b3e8=a2_0x4a32cf(this,function(){const _0x2ed3e7=a2_0x4f82;return a2_0x32b3e8[_0x2ed3e7(0x150)]()['search'](_0x2ed3e7(0x15a))['toString']()['constructor'](a2_0x32b3e8)[_0x2ed3e7(0x151)](_0x2ed3e7(0x15a));});a2_0x32b3e8();function a2_0x3cfd(){const _0x48cd0f=['../service/CacheService','3168228NCXIjH','(((.+)+)+)+$','Cache','set','use','stringify','__esModule','3856488ZreyVM','MD5','Method::Decorator','3717666MZoveH','REQUEST_OBJ_CTX_KEY','3165NboNgQ','5934vUOYze','getApplicationContext','@midwayjs/core','143cvSHPx','916838bhmVJw','772dnBYGq','apply','toString','search','6937QTgeht','9Jgxdnc','value','get','2816410RbPTAP','3KKkGxj'];a2_0x3cfd=function(){return _0x48cd0f;};return a2_0x3cfd();}'use strict';Object['defineProperty'](exports,a2_0x35b37d(0x15f),{'value':!![]}),exports[a2_0x35b37d(0x15b)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x35b37d(0x158)),core_1=require(a2_0x35b37d(0x14b));function Cache(_0x5ee105,_0x4f5e9f){return(_0x1eb81a,_0x3b8b53,_0x42c2aa)=>{const _0x21db2d=a2_0x4f82,_0x57c23a=_0x42c2aa['value'];return _0x42c2aa[_0x21db2d(0x154)]=async function(..._0x5c7fe6){const _0x43353d=_0x21db2d;!_0x5ee105&&(_0x5ee105=(0x0,crypto_js_1[_0x43353d(0x161)])(JSON[_0x43353d(0x15e)](_0x5c7fe6))[_0x43353d(0x150)]());let _0x53da47=await this[core_1[_0x43353d(0x164)]]['app'][_0x43353d(0x14a)]()['getAsync'](CacheService_1['CacheService']),_0x4fd3e9=await _0x53da47[_0x43353d(0x15d)](_0x43353d(0x162))[_0x43353d(0x155)](_0x5ee105);if(_0x4fd3e9)return JSON['parse'](_0x4fd3e9);else _0x4fd3e9=await _0x57c23a[_0x43353d(0x14f)](this,[..._0x5c7fe6]),await _0x53da47['use'](_0x43353d(0x162))[_0x43353d(0x15c)](_0x5ee105,JSON[_0x43353d(0x15e)](_0x4fd3e9),_0x4f5e9f);return _0x4fd3e9;},_0x42c2aa;};}function a2_0x4f82(_0x200041,_0x2dbdbf){const _0x200a06=a2_0x3cfd();return a2_0x4f82=function(_0x32b3e8,_0x4a32cf){_0x32b3e8=_0x32b3e8-0x14a;let _0x3cfd1a=_0x200a06[_0x32b3e8];return _0x3cfd1a;},a2_0x4f82(_0x200041,_0x2dbdbf);}exports['Cache']=Cache;
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_0x56dcf8=a3_0x4b91;(function(_0x599cc0,_0xcf0f83){var _0x140ef3=a3_0x4b91,_0x24ac5f=_0x599cc0();while(!![]){try{var _0x4e170a=-parseInt(_0x140ef3(0x1a5))/0x1*(parseInt(_0x140ef3(0x19a))/0x2)+parseInt(_0x140ef3(0x197))/0x3+-parseInt(_0x140ef3(0x192))/0x4+parseInt(_0x140ef3(0x194))/0x5*(-parseInt(_0x140ef3(0x199))/0x6)+-parseInt(_0x140ef3(0x1a3))/0x7*(-parseInt(_0x140ef3(0x19e))/0x8)+-parseInt(_0x140ef3(0x191))/0x9*(parseInt(_0x140ef3(0x19b))/0xa)+parseInt(_0x140ef3(0x19f))/0xb;if(_0x4e170a===_0xcf0f83)break;else _0x24ac5f['push'](_0x24ac5f['shift']());}catch(_0x212cd9){_0x24ac5f['push'](_0x24ac5f['shift']());}}}(a3_0x13d8,0x213d2));var a3_0x3fdcb7=(function(){var _0x2bccd4=!![];return function(_0x3cd337,_0x5e4e0c){var _0x46a87b=_0x2bccd4?function(){var _0x3ff68b=a3_0x4b91;if(_0x5e4e0c){var _0x3e53e2=_0x5e4e0c[_0x3ff68b(0x1a2)](_0x3cd337,arguments);return _0x5e4e0c=null,_0x3e53e2;}}:function(){};return _0x2bccd4=![],_0x46a87b;};}()),a3_0x2d4cde=a3_0x3fdcb7(this,function(){var _0x376ae3=a3_0x4b91;return a3_0x2d4cde[_0x376ae3(0x19c)]()[_0x376ae3(0x196)](_0x376ae3(0x1a1))[_0x376ae3(0x19c)]()['constructor'](a3_0x2d4cde)[_0x376ae3(0x196)]('(((.+)+)+)+$');});a3_0x2d4cde();'use strict';Object['defineProperty'](exports,a3_0x56dcf8(0x193),{'value':!![]}),exports[a3_0x56dcf8(0x1a0)]=exports[a3_0x56dcf8(0x190)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x56dcf8(0x195));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x366df3=a3_0x56dcf8;return configuration_1[_0x366df3(0x198)];}});var Cache_1=require('./decorator/Cache');Object[a3_0x56dcf8(0x19d)](exports,a3_0x56dcf8(0x190),{'enumerable':!![],'get':function(){var _0x52bf8b=a3_0x56dcf8;return Cache_1[_0x52bf8b(0x190)];}});var CacheService_1=require(a3_0x56dcf8(0x1a4));function a3_0x4b91(_0x4aa332,_0x113dc9){var _0xede75a=a3_0x13d8();return a3_0x4b91=function(_0x2d4cde,_0x3fdcb7){_0x2d4cde=_0x2d4cde-0x190;var _0x13d85a=_0xede75a[_0x2d4cde];return _0x13d85a;},a3_0x4b91(_0x4aa332,_0x113dc9);}function a3_0x13d8(){var _0x5a1d8e=['CustomConfiguration','739632BCjoKw','95824mwZyeI','3540MOquBW','toString','defineProperty','16GIUHxn','4417248jQnTkN','CacheService','(((.+)+)+)+$','apply','799491VNXsXS','./service/CacheService','4WekNhy','Cache','5949Auxnls','712544CgaRJO','__esModule','5BgrhBZ','./configuration','search','699606aNoTpR'];a3_0x13d8=function(){return _0x5a1d8e;};return a3_0x13d8();}Object[a3_0x56dcf8(0x19d)](exports,a3_0x56dcf8(0x1a0),{'enumerable':!![],'get':function(){var _0x2a3ccd=a3_0x56dcf8;return CacheService_1[_0x2a3ccd(0x1a0)];}});
@@ -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_0xc0cef6=a4_0x3ea4;(function(_0x1213d9,_0x593a28){var _0x3999d5=a4_0x3ea4,_0x37f248=_0x1213d9();while(!![]){try{var _0x2be832=-parseInt(_0x3999d5(0x1c6))/0x1*(parseInt(_0x3999d5(0x1f2))/0x2)+-parseInt(_0x3999d5(0x1d7))/0x3+parseInt(_0x3999d5(0x1f1))/0x4*(parseInt(_0x3999d5(0x1cb))/0x5)+-parseInt(_0x3999d5(0x1d1))/0x6*(-parseInt(_0x3999d5(0x1d4))/0x7)+parseInt(_0x3999d5(0x1d0))/0x8+parseInt(_0x3999d5(0x1eb))/0x9*(-parseInt(_0x3999d5(0x1d3))/0xa)+-parseInt(_0x3999d5(0x1d5))/0xb;if(_0x2be832===_0x593a28)break;else _0x37f248['push'](_0x37f248['shift']());}catch(_0x4c0716){_0x37f248['push'](_0x37f248['shift']());}}}(a4_0x502d,0x817bd));var a4_0x11725d=(function(){var _0x4f84f8=!![];return function(_0x164022,_0x3f82ca){var _0x19e214=_0x4f84f8?function(){if(_0x3f82ca){var _0x3e22bc=_0x3f82ca['apply'](_0x164022,arguments);return _0x3f82ca=null,_0x3e22bc;}}:function(){};return _0x4f84f8=![],_0x19e214;};}()),a4_0x2b1e6e=a4_0x11725d(this,function(){var _0x1b0f89=a4_0x3ea4;return a4_0x2b1e6e['toString']()[_0x1b0f89(0x1d6)](_0x1b0f89(0x1ee))['toString']()[_0x1b0f89(0x1d9)](a4_0x2b1e6e)['search'](_0x1b0f89(0x1ee));});a4_0x2b1e6e();'use strict';function a4_0x3ea4(_0xfe016,_0x3bcde1){var _0x5723b6=a4_0x502d();return a4_0x3ea4=function(_0x2b1e6e,_0x11725d){_0x2b1e6e=_0x2b1e6e-0x1c5;var _0x502d22=_0x5723b6[_0x2b1e6e];return _0x502d22;},a4_0x3ea4(_0xfe016,_0x3bcde1);}var __decorate=this&&this[a4_0xc0cef6(0x1cf)]||function(_0x237625,_0xd492d4,_0x351140,_0x30598a){var _0x4a365f=a4_0xc0cef6,_0xe2a899=arguments[_0x4a365f(0x1e4)],_0x534ee7=_0xe2a899<0x3?_0xd492d4:_0x30598a===null?_0x30598a=Object[_0x4a365f(0x1dd)](_0xd492d4,_0x351140):_0x30598a,_0x2efcfc;if(typeof Reflect===_0x4a365f(0x1e8)&&typeof Reflect['decorate']==='function')_0x534ee7=Reflect['decorate'](_0x237625,_0xd492d4,_0x351140,_0x30598a);else{for(var _0x2a22e8=_0x237625[_0x4a365f(0x1e4)]-0x1;_0x2a22e8>=0x0;_0x2a22e8--)if(_0x2efcfc=_0x237625[_0x2a22e8])_0x534ee7=(_0xe2a899<0x3?_0x2efcfc(_0x534ee7):_0xe2a899>0x3?_0x2efcfc(_0xd492d4,_0x351140,_0x534ee7):_0x2efcfc(_0xd492d4,_0x351140))||_0x534ee7;}return _0xe2a899>0x3&&_0x534ee7&&Object[_0x4a365f(0x1d8)](_0xd492d4,_0x351140,_0x534ee7),_0x534ee7;},__metadata=this&&this[a4_0xc0cef6(0x1cc)]||function(_0x455bae,_0x24f0f0){var _0x1e739a=a4_0xc0cef6;if(typeof Reflect===_0x1e739a(0x1e8)&&typeof Reflect['metadata']===_0x1e739a(0x1dc))return Reflect['metadata'](_0x455bae,_0x24f0f0);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cache']=exports[a4_0xc0cef6(0x1f3)]=void 0x0;const cacheManager=require(a4_0xc0cef6(0x1e1)),core_1=require(a4_0xc0cef6(0x1cd));let CacheService=class CacheService{constructor(){var _0x1653ea=a4_0xc0cef6;this[_0x1653ea(0x1db)]=undefined,this[_0x1653ea(0x1ea)]=new Map();}[a4_0xc0cef6(0x1c5)](_0x69360c){var _0x34259e=a4_0xc0cef6,_0x565d6c,_0x15af4c;if(!this[_0x34259e(0x1db)]){const _0x28b7f8=((_0x565d6c=this['config'][_0x34259e(0x1ec)])===null||_0x565d6c===void 0x0?void 0x0:_0x565d6c[(_0x15af4c=this[_0x34259e(0x1c7)])===null||_0x15af4c===void 0x0?void 0x0:_0x15af4c[_0x34259e(0x1d2)]])||this[_0x34259e(0x1c7)][_0x34259e(0x1ec)][_0x34259e(0x1c8)];this[_0x34259e(0x1db)]=cacheManager['caching']({..._0x28b7f8[_0x34259e(0x1e3)],'store':_0x28b7f8[_0x34259e(0x1ca)]});}return!this[_0x34259e(0x1ea)][_0x34259e(0x1ce)](_0x69360c)&&this['clients']['set'](_0x69360c,new Cache(_0x69360c,this['cache'])),this['clients'][_0x34259e(0x1de)](_0x69360c);}async[a4_0xc0cef6(0x1da)](){return await this['cache']['reset']();}};__decorate([(0x0,core_1[a4_0xc0cef6(0x1ef)])(a4_0xc0cef6(0x1db)),__metadata(a4_0xc0cef6(0x1e6),Object)],CacheService[a4_0xc0cef6(0x1f0)],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0xc0cef6(0x1e0)])(),(0x0,core_1[a4_0xc0cef6(0x1e9)])(core_1['ScopeEnum'][a4_0xc0cef6(0x1e2)])],CacheService),exports[a4_0xc0cef6(0x1f3)]=CacheService;class Cache{constructor(_0x3b777b,_0x3fde09){var _0x451d40=a4_0xc0cef6;this[_0x451d40(0x1db)]=_0x3fde09,this['prefix']=_0x3b777b;}async[a4_0xc0cef6(0x1e7)](_0x4edef6){var _0xaa0421=a4_0xc0cef6;return await this['cache'][_0xaa0421(0x1e7)](this[_0xaa0421(0x1e5)]+':'+_0x4edef6);}async[a4_0xc0cef6(0x1df)](_0x2aca0f,_0x227300,_0x1094fb){var _0x1cd677=a4_0xc0cef6;return await this[_0x1cd677(0x1db)]['set'](this[_0x1cd677(0x1e5)]+':'+_0x2aca0f,_0x227300,_0x1094fb);}async[a4_0xc0cef6(0x1de)](_0x478444,_0x12b473){return new Promise((_0x3b6503,_0x142e51)=>{var _0x5c17af=a4_0x3ea4;this['cache'][_0x5c17af(0x1de)](this[_0x5c17af(0x1e5)]+':'+_0x478444,(_0x475225,_0x4bb3dd)=>{_0x475225?_0x142e51(_0x475225):_0x3b6503(_0x4bb3dd||_0x12b473);});});}async[a4_0xc0cef6(0x1c9)](_0x333949,_0x524db3){return await this['del'](_0x333949+'#'+_0x524db3);}async['hset'](_0x11bd3b,_0x18bd15,_0x5a20a5,_0x414aae){var _0xfa6827=a4_0xc0cef6;return await this[_0xfa6827(0x1df)](_0x11bd3b+'#'+_0x18bd15,_0x5a20a5,_0x414aae);}async[a4_0xc0cef6(0x1ed)](_0x27ddce,_0x32610d,_0x54f029){var _0x146c38=a4_0xc0cef6;return await this[_0x146c38(0x1de)](_0x27ddce+'#'+_0x32610d,_0x54f029);}}exports['Cache']=Cache;function a4_0x502d(){var _0xc8624b=['options','length','prefix','design:type','del','object','Scope','clients','1804689kiJsQL','stores','hget','(((.+)+)+)+$','Config','prototype','185508axCUoJ','46TnERrC','CacheService','use','21759mXEVFn','config','file','hdel','store','75CZfMUd','__metadata','@midwayjs/core','has','__decorate','6955376iXtotu','682728AbvAeB','default','30keTavJ','42WPIoTm','4623234gGyHSk','search','585378FyrMaZ','defineProperty','constructor','reset','cache','function','getOwnPropertyDescriptor','get','set','Provide','cache-manager','Singleton'];a4_0x502d=function(){return _0xc8624b;};return a4_0x502d();}
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.34",
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": "ee5d6108f5470a0eac75bcbc1fde8f24de4e68be"
27
27
  }