@anncic-api/cache 3.4.38 → 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.
- package/dist/config/config.default.d.ts +33 -33
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +1 -1
- package/dist/decorator/Cache.d.ts +1 -1
- package/dist/decorator/Cache.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/service/CacheService.d.ts +19 -19
- package/dist/service/CacheService.js +1 -1
- package/package.json +3 -3
|
@@ -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
|
-
|
|
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}}}}};};
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class CustomConfiguration {
|
|
2
|
-
}
|
|
1
|
+
export declare class CustomConfiguration {
|
|
2
|
+
}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
24
|
+
"typescript": "^5.5.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a34be632fbc14c4127142f2281341b234b27b8e8"
|
|
27
27
|
}
|