@anncic-api/cache 3.4.37 → 3.4.39

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_0x50fa82=a0_0x34c7;(function(_0x3fd086,_0xb5873e){const _0x3382ee=a0_0x34c7,_0x4e480a=_0x3fd086();while(!![]){try{const _0x53bf1d=parseInt(_0x3382ee(0x192))/0x1*(-parseInt(_0x3382ee(0x183))/0x2)+-parseInt(_0x3382ee(0x191))/0x3*(parseInt(_0x3382ee(0x196))/0x4)+-parseInt(_0x3382ee(0x18f))/0x5+-parseInt(_0x3382ee(0x195))/0x6+-parseInt(_0x3382ee(0x189))/0x7*(parseInt(_0x3382ee(0x18d))/0x8)+parseInt(_0x3382ee(0x17f))/0x9*(parseInt(_0x3382ee(0x182))/0xa)+parseInt(_0x3382ee(0x184))/0xb;if(_0x53bf1d===_0xb5873e)break;else _0x4e480a['push'](_0x4e480a['shift']());}catch(_0x22b43d){_0x4e480a['push'](_0x4e480a['shift']());}}}(a0_0x1379,0xee993));const a0_0x29bdb5=(function(){let _0xa376a7=!![];return function(_0x4505a7,_0x531f4c){const _0x323a64=_0xa376a7?function(){const _0x1be7d2=a0_0x34c7;if(_0x531f4c){const _0x285517=_0x531f4c[_0x1be7d2(0x190)](_0x4505a7,arguments);return _0x531f4c=null,_0x285517;}}:function(){};return _0xa376a7=![],_0x323a64;};}()),a0_0x35ee94=a0_0x29bdb5(this,function(){const _0x30f7cb=a0_0x34c7;return a0_0x35ee94[_0x30f7cb(0x18e)]()[_0x30f7cb(0x193)](_0x30f7cb(0x17d))[_0x30f7cb(0x18e)]()[_0x30f7cb(0x186)](a0_0x35ee94)['search'](_0x30f7cb(0x17d));});a0_0x35ee94();'use strict';Object[a0_0x50fa82(0x188)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x50fa82(0x17c)),redisStore=require(a0_0x50fa82(0x18b));function a0_0x34c7(_0x7622e4,_0x2b636b){const _0x22a0c5=a0_0x1379();return a0_0x34c7=function(_0x35ee94,_0x29bdb5){_0x35ee94=_0x35ee94-0x17c;let _0x13791b=_0x22a0c5[_0x35ee94];return _0x13791b;},a0_0x34c7(_0x7622e4,_0x2b636b);}exports[a0_0x50fa82(0x18c)]=_0x5e6b47=>{const _0x10ddf0=a0_0x50fa82;return{'cache':{'default':_0x10ddf0(0x180),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x5e6b47[_0x10ddf0(0x187)]+_0x10ddf0(0x185)+((_0x5e6b47===null||_0x5e6b47===void 0x0?void 0x0:_0x5e6b47[_0x10ddf0(0x181)])?'-'+_0x5e6b47[_0x10ddf0(0x181)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x10ddf0(0x18a),'password':'','ttl':0xed4e00,'keyPrefix':_0x5e6b47[_0x10ddf0(0x194)]+':'+((_0x5e6b47===null||_0x5e6b47===void 0x0?void 0x0:_0x5e6b47[_0x10ddf0(0x181)])?_0x5e6b47['env']+':':'')}},'memory':{'store':_0x10ddf0(0x17e),'options':{'max':0x64,'ttl':0xed4e00}}}}};};function a0_0x1379(){const _0x31178f=['10571586Eoywih','4iGdbTz','cache-manager-fs-hash','(((.+)+)+)+$','memory','346455AoVUTA','file','env','250yJtWVr','2600854ZtrDaK','83823366aDzibZ','/runtime/.cache','constructor','appDir','defineProperty','535087ehnsxc','127.0.0.1','cache-manager-ioredis','default','136ASmzeh','toString','8391755KpQqpm','apply','4695528DJkwab','1BmOdUY','search','name'];a0_0x1379=function(){return _0x31178f;};return a0_0x1379();}
1
+ const a0_0x20c620=a0_0x32a7;(function(_0x53eefe,_0x42ae38){const _0x1ace94=a0_0x32a7,_0x5b73a5=_0x53eefe();while(!![]){try{const _0x4fa16d=-parseInt(_0x1ace94(0x18c))/0x1+parseInt(_0x1ace94(0x189))/0x2*(parseInt(_0x1ace94(0x18a))/0x3)+parseInt(_0x1ace94(0x17e))/0x4*(-parseInt(_0x1ace94(0x180))/0x5)+parseInt(_0x1ace94(0x187))/0x6+-parseInt(_0x1ace94(0x193))/0x7*(-parseInt(_0x1ace94(0x188))/0x8)+parseInt(_0x1ace94(0x18e))/0x9*(parseInt(_0x1ace94(0x18f))/0xa)+parseInt(_0x1ace94(0x192))/0xb;if(_0x4fa16d===_0x42ae38)break;else _0x5b73a5['push'](_0x5b73a5['shift']());}catch(_0xedb0d3){_0x5b73a5['push'](_0x5b73a5['shift']());}}}(a0_0x5c6e,0x8651b));function a0_0x5c6e(){const _0x54a210=['10DAhEBa','apply','/runtime/.cache','7283661ULsNxf','1561XlHZvN','appDir','1906540ddthHb','127.0.0.1','10oOIAYa','name','env','constructor','(((.+)+)+)+$','toString','memory','3670776sKqdxM','7408KjCykv','58ykARDo','90051UZwBxJ','cache-manager-ioredis','944221zicgei','search','870516uWttkU'];a0_0x5c6e=function(){return _0x54a210;};return a0_0x5c6e();}function a0_0x32a7(_0xb2df46,_0x3921a5){const _0x59aead=a0_0x5c6e();return a0_0x32a7=function(_0x154761,_0xcaf029){_0x154761=_0x154761-0x17d;let _0x5c6e18=_0x59aead[_0x154761];return _0x5c6e18;},a0_0x32a7(_0xb2df46,_0x3921a5);}const a0_0xcaf029=(function(){let _0x5d510f=!![];return function(_0x3d9f88,_0x1656f6){const _0x2a1955=_0x5d510f?function(){const _0x213e62=a0_0x32a7;if(_0x1656f6){const _0x3788f9=_0x1656f6[_0x213e62(0x190)](_0x3d9f88,arguments);return _0x1656f6=null,_0x3788f9;}}:function(){};return _0x5d510f=![],_0x2a1955;};}()),a0_0x154761=a0_0xcaf029(this,function(){const _0x2dafdb=a0_0x32a7;return a0_0x154761[_0x2dafdb(0x185)]()[_0x2dafdb(0x18d)]('(((.+)+)+)+$')[_0x2dafdb(0x185)]()[_0x2dafdb(0x183)](a0_0x154761)[_0x2dafdb(0x18d)](_0x2dafdb(0x184));});a0_0x154761();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x20c620(0x18b));exports['default']=_0x35effa=>{const _0x4c64bc=a0_0x20c620;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x35effa[_0x4c64bc(0x17d)]+_0x4c64bc(0x191)+((_0x35effa===null||_0x35effa===void 0x0?void 0x0:_0x35effa[_0x4c64bc(0x182)])?'-'+_0x35effa[_0x4c64bc(0x182)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x4c64bc(0x17f),'password':'','ttl':0xed4e00,'keyPrefix':_0x35effa[_0x4c64bc(0x181)]+':'+((_0x35effa===null||_0x35effa===void 0x0?void 0x0:_0x35effa[_0x4c64bc(0x182)])?_0x35effa['env']+':':'')}},'memory':{'store':_0x4c64bc(0x186),'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_0x3d9694=a1_0x3bd8;(function(_0x3d2db3,_0x211173){var _0x2fcc2f=a1_0x3bd8,_0x2279b9=_0x3d2db3();while(!![]){try{var _0x4e09ca=parseInt(_0x2fcc2f(0xe4))/0x1*(-parseInt(_0x2fcc2f(0xe2))/0x2)+-parseInt(_0x2fcc2f(0xe5))/0x3+parseInt(_0x2fcc2f(0xed))/0x4+parseInt(_0x2fcc2f(0xe7))/0x5*(-parseInt(_0x2fcc2f(0xd5))/0x6)+parseInt(_0x2fcc2f(0xdc))/0x7*(parseInt(_0x2fcc2f(0xdf))/0x8)+-parseInt(_0x2fcc2f(0xe1))/0x9*(-parseInt(_0x2fcc2f(0xdb))/0xa)+-parseInt(_0x2fcc2f(0xe0))/0xb*(-parseInt(_0x2fcc2f(0xd8))/0xc);if(_0x4e09ca===_0x211173)break;else _0x2279b9['push'](_0x2279b9['shift']());}catch(_0x1dbab6){_0x2279b9['push'](_0x2279b9['shift']());}}}(a1_0x4352,0xebd9e));var a1_0x3fa23f=(function(){var _0x1165ae=!![];return function(_0x2afe60,_0x9dc3c2){var _0x520791=_0x1165ae?function(){if(_0x9dc3c2){var _0x545e75=_0x9dc3c2['apply'](_0x2afe60,arguments);return _0x9dc3c2=null,_0x545e75;}}:function(){};return _0x1165ae=![],_0x520791;};}()),a1_0x1ca6da=a1_0x3fa23f(this,function(){var _0x4107bd=a1_0x3bd8;return a1_0x1ca6da[_0x4107bd(0xdd)]()[_0x4107bd(0xd9)](_0x4107bd(0xde))[_0x4107bd(0xdd)]()['constructor'](a1_0x1ca6da)[_0x4107bd(0xd9)](_0x4107bd(0xde));});function a1_0x3bd8(_0x4922d9,_0x5042fb){var _0x30492e=a1_0x4352();return a1_0x3bd8=function(_0x1ca6da,_0x3fa23f){_0x1ca6da=_0x1ca6da-0xd5;var _0x4352b5=_0x30492e[_0x1ca6da];return _0x4352b5;},a1_0x3bd8(_0x4922d9,_0x5042fb);}a1_0x1ca6da();'use strict';var __decorate=this&&this[a1_0x3d9694(0xda)]||function(_0x164c86,_0x1f3772,_0x4ffc5c,_0x136fe1){var _0x5429b7=a1_0x3d9694,_0x5fa665=arguments[_0x5429b7(0xec)],_0x29c5e7=_0x5fa665<0x3?_0x1f3772:_0x136fe1===null?_0x136fe1=Object[_0x5429b7(0xea)](_0x1f3772,_0x4ffc5c):_0x136fe1,_0x22ccb4;if(typeof Reflect==='object'&&typeof Reflect[_0x5429b7(0xe8)]===_0x5429b7(0xd6))_0x29c5e7=Reflect['decorate'](_0x164c86,_0x1f3772,_0x4ffc5c,_0x136fe1);else{for(var _0x1aeb09=_0x164c86[_0x5429b7(0xec)]-0x1;_0x1aeb09>=0x0;_0x1aeb09--)if(_0x22ccb4=_0x164c86[_0x1aeb09])_0x29c5e7=(_0x5fa665<0x3?_0x22ccb4(_0x29c5e7):_0x5fa665>0x3?_0x22ccb4(_0x1f3772,_0x4ffc5c,_0x29c5e7):_0x22ccb4(_0x1f3772,_0x4ffc5c))||_0x29c5e7;}return _0x5fa665>0x3&&_0x29c5e7&&Object['defineProperty'](_0x1f3772,_0x4ffc5c,_0x29c5e7),_0x29c5e7;};Object['defineProperty'](exports,a1_0x3d9694(0xd7),{'value':!![]}),exports[a1_0x3d9694(0xe3)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x3d9694(0xeb));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x3d9694(0xe9)])({'conflictCheck':![],'namespace':a1_0x3d9694(0xe6),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x3d9694(0xe3)]=CustomConfiguration;function a1_0x4352(){var _0x36d7d3=['__esModule','312KxRaUM','search','__decorate','109750VAijeq','7aEmWMY','toString','(((.+)+)+)+$','224392ldnTiY','371602lIXDVz','1206WHIzcR','6husGwG','CustomConfiguration','216564NCHlCh','2328201bvrWmw','anncic-api:cache','5xyhldY','decorate','Configuration','getOwnPropertyDescriptor','./config/config.default','length','2576804auhjJH','3776562AeEzyI','function'];a1_0x4352=function(){return _0x36d7d3;};return a1_0x4352();}
1
+ var a1_0x4dae67=a1_0x352c;(function(_0x58354c,_0x150068){var _0x4bc26d=a1_0x352c,_0x40bec3=_0x58354c();while(!![]){try{var _0x4f4e92=parseInt(_0x4bc26d(0xc3))/0x1*(-parseInt(_0x4bc26d(0xc0))/0x2)+parseInt(_0x4bc26d(0xbc))/0x3*(parseInt(_0x4bc26d(0xd0))/0x4)+parseInt(_0x4bc26d(0xd1))/0x5*(parseInt(_0x4bc26d(0xba))/0x6)+parseInt(_0x4bc26d(0xbf))/0x7+-parseInt(_0x4bc26d(0xc2))/0x8+-parseInt(_0x4bc26d(0xc6))/0x9+parseInt(_0x4bc26d(0xc1))/0xa;if(_0x4f4e92===_0x150068)break;else _0x40bec3['push'](_0x40bec3['shift']());}catch(_0x4f798a){_0x40bec3['push'](_0x40bec3['shift']());}}}(a1_0x2ad2,0xd0b7f));var a1_0x2e45d6=(function(){var _0x2f6ed8=!![];return function(_0x3aaf8e,_0x186f3c){var _0x1051a8=_0x2f6ed8?function(){var _0x580fcc=a1_0x352c;if(_0x186f3c){var _0x419ad4=_0x186f3c[_0x580fcc(0xcc)](_0x3aaf8e,arguments);return _0x186f3c=null,_0x419ad4;}}:function(){};return _0x2f6ed8=![],_0x1051a8;};}()),a1_0x401cf3=a1_0x2e45d6(this,function(){var _0x36d75a=a1_0x352c;return a1_0x401cf3['toString']()['search']('(((.+)+)+)+$')[_0x36d75a(0xbd)]()[_0x36d75a(0xc7)](a1_0x401cf3)[_0x36d75a(0xbe)](_0x36d75a(0xcb));});a1_0x401cf3();function a1_0x352c(_0x3dd53b,_0x4972d9){var _0x2a4ed6=a1_0x2ad2();return a1_0x352c=function(_0x401cf3,_0x2e45d6){_0x401cf3=_0x401cf3-0xba;var _0x2ad253=_0x2a4ed6[_0x401cf3];return _0x2ad253;},a1_0x352c(_0x3dd53b,_0x4972d9);}'use strict';var __decorate=this&&this[a1_0x4dae67(0xbb)]||function(_0x2dddba,_0x90e2ba,_0x75a454,_0x3942b1){var _0x3fe0ee=a1_0x4dae67,_0x49150f=arguments[_0x3fe0ee(0xcf)],_0x5d7940=_0x49150f<0x3?_0x90e2ba:_0x3942b1===null?_0x3942b1=Object['getOwnPropertyDescriptor'](_0x90e2ba,_0x75a454):_0x3942b1,_0x508e5e;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x5d7940=Reflect[_0x3fe0ee(0xce)](_0x2dddba,_0x90e2ba,_0x75a454,_0x3942b1);else{for(var _0x5f3a1e=_0x2dddba[_0x3fe0ee(0xcf)]-0x1;_0x5f3a1e>=0x0;_0x5f3a1e--)if(_0x508e5e=_0x2dddba[_0x5f3a1e])_0x5d7940=(_0x49150f<0x3?_0x508e5e(_0x5d7940):_0x49150f>0x3?_0x508e5e(_0x90e2ba,_0x75a454,_0x5d7940):_0x508e5e(_0x90e2ba,_0x75a454))||_0x5d7940;}return _0x49150f>0x3&&_0x5d7940&&Object[_0x3fe0ee(0xc5)](_0x90e2ba,_0x75a454,_0x5d7940),_0x5d7940;};Object['defineProperty'](exports,a1_0x4dae67(0xcd),{'value':!![]}),exports[a1_0x4dae67(0xc9)]=void 0x0;function a1_0x2ad2(){var _0x2c62cc=['length','152wDQOLx','409790QXHywE','@midwayjs/core','6wVdRbw','__decorate','80877POymdW','toString','search','7338268QUvfJR','1208OStyfP','5517730PPeZSU','6849456ZrdWFY','1541HqIBrf','Configuration','defineProperty','581760YnGelq','constructor','./config/config.default','CustomConfiguration','anncic-api:cache','(((.+)+)+)+$','apply','__esModule','decorate'];a1_0x2ad2=function(){return _0x2c62cc;};return a1_0x2ad2();}const core_1=require(a1_0x4dae67(0xd2)),ConfigDefault=require(a1_0x4dae67(0xc8));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x4dae67(0xc9)]=CustomConfiguration,exports[a1_0x4dae67(0xc9)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x4dae67(0xc4)])({'conflictCheck':![],'namespace':a1_0x4dae67(0xca),'importConfigs':[{'default':ConfigDefault}]})],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_0x29cd34=a2_0x35da;function a2_0x35da(_0x7cf437,_0x3492d9){const _0xf7393a=a2_0x5589();return a2_0x35da=function(_0x5925ea,_0x4fea5f){_0x5925ea=_0x5925ea-0x119;let _0x5589b4=_0xf7393a[_0x5925ea];return _0x5589b4;},a2_0x35da(_0x7cf437,_0x3492d9);}(function(_0xf23b9a,_0x327e68){const _0xf1cbf7=a2_0x35da,_0xeacf8b=_0xf23b9a();while(!![]){try{const _0x41da1=-parseInt(_0xf1cbf7(0x126))/0x1*(parseInt(_0xf1cbf7(0x133))/0x2)+parseInt(_0xf1cbf7(0x122))/0x3+-parseInt(_0xf1cbf7(0x11c))/0x4+-parseInt(_0xf1cbf7(0x139))/0x5*(parseInt(_0xf1cbf7(0x12a))/0x6)+-parseInt(_0xf1cbf7(0x124))/0x7*(-parseInt(_0xf1cbf7(0x138))/0x8)+-parseInt(_0xf1cbf7(0x12c))/0x9*(parseInt(_0xf1cbf7(0x12b))/0xa)+parseInt(_0xf1cbf7(0x129))/0xb;if(_0x41da1===_0x327e68)break;else _0xeacf8b['push'](_0xeacf8b['shift']());}catch(_0x56b71a){_0xeacf8b['push'](_0xeacf8b['shift']());}}}(a2_0x5589,0xda392));const a2_0x4fea5f=(function(){let _0x443ae0=!![];return function(_0x574070,_0x46cfe7){const _0x2030da=_0x443ae0?function(){const _0x571191=a2_0x35da;if(_0x46cfe7){const _0x55296c=_0x46cfe7[_0x571191(0x130)](_0x574070,arguments);return _0x46cfe7=null,_0x55296c;}}:function(){};return _0x443ae0=![],_0x2030da;};}()),a2_0x5925ea=a2_0x4fea5f(this,function(){const _0x205cd4=a2_0x35da;return a2_0x5925ea[_0x205cd4(0x12d)]()[_0x205cd4(0x132)](_0x205cd4(0x125))[_0x205cd4(0x12d)]()[_0x205cd4(0x11d)](a2_0x5925ea)[_0x205cd4(0x132)]('(((.+)+)+)+$');});a2_0x5925ea();'use strict';function a2_0x5589(){const _0x32ab3c=['23062248HJnLmA','150yypMpE','20MXhNeo','332379ZCCRhJ','toString','value','REQUEST_OBJ_CTX_KEY','apply','../service/CacheService','search','8wanlYj','MD5','getAsync','use','__esModule','24rpXFzW','316775DaqtPJ','get','CacheService','set','5025192bQrTLp','constructor','crypto-js','getApplicationContext','Cache','Method::Decorator','3485277hTWCkv','@midwayjs/core','3397002LnDgIx','(((.+)+)+)+$','226577XwzJaN','app','stringify'];a2_0x5589=function(){return _0x32ab3c;};return a2_0x5589();}Object['defineProperty'](exports,a2_0x29cd34(0x137),{'value':!![]}),exports[a2_0x29cd34(0x120)]=void 0x0;const crypto_js_1=require(a2_0x29cd34(0x11e)),CacheService_1=require(a2_0x29cd34(0x131)),core_1=require(a2_0x29cd34(0x123));function Cache(_0x59820e,_0x55d33f){return(_0x6e7a27,_0x1159be,_0xe059ae)=>{const _0x109685=a2_0x35da,_0x20458c=_0xe059ae[_0x109685(0x12e)];return _0xe059ae[_0x109685(0x12e)]=async function(..._0x1d76ee){const _0x151125=_0x109685;!_0x59820e&&(_0x59820e=(0x0,crypto_js_1[_0x151125(0x134)])(JSON['stringify'](_0x1d76ee))[_0x151125(0x12d)]());let _0x31fa69=await this[core_1[_0x151125(0x12f)]][_0x151125(0x127)][_0x151125(0x11f)]()[_0x151125(0x135)](CacheService_1[_0x151125(0x11a)]),_0x22c47c=await _0x31fa69[_0x151125(0x136)](_0x151125(0x121))[_0x151125(0x119)](_0x59820e);if(_0x22c47c)return JSON['parse'](_0x22c47c);else _0x22c47c=await _0x20458c[_0x151125(0x130)](this,[..._0x1d76ee]),await _0x31fa69[_0x151125(0x136)]('Method::Decorator')[_0x151125(0x11b)](_0x59820e,JSON[_0x151125(0x128)](_0x22c47c),_0x55d33f);return _0x22c47c;},_0xe059ae;};}exports[a2_0x29cd34(0x120)]=Cache;
1
+ function a2_0x577e(){const _0x4bd07a=['MD5','set','get','587093SFhcjm','use','7XQMxyE','4WPJGKS','apply','parse','getAsync','5488752TOniDM','value','121050wdmsPx','REQUEST_OBJ_CTX_KEY','defineProperty','1867990lKSIuz','stringify','toString','(((.+)+)+)+$','Method::Decorator','596866rtjIGm','1295607KRKfGg','crypto-js','constructor','8770vrtXRb','4527xpjXIB','../service/CacheService'];a2_0x577e=function(){return _0x4bd07a;};return a2_0x577e();}const a2_0x1c7d52=a2_0x4d20;(function(_0x1dd769,_0x3abae7){const _0x4668b1=a2_0x4d20,_0x4ec104=_0x1dd769();while(!![]){try{const _0x487fe3=parseInt(_0x4668b1(0x189))/0x1+parseInt(_0x4668b1(0x19a))/0x2+parseInt(_0x4668b1(0x19b))/0x3+parseInt(_0x4668b1(0x18c))/0x4*(parseInt(_0x4668b1(0x195))/0x5)+-parseInt(_0x4668b1(0x192))/0x6*(parseInt(_0x4668b1(0x18b))/0x7)+-parseInt(_0x4668b1(0x190))/0x8+-parseInt(_0x4668b1(0x19f))/0x9*(parseInt(_0x4668b1(0x19e))/0xa);if(_0x487fe3===_0x3abae7)break;else _0x4ec104['push'](_0x4ec104['shift']());}catch(_0x1b50f5){_0x4ec104['push'](_0x4ec104['shift']());}}}(a2_0x577e,0x84b69));const a2_0xc8846f=(function(){let _0x39de12=!![];return function(_0x1f375b,_0x592440){const _0x2d3cff=_0x39de12?function(){const _0x43f2c1=a2_0x4d20;if(_0x592440){const _0x1c5226=_0x592440[_0x43f2c1(0x18d)](_0x1f375b,arguments);return _0x592440=null,_0x1c5226;}}:function(){};return _0x39de12=![],_0x2d3cff;};}()),a2_0x14a51a=a2_0xc8846f(this,function(){const _0x3984d1=a2_0x4d20;return a2_0x14a51a[_0x3984d1(0x197)]()['search'](_0x3984d1(0x198))['toString']()[_0x3984d1(0x19d)](a2_0x14a51a)['search'](_0x3984d1(0x198));});function a2_0x4d20(_0x129d73,_0x2f1524){const _0x3fb54b=a2_0x577e();return a2_0x4d20=function(_0x14a51a,_0xc8846f){_0x14a51a=_0x14a51a-0x189;let _0x577ec0=_0x3fb54b[_0x14a51a];return _0x577ec0;},a2_0x4d20(_0x129d73,_0x2f1524);}a2_0x14a51a();'use strict';Object[a2_0x1c7d52(0x194)](exports,'__esModule',{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require(a2_0x1c7d52(0x19c)),CacheService_1=require(a2_0x1c7d52(0x1a0)),core_1=require('@midwayjs/core');function Cache(_0x5b32fb,_0x24ee27){return(_0x55f2fa,_0x2fb935,_0x219259)=>{const _0x2b4063=a2_0x4d20,_0x458cb2=_0x219259[_0x2b4063(0x191)];return _0x219259[_0x2b4063(0x191)]=async function(..._0x38f119){const _0xd6eeef=_0x2b4063;!_0x5b32fb&&(_0x5b32fb=(0x0,crypto_js_1[_0xd6eeef(0x1a1)])(JSON[_0xd6eeef(0x196)](_0x38f119))['toString']());let _0x31e9a7=await this[core_1[_0xd6eeef(0x193)]]['app']['getApplicationContext']()[_0xd6eeef(0x18f)](CacheService_1['CacheService']),_0x41beac=await _0x31e9a7[_0xd6eeef(0x18a)](_0xd6eeef(0x199))[_0xd6eeef(0x1a3)](_0x5b32fb);if(_0x41beac)return JSON[_0xd6eeef(0x18e)](_0x41beac);else _0x41beac=await _0x458cb2[_0xd6eeef(0x18d)](this,[..._0x38f119]),await _0x31e9a7[_0xd6eeef(0x18a)](_0xd6eeef(0x199))[_0xd6eeef(0x1a2)](_0x5b32fb,JSON['stringify'](_0x41beac),_0x24ee27);return _0x41beac;},_0x219259;};}
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_0xc03088=a3_0x3ed6;function a3_0x409e(){var _0x5cf662=['constructor','toString','(((.+)+)+)+$','__esModule','3686431GCprDJ','CacheService','6859310RYGWCW','search','273032EOnaIt','6BZbkmA','CustomConfiguration','1162491ckDzXq','apply','Cache','7931340NZceVn','./decorator/Cache','Configuration','./configuration','defineProperty','./service/CacheService','20584oSGtqe','5CyIkZn','183wlQQmt','5811816JKhXAJ'];a3_0x409e=function(){return _0x5cf662;};return a3_0x409e();}(function(_0x30f6ba,_0x183343){var _0x1c0f58=a3_0x3ed6,_0x13309d=_0x30f6ba();while(!![]){try{var _0x51beea=parseInt(_0x1c0f58(0x1ea))/0x1+parseInt(_0x1c0f58(0x1db))/0x2*(-parseInt(_0x1c0f58(0x1dd))/0x3)+-parseInt(_0x1c0f58(0x1e7))/0x4*(-parseInt(_0x1c0f58(0x1dc))/0x5)+parseInt(_0x1c0f58(0x1e8))/0x6*(parseInt(_0x1c0f58(0x1e3))/0x7)+-parseInt(_0x1c0f58(0x1de))/0x8+parseInt(_0x1c0f58(0x1d5))/0x9+-parseInt(_0x1c0f58(0x1e5))/0xa;if(_0x51beea===_0x183343)break;else _0x13309d['push'](_0x13309d['shift']());}catch(_0x14f627){_0x13309d['push'](_0x13309d['shift']());}}}(a3_0x409e,0x92196));var a3_0x4e0fb7=(function(){var _0x4b43ac=!![];return function(_0x402dc3,_0x3ff5cc){var _0x5761ad=_0x4b43ac?function(){var _0x53d825=a3_0x3ed6;if(_0x3ff5cc){var _0x20aa5c=_0x3ff5cc[_0x53d825(0x1eb)](_0x402dc3,arguments);return _0x3ff5cc=null,_0x20aa5c;}}:function(){};return _0x4b43ac=![],_0x5761ad;};}()),a3_0x45b468=a3_0x4e0fb7(this,function(){var _0x5774dc=a3_0x3ed6;return a3_0x45b468['toString']()['search'](_0x5774dc(0x1e1))[_0x5774dc(0x1e0)]()[_0x5774dc(0x1df)](a3_0x45b468)[_0x5774dc(0x1e6)](_0x5774dc(0x1e1));});function a3_0x3ed6(_0x379bd2,_0x4abc36){var _0x35a133=a3_0x409e();return a3_0x3ed6=function(_0x45b468,_0x4e0fb7){_0x45b468=_0x45b468-0x1d5;var _0x409e63=_0x35a133[_0x45b468];return _0x409e63;},a3_0x3ed6(_0x379bd2,_0x4abc36);}a3_0x45b468();'use strict';Object[a3_0xc03088(0x1d9)](exports,a3_0xc03088(0x1e2),{'value':!![]}),exports[a3_0xc03088(0x1e4)]=exports[a3_0xc03088(0x1ec)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0xc03088(0x1d8));Object[a3_0xc03088(0x1d9)](exports,a3_0xc03088(0x1d7),{'enumerable':!![],'get':function(){var _0x3e99fe=a3_0xc03088;return configuration_1[_0x3e99fe(0x1e9)];}});var Cache_1=require(a3_0xc03088(0x1d6));Object[a3_0xc03088(0x1d9)](exports,a3_0xc03088(0x1ec),{'enumerable':!![],'get':function(){var _0x490ec7=a3_0xc03088;return Cache_1[_0x490ec7(0x1ec)];}});var CacheService_1=require(a3_0xc03088(0x1da));Object[a3_0xc03088(0x1d9)](exports,a3_0xc03088(0x1e4),{'enumerable':!![],'get':function(){var _0x242082=a3_0xc03088;return CacheService_1[_0x242082(0x1e4)];}});
1
+ var a3_0x442782=a3_0x4b90;(function(_0x344cba,_0x162905){var _0xc4b9f0=a3_0x4b90,_0x10b928=_0x344cba();while(!![]){try{var _0x41e9cd=-parseInt(_0xc4b9f0(0x6f))/0x1*(parseInt(_0xc4b9f0(0x77))/0x2)+-parseInt(_0xc4b9f0(0x6e))/0x3+-parseInt(_0xc4b9f0(0x6b))/0x4+-parseInt(_0xc4b9f0(0x79))/0x5+parseInt(_0xc4b9f0(0x7b))/0x6+-parseInt(_0xc4b9f0(0x72))/0x7+parseInt(_0xc4b9f0(0x71))/0x8*(parseInt(_0xc4b9f0(0x70))/0x9);if(_0x41e9cd===_0x162905)break;else _0x10b928['push'](_0x10b928['shift']());}catch(_0x237857){_0x10b928['push'](_0x10b928['shift']());}}}(a3_0x1957,0x470b3));var a3_0x4ceb79=(function(){var _0x5015a8=!![];return function(_0x41b669,_0x3e1cf7){var _0x1dda0b=_0x5015a8?function(){var _0x376023=a3_0x4b90;if(_0x3e1cf7){var _0x54da76=_0x3e1cf7[_0x376023(0x73)](_0x41b669,arguments);return _0x3e1cf7=null,_0x54da76;}}:function(){};return _0x5015a8=![],_0x1dda0b;};}()),a3_0x163002=a3_0x4ceb79(this,function(){var _0x170c4c=a3_0x4b90;return a3_0x163002[_0x170c4c(0x78)]()['search'](_0x170c4c(0x7a))[_0x170c4c(0x78)]()['constructor'](a3_0x163002)[_0x170c4c(0x75)](_0x170c4c(0x7a));});a3_0x163002();'use strict';Object[a3_0x442782(0x76)](exports,a3_0x442782(0x6c),{'value':!![]}),exports[a3_0x442782(0x6a)]=exports[a3_0x442782(0x74)]=exports[a3_0x442782(0x69)]=void 0x0;function a3_0x4b90(_0x46cf9b,_0x320175){var _0x10a208=a3_0x1957();return a3_0x4b90=function(_0x163002,_0x4ceb79){_0x163002=_0x163002-0x69;var _0x1957b9=_0x10a208[_0x163002];return _0x1957b9;},a3_0x4b90(_0x46cf9b,_0x320175);}var configuration_1=require(a3_0x442782(0x7d));Object[a3_0x442782(0x76)](exports,a3_0x442782(0x69),{'enumerable':!![],'get':function(){var _0x4430a3=a3_0x442782;return configuration_1[_0x4430a3(0x7c)];}});var Cache_1=require('./decorator/Cache');function a3_0x1957(){var _0x18d0ba=['./configuration','Configuration','CacheService','1125372zoIqmF','__esModule','./service/CacheService','1337946PvmgoL','2RkGNLh','63081OjCFzd','1720HpyrEK','2683065yKPXUT','apply','Cache','search','defineProperty','103684DFzlnl','toString','2178870hJvShd','(((.+)+)+)+$','2604828duKdCC','CustomConfiguration'];a3_0x1957=function(){return _0x18d0ba;};return a3_0x1957();}Object[a3_0x442782(0x76)](exports,a3_0x442782(0x74),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x442782(0x6d));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x45d8be=a3_0x442782;return CacheService_1[_0x45d8be(0x6a)];}});
@@ -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_0x2f17c1=a4_0x4f90;(function(_0x3b099d,_0x33f433){var _0x1997f5=a4_0x4f90,_0x16d646=_0x3b099d();while(!![]){try{var _0x20d5f7=parseInt(_0x1997f5(0x11d))/0x1*(parseInt(_0x1997f5(0x126))/0x2)+-parseInt(_0x1997f5(0x131))/0x3+-parseInt(_0x1997f5(0x133))/0x4+-parseInt(_0x1997f5(0x138))/0x5+parseInt(_0x1997f5(0x11e))/0x6+-parseInt(_0x1997f5(0x11a))/0x7+-parseInt(_0x1997f5(0x135))/0x8*(-parseInt(_0x1997f5(0x140))/0x9);if(_0x20d5f7===_0x33f433)break;else _0x16d646['push'](_0x16d646['shift']());}catch(_0x1e0bf0){_0x16d646['push'](_0x16d646['shift']());}}}(a4_0x44ad,0x9d1ff));var a4_0x279c29=(function(){var _0x211884=!![];return function(_0x18a88c,_0x47bdb6){var _0x29b415=_0x211884?function(){var _0x3e14b4=a4_0x4f90;if(_0x47bdb6){var _0x403594=_0x47bdb6[_0x3e14b4(0x11b)](_0x18a88c,arguments);return _0x47bdb6=null,_0x403594;}}:function(){};return _0x211884=![],_0x29b415;};}()),a4_0x4c3e5c=a4_0x279c29(this,function(){var _0x446b24=a4_0x4f90;return a4_0x4c3e5c[_0x446b24(0x123)]()[_0x446b24(0x13c)](_0x446b24(0x130))['toString']()['constructor'](a4_0x4c3e5c)[_0x446b24(0x13c)]('(((.+)+)+)+$');});a4_0x4c3e5c();'use strict';function a4_0x4f90(_0x4f74dc,_0x5df1b4){var _0x12d89e=a4_0x44ad();return a4_0x4f90=function(_0x4c3e5c,_0x279c29){_0x4c3e5c=_0x4c3e5c-0x117;var _0x44ad3e=_0x12d89e[_0x4c3e5c];return _0x44ad3e;},a4_0x4f90(_0x4f74dc,_0x5df1b4);}var __decorate=this&&this[a4_0x2f17c1(0x141)]||function(_0x2426a3,_0x2e2e73,_0x4fae3f,_0x37dd99){var _0x5ce1ca=a4_0x2f17c1,_0x18c50f=arguments['length'],_0x182ac4=_0x18c50f<0x3?_0x2e2e73:_0x37dd99===null?_0x37dd99=Object['getOwnPropertyDescriptor'](_0x2e2e73,_0x4fae3f):_0x37dd99,_0x1ac4ad;if(typeof Reflect===_0x5ce1ca(0x117)&&typeof Reflect[_0x5ce1ca(0x13d)]===_0x5ce1ca(0x13f))_0x182ac4=Reflect[_0x5ce1ca(0x13d)](_0x2426a3,_0x2e2e73,_0x4fae3f,_0x37dd99);else{for(var _0x291785=_0x2426a3[_0x5ce1ca(0x122)]-0x1;_0x291785>=0x0;_0x291785--)if(_0x1ac4ad=_0x2426a3[_0x291785])_0x182ac4=(_0x18c50f<0x3?_0x1ac4ad(_0x182ac4):_0x18c50f>0x3?_0x1ac4ad(_0x2e2e73,_0x4fae3f,_0x182ac4):_0x1ac4ad(_0x2e2e73,_0x4fae3f))||_0x182ac4;}return _0x18c50f>0x3&&_0x182ac4&&Object[_0x5ce1ca(0x13a)](_0x2e2e73,_0x4fae3f,_0x182ac4),_0x182ac4;},__metadata=this&&this['__metadata']||function(_0x3ccef3,_0x517737){var _0x27c792=a4_0x2f17c1;if(typeof Reflect===_0x27c792(0x117)&&typeof Reflect[_0x27c792(0x11f)]==='function')return Reflect[_0x27c792(0x11f)](_0x3ccef3,_0x517737);};Object['defineProperty'](exports,a4_0x2f17c1(0x128),{'value':!![]}),exports[a4_0x2f17c1(0x139)]=exports[a4_0x2f17c1(0x125)]=void 0x0;const cacheManager=require(a4_0x2f17c1(0x119)),core_1=require(a4_0x2f17c1(0x129));function a4_0x44ad(){var _0x20c2a0=['1288566rJZNzd','__decorate','default','file','clients','object','cache','cache-manager','3340673meSJVS','apply','ScopeEnum','6yCMlVs','1743570NlSpVN','metadata','design:type','stores','length','toString','set','CacheService','54536BeGqOT','Scope','__esModule','@midwayjs/core','hdel','prefix','caching','get','reset','use','(((.+)+)+)+$','3304566DIQZBX','hget','3659724QeezCo','Config','192uUVARO','prototype','config','3765520JjtNEL','Cache','defineProperty','del','search','decorate','options','function'];a4_0x44ad=function(){return _0x20c2a0;};return a4_0x44ad();}let CacheService=class CacheService{constructor(){var _0xf4b4a6=a4_0x2f17c1;this['cache']=undefined,this[_0xf4b4a6(0x144)]=new Map();}[a4_0x2f17c1(0x12f)](_0xec37ac){var _0x5007ff=a4_0x2f17c1,_0x29dc9f,_0x448114;if(!this[_0x5007ff(0x118)]){const _0xab192b=((_0x29dc9f=this[_0x5007ff(0x137)]['stores'])===null||_0x29dc9f===void 0x0?void 0x0:_0x29dc9f[(_0x448114=this[_0x5007ff(0x137)])===null||_0x448114===void 0x0?void 0x0:_0x448114[_0x5007ff(0x142)]])||this[_0x5007ff(0x137)][_0x5007ff(0x121)][_0x5007ff(0x143)];this[_0x5007ff(0x118)]=cacheManager[_0x5007ff(0x12c)]({..._0xab192b[_0x5007ff(0x13e)],'store':_0xab192b['store']});}return!this[_0x5007ff(0x144)]['has'](_0xec37ac)&&this[_0x5007ff(0x144)]['set'](_0xec37ac,new Cache(_0xec37ac,this[_0x5007ff(0x118)])),this['clients'][_0x5007ff(0x12d)](_0xec37ac);}async['reset'](){var _0x1b9cd4=a4_0x2f17c1;return await this['cache'][_0x1b9cd4(0x12e)]();}};__decorate([(0x0,core_1[a4_0x2f17c1(0x134)])(a4_0x2f17c1(0x118)),__metadata(a4_0x2f17c1(0x120),Object)],CacheService[a4_0x2f17c1(0x136)],a4_0x2f17c1(0x137),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x2f17c1(0x127)])(core_1[a4_0x2f17c1(0x11c)]['Singleton'])],CacheService),exports['CacheService']=CacheService;class Cache{constructor(_0x4adb68,_0x2be5dd){var _0x2c6e64=a4_0x2f17c1;this[_0x2c6e64(0x118)]=_0x2be5dd,this[_0x2c6e64(0x12b)]=_0x4adb68;}async['del'](_0x598147){var _0x53a797=a4_0x2f17c1;return await this[_0x53a797(0x118)]['del'](this['prefix']+':'+_0x598147);}async[a4_0x2f17c1(0x124)](_0x168f1a,_0x2e1db2,_0x2f9a34){var _0x25bac8=a4_0x2f17c1;return await this[_0x25bac8(0x118)][_0x25bac8(0x124)](this[_0x25bac8(0x12b)]+':'+_0x168f1a,_0x2e1db2,_0x2f9a34);}async[a4_0x2f17c1(0x12d)](_0x1025d6,_0x6ff625){return new Promise((_0x4f1c8a,_0x1612f1)=>{var _0x5c84fa=a4_0x4f90;this[_0x5c84fa(0x118)][_0x5c84fa(0x12d)](this[_0x5c84fa(0x12b)]+':'+_0x1025d6,(_0x423221,_0x5dee19)=>{_0x423221?_0x1612f1(_0x423221):_0x4f1c8a(_0x5dee19||_0x6ff625);});});}async[a4_0x2f17c1(0x12a)](_0x366bf3,_0x1e7261){var _0x4d47ba=a4_0x2f17c1;return await this[_0x4d47ba(0x13b)](_0x366bf3+'#'+_0x1e7261);}async['hset'](_0x5458fa,_0x588a61,_0x39667c,_0x5b8281){var _0x110b8f=a4_0x2f17c1;return await this[_0x110b8f(0x124)](_0x5458fa+'#'+_0x588a61,_0x39667c,_0x5b8281);}async[a4_0x2f17c1(0x132)](_0x5e9254,_0x51dc70,_0x43331f){var _0x266da4=a4_0x2f17c1;return await this[_0x266da4(0x12d)](_0x5e9254+'#'+_0x51dc70,_0x43331f);}}exports[a4_0x2f17c1(0x139)]=Cache;
1
+ var a4_0x378c3b=a4_0x3e16;(function(_0x31e636,_0x48317c){var _0x33af23=a4_0x3e16,_0x2650b6=_0x31e636();while(!![]){try{var _0x487164=parseInt(_0x33af23(0x16f))/0x1*(-parseInt(_0x33af23(0x171))/0x2)+parseInt(_0x33af23(0x177))/0x3*(parseInt(_0x33af23(0x197))/0x4)+-parseInt(_0x33af23(0x16d))/0x5*(-parseInt(_0x33af23(0x17e))/0x6)+parseInt(_0x33af23(0x19e))/0x7+parseInt(_0x33af23(0x17b))/0x8*(-parseInt(_0x33af23(0x188))/0x9)+-parseInt(_0x33af23(0x180))/0xa+parseInt(_0x33af23(0x185))/0xb*(parseInt(_0x33af23(0x18f))/0xc);if(_0x487164===_0x48317c)break;else _0x2650b6['push'](_0x2650b6['shift']());}catch(_0x536148){_0x2650b6['push'](_0x2650b6['shift']());}}}(a4_0x3872,0xad899));var a4_0x5ec5d2=(function(){var _0x4e898a=!![];return function(_0x59004f,_0xe13585){var _0x3fd6e4=_0x4e898a?function(){var _0x289df6=a4_0x3e16;if(_0xe13585){var _0x3bd5e4=_0xe13585[_0x289df6(0x184)](_0x59004f,arguments);return _0xe13585=null,_0x3bd5e4;}}:function(){};return _0x4e898a=![],_0x3fd6e4;};}()),a4_0x5ed528=a4_0x5ec5d2(this,function(){var _0x250528=a4_0x3e16;return a4_0x5ed528[_0x250528(0x176)]()[_0x250528(0x182)](_0x250528(0x183))[_0x250528(0x176)]()[_0x250528(0x195)](a4_0x5ed528)[_0x250528(0x182)](_0x250528(0x183));});function a4_0x3872(){var _0x56e4bc=['@midwayjs/core','hset','prototype','36UbzKMG','store','set','getOwnPropertyDescriptor','caching','defineProperty','constructor','Scope','488qmpQEd','metadata','Singleton','hdel','decorate','__esModule','config','3534342XhYWNX','prefix','3512390vyfHIF','function','1389767LuXGuK','get','2oxVWWK','del','Cache','file','hget','toString','24285poKtUp','has','object','__decorate','24fReTYq','cache','options','6tyPQFH','reset','6267570KbfQwX','default','search','(((.+)+)+)+$','apply','3132426YATmkS','clients','stores','965817adSGnJ','CacheService','length','cache-manager'];a4_0x3872=function(){return _0x56e4bc;};return a4_0x3872();}a4_0x5ed528();'use strict';var __decorate=this&&this[a4_0x378c3b(0x17a)]||function(_0x45fca3,_0xebedd4,_0x78bd37,_0x594262){var _0x5b8e3e=a4_0x378c3b,_0x2a0b0b=arguments['length'],_0x149f17=_0x2a0b0b<0x3?_0xebedd4:_0x594262===null?_0x594262=Object[_0x5b8e3e(0x192)](_0xebedd4,_0x78bd37):_0x594262,_0x31a353;if(typeof Reflect===_0x5b8e3e(0x179)&&typeof Reflect[_0x5b8e3e(0x19b)]===_0x5b8e3e(0x16e))_0x149f17=Reflect['decorate'](_0x45fca3,_0xebedd4,_0x78bd37,_0x594262);else{for(var _0x26b09a=_0x45fca3[_0x5b8e3e(0x18a)]-0x1;_0x26b09a>=0x0;_0x26b09a--)if(_0x31a353=_0x45fca3[_0x26b09a])_0x149f17=(_0x2a0b0b<0x3?_0x31a353(_0x149f17):_0x2a0b0b>0x3?_0x31a353(_0xebedd4,_0x78bd37,_0x149f17):_0x31a353(_0xebedd4,_0x78bd37))||_0x149f17;}return _0x2a0b0b>0x3&&_0x149f17&&Object[_0x5b8e3e(0x194)](_0xebedd4,_0x78bd37,_0x149f17),_0x149f17;},__metadata=this&&this['__metadata']||function(_0x104873,_0x3ac7aa){var _0x25848a=a4_0x378c3b;if(typeof Reflect===_0x25848a(0x179)&&typeof Reflect['metadata']==='function')return Reflect[_0x25848a(0x198)](_0x104873,_0x3ac7aa);};Object[a4_0x378c3b(0x194)](exports,a4_0x378c3b(0x19c),{'value':!![]}),exports[a4_0x378c3b(0x173)]=exports['CacheService']=void 0x0;const cacheManager=require(a4_0x378c3b(0x18b)),core_1=require(a4_0x378c3b(0x18c));let CacheService=class CacheService{constructor(){var _0x348019=a4_0x378c3b;this[_0x348019(0x17c)]=undefined,this['clients']=new Map();}['use'](_0x276c9e){var _0x33634f=a4_0x378c3b,_0x264e96,_0x4ca67d;if(!this['cache']){const _0x2ebc00=((_0x264e96=this[_0x33634f(0x19d)][_0x33634f(0x187)])===null||_0x264e96===void 0x0?void 0x0:_0x264e96[(_0x4ca67d=this[_0x33634f(0x19d)])===null||_0x4ca67d===void 0x0?void 0x0:_0x4ca67d[_0x33634f(0x181)]])||this[_0x33634f(0x19d)][_0x33634f(0x187)][_0x33634f(0x174)];this[_0x33634f(0x17c)]=cacheManager[_0x33634f(0x193)]({..._0x2ebc00[_0x33634f(0x17d)],'store':_0x2ebc00[_0x33634f(0x190)]});}return!this[_0x33634f(0x186)][_0x33634f(0x178)](_0x276c9e)&&this[_0x33634f(0x186)][_0x33634f(0x191)](_0x276c9e,new Cache(_0x276c9e,this[_0x33634f(0x17c)])),this[_0x33634f(0x186)]['get'](_0x276c9e);}async[a4_0x378c3b(0x17f)](){var _0x2addbf=a4_0x378c3b;return await this[_0x2addbf(0x17c)][_0x2addbf(0x17f)]();}};exports[a4_0x378c3b(0x189)]=CacheService,__decorate([(0x0,core_1['Config'])(a4_0x378c3b(0x17c)),__metadata('design:type',Object)],CacheService[a4_0x378c3b(0x18e)],'config',void 0x0),exports[a4_0x378c3b(0x189)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x378c3b(0x196)])(core_1['ScopeEnum'][a4_0x378c3b(0x199)])],CacheService);class Cache{constructor(_0x5d1f16,_0x5d051b){var _0xec6682=a4_0x378c3b;this[_0xec6682(0x17c)]=_0x5d051b,this[_0xec6682(0x16c)]=_0x5d1f16;}async['del'](_0x4d67f1){var _0x15ba53=a4_0x378c3b;return await this[_0x15ba53(0x17c)]['del'](this[_0x15ba53(0x16c)]+':'+_0x4d67f1);}async[a4_0x378c3b(0x191)](_0x28c1b4,_0xf0e65,_0x955994){var _0x4b798f=a4_0x378c3b;return await this['cache']['set'](this[_0x4b798f(0x16c)]+':'+_0x28c1b4,_0xf0e65,_0x955994);}async[a4_0x378c3b(0x170)](_0x2efe1d,_0x1da12f){return new Promise((_0x4fadfb,_0xe4cd7b)=>{var _0x471a48=a4_0x3e16;this[_0x471a48(0x17c)][_0x471a48(0x170)](this[_0x471a48(0x16c)]+':'+_0x2efe1d,(_0x3dd9b7,_0x49612a)=>{_0x3dd9b7?_0xe4cd7b(_0x3dd9b7):_0x4fadfb(_0x49612a||_0x1da12f);});});}async[a4_0x378c3b(0x19a)](_0x2a42a3,_0x647fd9){var _0x5e0bef=a4_0x378c3b;return await this[_0x5e0bef(0x172)](_0x2a42a3+'#'+_0x647fd9);}async[a4_0x378c3b(0x18d)](_0x4d05f6,_0x3fb135,_0x2c2615,_0x49dded){var _0x4fc5e5=a4_0x378c3b;return await this[_0x4fc5e5(0x191)](_0x4d05f6+'#'+_0x3fb135,_0x2c2615,_0x49dded);}async[a4_0x378c3b(0x175)](_0x175192,_0x5390d2,_0x28e81b){var _0x42213e=a4_0x378c3b;return await this[_0x42213e(0x170)](_0x175192+'#'+_0x5390d2,_0x28e81b);}}function a4_0x3e16(_0x396022,_0x238724){var _0x31d686=a4_0x3872();return a4_0x3e16=function(_0x5ed528,_0x5ec5d2){_0x5ed528=_0x5ed528-0x16c;var _0x3872a4=_0x31d686[_0x5ed528];return _0x3872a4;},a4_0x3e16(_0x396022,_0x238724);}exports[a4_0x378c3b(0x173)]=Cache;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.37",
3
+ "version": "3.4.39",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  "devDependencies": {
22
22
  "@types/node": "^20.3.2",
23
23
  "javascript-obfuscator": "^4.0.2",
24
- "typescript": "^5.1.3"
24
+ "typescript": "^5.5.4"
25
25
  },
26
- "gitHead": "9d9dcfc7790a3a7ad01aeaf7458384489676ec38"
26
+ "gitHead": "a34be632fbc14c4127142f2281341b234b27b8e8"
27
27
  }