@anncic-api/cache 3.4.24 → 3.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -2
|
@@ -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
|
|
1
|
+
const a0_0x3ead47=a0_0x4dce;(function(_0x13b57f,_0x41523f){const _0x4da7c1=a0_0x4dce,_0x4d7ff8=_0x13b57f();while(!![]){try{const _0x1951ab=parseInt(_0x4da7c1(0x12f))/0x1*(-parseInt(_0x4da7c1(0x149))/0x2)+parseInt(_0x4da7c1(0x133))/0x3*(-parseInt(_0x4da7c1(0x13a))/0x4)+-parseInt(_0x4da7c1(0x131))/0x5*(-parseInt(_0x4da7c1(0x138))/0x6)+-parseInt(_0x4da7c1(0x13c))/0x7*(-parseInt(_0x4da7c1(0x141))/0x8)+parseInt(_0x4da7c1(0x143))/0x9+parseInt(_0x4da7c1(0x145))/0xa*(parseInt(_0x4da7c1(0x148))/0xb)+-parseInt(_0x4da7c1(0x140))/0xc;if(_0x1951ab===_0x41523f)break;else _0x4d7ff8['push'](_0x4d7ff8['shift']());}catch(_0x139321){_0x4d7ff8['push'](_0x4d7ff8['shift']());}}}(a0_0x1465,0xda98a));const a0_0x5d978d=(function(){let _0x493c40=!![];return function(_0x38e2fd,_0x12c58b){const _0x3a5182=_0x493c40?function(){const _0x1d1f03=a0_0x4dce;if(_0x12c58b){const _0x57c6f0=_0x12c58b[_0x1d1f03(0x132)](_0x38e2fd,arguments);return _0x12c58b=null,_0x57c6f0;}}:function(){};return _0x493c40=![],_0x3a5182;};}()),a0_0x14fd38=a0_0x5d978d(this,function(){const _0x39837f=a0_0x4dce;return a0_0x14fd38[_0x39837f(0x134)]()['search'](_0x39837f(0x137))[_0x39837f(0x134)]()[_0x39837f(0x146)](a0_0x14fd38)[_0x39837f(0x13e)](_0x39837f(0x137));});a0_0x14fd38();function a0_0x1465(){const _0x3b745b=['32PYvdYt','default','4767417vqoibF','127.0.0.1','3688660zIsxGE','constructor','memory','11YhFxZZ','910mLqTmZ','defineProperty','1015ZxBVTv','__esModule','145OMLNjw','apply','180918xmUMUv','toString','/runtime/.cache','appDir','(((.+)+)+)+$','168066cURZjB','env','12thWiGl','cache-manager-ioredis','995183KReMNB','file','search','name','8897532uLRNeB'];a0_0x1465=function(){return _0x3b745b;};return a0_0x1465();}'use strict';Object[a0_0x3ead47(0x12e)](exports,a0_0x3ead47(0x130),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x3ead47(0x13b));function a0_0x4dce(_0x5dd537,_0x5a6b9c){const _0x29a59e=a0_0x1465();return a0_0x4dce=function(_0x14fd38,_0x5d978d){_0x14fd38=_0x14fd38-0x12e;let _0x146576=_0x29a59e[_0x14fd38];return _0x146576;},a0_0x4dce(_0x5dd537,_0x5a6b9c);}exports[a0_0x3ead47(0x142)]=_0xf2c6ad=>{const _0x33b2e2=a0_0x3ead47;return{'cache':{'default':_0x33b2e2(0x13d),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0xf2c6ad[_0x33b2e2(0x136)]+_0x33b2e2(0x135)+((_0xf2c6ad===null||_0xf2c6ad===void 0x0?void 0x0:_0xf2c6ad[_0x33b2e2(0x139)])?'-'+_0xf2c6ad[_0x33b2e2(0x139)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x33b2e2(0x144),'password':'','ttl':0xed4e00,'keyPrefix':_0xf2c6ad[_0x33b2e2(0x13f)]+':'+((_0xf2c6ad===null||_0xf2c6ad===void 0x0?void 0x0:_0xf2c6ad[_0x33b2e2(0x139)])?_0xf2c6ad[_0x33b2e2(0x139)]+':':'')}},'memory':{'store':_0x33b2e2(0x147),'options':{'max':0x64,'ttl':0xed4e00}}}}};};
|
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_0x5578e9=a1_0x1d6d;function a1_0x2acf(){var _0x5d904b=['constructor','137949mJBtAt','__decorate','1380015aSWSJi','CustomConfiguration','function','decorate','toString','6KofYSv','24dlDArm','1131596GZzQhp','317374jxoJLE','(((.+)+)+)+$','apply','search','defineProperty','length','70328ednhtk','getOwnPropertyDescriptor','__esModule','668840AKFrSn','15682464ADDaNY'];a1_0x2acf=function(){return _0x5d904b;};return a1_0x2acf();}(function(_0x42d011,_0x418a7a){var _0x116689=a1_0x1d6d,_0x1d25fe=_0x42d011();while(!![]){try{var _0x2e537d=-parseInt(_0x116689(0x1be))/0x1+-parseInt(_0x116689(0x1c7))/0x2+parseInt(_0x116689(0x1bb))/0x3*(-parseInt(_0x116689(0x1bd))/0x4)+-parseInt(_0x116689(0x1cc))/0x5+parseInt(_0x116689(0x1bc))/0x6*(parseInt(_0x116689(0x1ca))/0x7)+-parseInt(_0x116689(0x1c4))/0x8+parseInt(_0x116689(0x1c8))/0x9;if(_0x2e537d===_0x418a7a)break;else _0x1d25fe['push'](_0x1d25fe['shift']());}catch(_0x2bc34a){_0x1d25fe['push'](_0x1d25fe['shift']());}}}(a1_0x2acf,0x4ddda));function a1_0x1d6d(_0x2d90a7,_0x5a434e){var _0x3483ab=a1_0x2acf();return a1_0x1d6d=function(_0xa7f9ad,_0x4c77f6){_0xa7f9ad=_0xa7f9ad-0x1b7;var _0x2acfba=_0x3483ab[_0xa7f9ad];return _0x2acfba;},a1_0x1d6d(_0x2d90a7,_0x5a434e);}var a1_0x4c77f6=(function(){var _0x4fd611=!![];return function(_0x239d80,_0x3ccb13){var _0x3d03b7=_0x4fd611?function(){var _0x58e97f=a1_0x1d6d;if(_0x3ccb13){var _0x3c3806=_0x3ccb13[_0x58e97f(0x1c0)](_0x239d80,arguments);return _0x3ccb13=null,_0x3c3806;}}:function(){};return _0x4fd611=![],_0x3d03b7;};}()),a1_0xa7f9ad=a1_0x4c77f6(this,function(){var _0x4ef766=a1_0x1d6d;return a1_0xa7f9ad[_0x4ef766(0x1ba)]()['search'](_0x4ef766(0x1bf))['toString']()[_0x4ef766(0x1c9)](a1_0xa7f9ad)[_0x4ef766(0x1c1)](_0x4ef766(0x1bf));});a1_0xa7f9ad();'use strict';var __decorate=this&&this[a1_0x5578e9(0x1cb)]||function(_0x3ba649,_0x31a05f,_0x1da378,_0x359685){var _0x28ed2e=a1_0x5578e9,_0x11ce23=arguments[_0x28ed2e(0x1c3)],_0x878841=_0x11ce23<0x3?_0x31a05f:_0x359685===null?_0x359685=Object[_0x28ed2e(0x1c5)](_0x31a05f,_0x1da378):_0x359685,_0x134038;if(typeof Reflect==='object'&&typeof Reflect[_0x28ed2e(0x1b9)]===_0x28ed2e(0x1b8))_0x878841=Reflect[_0x28ed2e(0x1b9)](_0x3ba649,_0x31a05f,_0x1da378,_0x359685);else{for(var _0x3bf0ba=_0x3ba649[_0x28ed2e(0x1c3)]-0x1;_0x3bf0ba>=0x0;_0x3bf0ba--)if(_0x134038=_0x3ba649[_0x3bf0ba])_0x878841=(_0x11ce23<0x3?_0x134038(_0x878841):_0x11ce23>0x3?_0x134038(_0x31a05f,_0x1da378,_0x878841):_0x134038(_0x31a05f,_0x1da378))||_0x878841;}return _0x11ce23>0x3&&_0x878841&&Object[_0x28ed2e(0x1c2)](_0x31a05f,_0x1da378,_0x878841),_0x878841;};Object[a1_0x5578e9(0x1c2)](exports,a1_0x5578e9(0x1c6),{'value':!![]}),exports[a1_0x5578e9(0x1b7)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5578e9(0x1b7)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Cache(key?: string, ttl?: number): MethodDecorator;
|
|
1
|
+
export declare function Cache(key?: string, ttl?: number): MethodDecorator;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2_0x1c735a=a2_0x2d65;(function(_0x51cfba,_0x4fd776){const _0x4135df=a2_0x2d65,_0x396ba1=_0x51cfba();while(!![]){try{const _0x3db915=parseInt(_0x4135df(0x132))/0x1+parseInt(_0x4135df(0x12c))/0x2+-parseInt(_0x4135df(0x12a))/0x3*(-parseInt(_0x4135df(0x13c))/0x4)+parseInt(_0x4135df(0x126))/0x5+parseInt(_0x4135df(0x138))/0x6+parseInt(_0x4135df(0x137))/0x7*(-parseInt(_0x4135df(0x12d))/0x8)+-parseInt(_0x4135df(0x125))/0x9;if(_0x3db915===_0x4fd776)break;else _0x396ba1['push'](_0x396ba1['shift']());}catch(_0x4df59e){_0x396ba1['push'](_0x396ba1['shift']());}}}(a2_0x4b54,0xa5021));const a2_0x56688c=(function(){let _0x2941ae=!![];return function(_0x179b74,_0x3fb221){const _0x69f0ad=_0x2941ae?function(){const _0x1586e1=a2_0x2d65;if(_0x3fb221){const _0x40a8d4=_0x3fb221[_0x1586e1(0x124)](_0x179b74,arguments);return _0x3fb221=null,_0x40a8d4;}}:function(){};return _0x2941ae=![],_0x69f0ad;};}()),a2_0x3bf202=a2_0x56688c(this,function(){const _0x12a6cd=a2_0x2d65;return a2_0x3bf202[_0x12a6cd(0x12e)]()[_0x12a6cd(0x13b)](_0x12a6cd(0x128))['toString']()['constructor'](a2_0x3bf202)['search']('(((.+)+)+)+$');});a2_0x3bf202();function a2_0x2d65(_0x19eba4,_0x542fc6){const _0xa21bee=a2_0x4b54();return a2_0x2d65=function(_0x3bf202,_0x56688c){_0x3bf202=_0x3bf202-0x123;let _0x4b5467=_0xa21bee[_0x3bf202];return _0x4b5467;},a2_0x2d65(_0x19eba4,_0x542fc6);}'use strict';Object[a2_0x1c735a(0x13a)](exports,a2_0x1c735a(0x129),{'value':!![]}),exports[a2_0x1c735a(0x136)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function Cache(_0x32e0cf,_0x3e4b0){return(_0x794f54,_0xa39656,_0x463397)=>{const _0x5ce679=a2_0x2d65,_0x2cc5c9=_0x463397[_0x5ce679(0x131)];return _0x463397[_0x5ce679(0x131)]=async function(..._0x2d0201){const _0x3825b8=_0x5ce679;!_0x32e0cf&&(_0x32e0cf=(0x0,crypto_js_1[_0x3825b8(0x134)])(JSON['stringify'](_0x2d0201))[_0x3825b8(0x12e)]());let _0x5db254=await this[core_1[_0x3825b8(0x12b)]][_0x3825b8(0x135)][_0x3825b8(0x139)]()[_0x3825b8(0x130)](CacheService_1[_0x3825b8(0x123)]),_0x18b0d9=await _0x5db254[_0x3825b8(0x133)](_0x3825b8(0x127))['get'](_0x32e0cf);if(_0x18b0d9)return JSON['parse'](_0x18b0d9);else _0x18b0d9=await _0x2cc5c9[_0x3825b8(0x124)](this,[..._0x2d0201]),await _0x5db254[_0x3825b8(0x133)](_0x3825b8(0x127))[_0x3825b8(0x12f)](_0x32e0cf,JSON['stringify'](_0x18b0d9),_0x3e4b0);return _0x18b0d9;},_0x463397;};}exports[a2_0x1c735a(0x136)]=Cache;function a2_0x4b54(){const _0xc780e4=['643091Romtel','use','MD5','app','Cache','225323zOZVYz','252786DxOfhK','getApplicationContext','defineProperty','search','874436fhrEiI','CacheService','apply','3626478ONyCwU','5044060coJLFg','Method::Decorator','(((.+)+)+)+$','__esModule','3GkwPKC','REQUEST_OBJ_CTX_KEY','392440UetwSd','256YPfdBV','toString','set','getAsync','value'];a2_0x4b54=function(){return _0xc780e4;};return a2_0x4b54();}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CustomConfiguration as Configuration } from './configuration';
|
|
2
|
-
export { Cache } from './decorator/Cache';
|
|
3
|
-
export { CacheService } from "./service/CacheService";
|
|
1
|
+
export { CustomConfiguration as Configuration } from './configuration';
|
|
2
|
+
export { Cache } from './decorator/Cache';
|
|
3
|
+
export { CacheService } from "./service/CacheService";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x463656=a3_0x9e23;function a3_0x9e23(_0x40e356,_0x1ae1e2){var _0x50ef17=a3_0x4e16();return a3_0x9e23=function(_0x5a4948,_0x477806){_0x5a4948=_0x5a4948-0x1df;var _0x4e1649=_0x50ef17[_0x5a4948];return _0x4e1649;},a3_0x9e23(_0x40e356,_0x1ae1e2);}(function(_0x4bd9cc,_0xf1e178){var _0x258adf=a3_0x9e23,_0x2744c2=_0x4bd9cc();while(!![]){try{var _0x1b627c=parseInt(_0x258adf(0x1e7))/0x1*(parseInt(_0x258adf(0x1ea))/0x2)+-parseInt(_0x258adf(0x1e9))/0x3+-parseInt(_0x258adf(0x1ed))/0x4+-parseInt(_0x258adf(0x1ee))/0x5+parseInt(_0x258adf(0x1e8))/0x6+parseInt(_0x258adf(0x1e5))/0x7*(-parseInt(_0x258adf(0x1ec))/0x8)+parseInt(_0x258adf(0x1e3))/0x9*(parseInt(_0x258adf(0x1eb))/0xa);if(_0x1b627c===_0xf1e178)break;else _0x2744c2['push'](_0x2744c2['shift']());}catch(_0xf41ad2){_0x2744c2['push'](_0x2744c2['shift']());}}}(a3_0x4e16,0xc6641));var a3_0x477806=(function(){var _0x44dde7=!![];return function(_0x27e609,_0xe73a66){var _0x4b732b=_0x44dde7?function(){if(_0xe73a66){var _0x5b0d9d=_0xe73a66['apply'](_0x27e609,arguments);return _0xe73a66=null,_0x5b0d9d;}}:function(){};return _0x44dde7=![],_0x4b732b;};}()),a3_0x5a4948=a3_0x477806(this,function(){var _0x317dfd=a3_0x9e23;return a3_0x5a4948[_0x317dfd(0x1f3)]()[_0x317dfd(0x1ef)]('(((.+)+)+)+$')[_0x317dfd(0x1f3)]()[_0x317dfd(0x1f4)](a3_0x5a4948)[_0x317dfd(0x1ef)](_0x317dfd(0x1e1));});a3_0x5a4948();'use strict';function a3_0x4e16(){var _0x1f1340=['Cache','toString','constructor','defineProperty','./decorator/Cache','(((.+)+)+)+$','Configuration','270VzReZE','./service/CacheService','366793KWcWqe','__esModule','1kFLCKt','3399270xaDdWQ','2025882dTsPxZ','514758HyMpRa','1204030slkhyV','248ZPpTHm','3178156cCDkjC','2646015CvmdyH','search','./configuration','CacheService'];a3_0x4e16=function(){return _0x1f1340;};return a3_0x4e16();}Object[a3_0x463656(0x1df)](exports,a3_0x463656(0x1e6),{'value':!![]}),exports[a3_0x463656(0x1f1)]=exports[a3_0x463656(0x1f2)]=exports[a3_0x463656(0x1e2)]=void 0x0;var configuration_1=require(a3_0x463656(0x1f0));Object[a3_0x463656(0x1df)](exports,a3_0x463656(0x1e2),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x463656(0x1e0));Object[a3_0x463656(0x1df)](exports,a3_0x463656(0x1f2),{'enumerable':!![],'get':function(){var _0x129f89=a3_0x463656;return Cache_1[_0x129f89(0x1f2)];}});var CacheService_1=require(a3_0x463656(0x1e4));Object[a3_0x463656(0x1df)](exports,a3_0x463656(0x1f1),{'enumerable':!![],'get':function(){var _0x59e2ca=a3_0x463656;return CacheService_1[_0x59e2ca(0x1f1)];}});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as cacheManager from 'cache-manager';
|
|
2
|
-
export declare class CacheService {
|
|
3
|
-
protected config: any;
|
|
4
|
-
protected cache: cacheManager.Cache;
|
|
5
|
-
protected clients: Map<string, Cache>;
|
|
6
|
-
use(registerCache: string): Cache;
|
|
7
|
-
reset(): Promise<any>;
|
|
8
|
-
}
|
|
9
|
-
export declare class Cache {
|
|
10
|
-
readonly prefix: string;
|
|
11
|
-
readonly cache: cacheManager.Cache;
|
|
12
|
-
constructor(prefix: string, cache: cacheManager.Cache);
|
|
13
|
-
del(key: string): Promise<any>;
|
|
14
|
-
set<T>(key: string, value: T, ttl?: number): Promise<T>;
|
|
15
|
-
get<T>(key: string, defaultval?: any): Promise<T>;
|
|
16
|
-
hdel(key: string, field: string): Promise<any>;
|
|
17
|
-
hset<T>(key: string, field: string, value: T, ttl?: number): Promise<T>;
|
|
18
|
-
hget<T>(key: string, field: string, defaultval?: any): Promise<T>;
|
|
19
|
-
}
|
|
1
|
+
import * as cacheManager from 'cache-manager';
|
|
2
|
+
export declare class CacheService {
|
|
3
|
+
protected config: any;
|
|
4
|
+
protected cache: cacheManager.Cache;
|
|
5
|
+
protected clients: Map<string, Cache>;
|
|
6
|
+
use(registerCache: string): Cache;
|
|
7
|
+
reset(): Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
export declare class Cache {
|
|
10
|
+
readonly prefix: string;
|
|
11
|
+
readonly cache: cacheManager.Cache;
|
|
12
|
+
constructor(prefix: string, cache: cacheManager.Cache);
|
|
13
|
+
del(key: string): Promise<any>;
|
|
14
|
+
set<T>(key: string, value: T, ttl?: number): Promise<T>;
|
|
15
|
+
get<T>(key: string, defaultval?: any): Promise<T>;
|
|
16
|
+
hdel(key: string, field: string): Promise<any>;
|
|
17
|
+
hset<T>(key: string, field: string, value: T, ttl?: number): Promise<T>;
|
|
18
|
+
hget<T>(key: string, field: string, defaultval?: any): Promise<T>;
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a4_0x3315bf=a4_0x2cd7;function a4_0x2cd7(_0x108edd,_0x1fedf5){var _0x35833f=a4_0x2711();return a4_0x2cd7=function(_0xd184dd,_0x5df340){_0xd184dd=_0xd184dd-0x1f1;var _0x27113b=_0x35833f[_0xd184dd];return _0x27113b;},a4_0x2cd7(_0x108edd,_0x1fedf5);}function a4_0x2711(){var _0x271c02=['prototype','56NcVaVF','ScopeEnum','caching','default','design:type','hset','__metadata','cache','CacheService','defineProperty','hget','Config','metadata','toString','apply','3wAVzNx','reset','del','Singleton','constructor','Cache','18phzcLY','use','file','Scope','length','get','318120nCfVhV','5306672WueOoJ','prefix','__decorate','clients','2972070kqogPw','1229734avpSOJ','4092152SSllSL','(((.+)+)+)+$','cache-manager','hdel','config','function','getOwnPropertyDescriptor','756654upJvev','stores','options','@midwayjs/core','set','2049856tFyykN'];a4_0x2711=function(){return _0x271c02;};return a4_0x2711();}(function(_0x3088e5,_0x5c795b){var _0x46db79=a4_0x2cd7,_0x2df14e=_0x3088e5();while(!![]){try{var _0x19a2d0=-parseInt(_0x46db79(0x21e))/0x1+parseInt(_0x46db79(0x1fb))/0x2*(parseInt(_0x46db79(0x20c))/0x3)+parseInt(_0x46db79(0x219))/0x4+-parseInt(_0x46db79(0x218))/0x5+parseInt(_0x46db79(0x1f6))/0x6*(-parseInt(_0x46db79(0x1fd))/0x7)+-parseInt(_0x46db79(0x21f))/0x8*(-parseInt(_0x46db79(0x212))/0x9)+-parseInt(_0x46db79(0x21d))/0xa;if(_0x19a2d0===_0x5c795b)break;else _0x2df14e['push'](_0x2df14e['shift']());}catch(_0x3aedcf){_0x2df14e['push'](_0x2df14e['shift']());}}}(a4_0x2711,0xbd41d));var a4_0x5df340=(function(){var _0x497ec8=!![];return function(_0x311618,_0x313a74){var _0x439e4e=_0x497ec8?function(){var _0x5736a1=a4_0x2cd7;if(_0x313a74){var _0x162161=_0x313a74[_0x5736a1(0x20b)](_0x311618,arguments);return _0x313a74=null,_0x162161;}}:function(){};return _0x497ec8=![],_0x439e4e;};}()),a4_0xd184dd=a4_0x5df340(this,function(){var _0x1144a3=a4_0x2cd7;return a4_0xd184dd[_0x1144a3(0x20a)]()['search'](_0x1144a3(0x220))[_0x1144a3(0x20a)]()[_0x1144a3(0x210)](a4_0xd184dd)['search'](_0x1144a3(0x220));});a4_0xd184dd();'use strict';var __decorate=this&&this[a4_0x3315bf(0x21b)]||function(_0x4ed60c,_0x1a4699,_0x1d8b82,_0x1b87dc){var _0x2ddd9e=a4_0x3315bf,_0x260bb1=arguments[_0x2ddd9e(0x216)],_0x50312b=_0x260bb1<0x3?_0x1a4699:_0x1b87dc===null?_0x1b87dc=Object[_0x2ddd9e(0x1f5)](_0x1a4699,_0x1d8b82):_0x1b87dc,_0x3f4095;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x2ddd9e(0x1f4))_0x50312b=Reflect['decorate'](_0x4ed60c,_0x1a4699,_0x1d8b82,_0x1b87dc);else{for(var _0x40290e=_0x4ed60c['length']-0x1;_0x40290e>=0x0;_0x40290e--)if(_0x3f4095=_0x4ed60c[_0x40290e])_0x50312b=(_0x260bb1<0x3?_0x3f4095(_0x50312b):_0x260bb1>0x3?_0x3f4095(_0x1a4699,_0x1d8b82,_0x50312b):_0x3f4095(_0x1a4699,_0x1d8b82))||_0x50312b;}return _0x260bb1>0x3&&_0x50312b&&Object[_0x2ddd9e(0x206)](_0x1a4699,_0x1d8b82,_0x50312b),_0x50312b;},__metadata=this&&this[a4_0x3315bf(0x203)]||function(_0x494d3c,_0x45b4cb){var _0x533073=a4_0x3315bf;if(typeof Reflect==='object'&&typeof Reflect[_0x533073(0x209)]===_0x533073(0x1f4))return Reflect[_0x533073(0x209)](_0x494d3c,_0x45b4cb);};Object[a4_0x3315bf(0x206)](exports,'__esModule',{'value':!![]}),exports['Cache']=exports[a4_0x3315bf(0x205)]=void 0x0;const cacheManager=require(a4_0x3315bf(0x1f1)),core_1=require(a4_0x3315bf(0x1f9));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x3315bf(0x213)](_0x5b53c1){var _0x225e95=a4_0x3315bf,_0x343c06,_0x432136;if(!this['cache']){const _0x8c61fc=((_0x343c06=this['config'][_0x225e95(0x1f7)])===null||_0x343c06===void 0x0?void 0x0:_0x343c06[(_0x432136=this[_0x225e95(0x1f3)])===null||_0x432136===void 0x0?void 0x0:_0x432136[_0x225e95(0x200)]])||this[_0x225e95(0x1f3)]['stores'][_0x225e95(0x214)];this[_0x225e95(0x204)]=cacheManager[_0x225e95(0x1ff)]({..._0x8c61fc[_0x225e95(0x1f8)],'store':_0x8c61fc['store']});}return!this[_0x225e95(0x21c)]['has'](_0x5b53c1)&&this[_0x225e95(0x21c)][_0x225e95(0x1fa)](_0x5b53c1,new Cache(_0x5b53c1,this['cache'])),this['clients'][_0x225e95(0x217)](_0x5b53c1);}async[a4_0x3315bf(0x20d)](){var _0x4bb768=a4_0x3315bf;return await this[_0x4bb768(0x204)][_0x4bb768(0x20d)]();}};__decorate([(0x0,core_1[a4_0x3315bf(0x208)])(a4_0x3315bf(0x204)),__metadata(a4_0x3315bf(0x201),Object)],CacheService[a4_0x3315bf(0x1fc)],a4_0x3315bf(0x1f3),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x3315bf(0x215)])(core_1[a4_0x3315bf(0x1fe)][a4_0x3315bf(0x20f)])],CacheService),exports[a4_0x3315bf(0x205)]=CacheService;class Cache{constructor(_0x1a7734,_0x1df26c){var _0x449b71=a4_0x3315bf;this[_0x449b71(0x204)]=_0x1df26c,this[_0x449b71(0x21a)]=_0x1a7734;}async[a4_0x3315bf(0x20e)](_0x26c16e){var _0x3b2e8b=a4_0x3315bf;return await this[_0x3b2e8b(0x204)][_0x3b2e8b(0x20e)](this['prefix']+':'+_0x26c16e);}async[a4_0x3315bf(0x1fa)](_0x785b4c,_0x283543,_0x59d55f){var _0xf2eb03=a4_0x3315bf;return await this['cache']['set'](this[_0xf2eb03(0x21a)]+':'+_0x785b4c,_0x283543,_0x59d55f);}async[a4_0x3315bf(0x217)](_0x22ebc2,_0x5e3e54){return new Promise((_0x4a2cfc,_0x4d1c5a)=>{var _0x2ebc76=a4_0x2cd7;this[_0x2ebc76(0x204)][_0x2ebc76(0x217)](this['prefix']+':'+_0x22ebc2,(_0x5a6a42,_0x1dddb0)=>{_0x5a6a42?_0x4d1c5a(_0x5a6a42):_0x4a2cfc(_0x1dddb0||_0x5e3e54);});});}async[a4_0x3315bf(0x1f2)](_0x102d21,_0xc6b3b5){var _0x537429=a4_0x3315bf;return await this[_0x537429(0x20e)](_0x102d21+'#'+_0xc6b3b5);}async[a4_0x3315bf(0x202)](_0x223dcb,_0x1a87ea,_0x364b7f,_0x75976c){var _0x2c3ae5=a4_0x3315bf;return await this[_0x2c3ae5(0x1fa)](_0x223dcb+'#'+_0x1a87ea,_0x364b7f,_0x75976c);}async[a4_0x3315bf(0x207)](_0x22453b,_0x57a034,_0x5e276d){var _0x209cd4=a4_0x3315bf;return await this[_0x209cd4(0x217)](_0x22453b+'#'+_0x57a034,_0x5e276d);}}exports[a4_0x3315bf(0x211)]=Cache;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.33",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "^4.0.2",
|
|
24
24
|
"typescript": "^5.1.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "6e3dc4cc04c16c5f54d726b20f373b159310d1dc"
|
|
27
27
|
}
|