@anncic-api/cache 3.3.10 → 3.3.12
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x317f62=a0_0x207b;(function(_0x175397,_0x136406){const _0x583822=a0_0x207b,_0x4ba138=_0x175397();while(!![]){try{const _0x2ef14d=-parseInt(_0x583822(0xfa))/0x1*(parseInt(_0x583822(0xfc))/0x2)+-parseInt(_0x583822(0xf2))/0x3*(-parseInt(_0x583822(0xf6))/0x4)+-parseInt(_0x583822(0x100))/0x5*(-parseInt(_0x583822(0xf8))/0x6)+parseInt(_0x583822(0xfd))/0x7+parseInt(_0x583822(0xea))/0x8+-parseInt(_0x583822(0xee))/0x9+-parseInt(_0x583822(0xed))/0xa;if(_0x2ef14d===_0x136406)break;else _0x4ba138['push'](_0x4ba138['shift']());}catch(_0x5cf3b6){_0x4ba138['push'](_0x4ba138['shift']());}}}(a0_0x7425,0xea7dc));function a0_0x207b(_0x1c8128,_0x50016e){const _0x1c372f=a0_0x7425();return a0_0x207b=function(_0x2b0340,_0xd1b3e5){_0x2b0340=_0x2b0340-0xea;let _0x74250a=_0x1c372f[_0x2b0340];return _0x74250a;},a0_0x207b(_0x1c8128,_0x50016e);}const a0_0xd1b3e5=(function(){let _0x3220d6=!![];return function(_0x50c015,_0x4179ef){const _0x5227d1=_0x3220d6?function(){const _0x2c9587=a0_0x207b;if(_0x4179ef){const _0x21cba5=_0x4179ef[_0x2c9587(0xff)](_0x50c015,arguments);return _0x4179ef=null,_0x21cba5;}}:function(){};return _0x3220d6=![],_0x5227d1;};}()),a0_0x2b0340=a0_0xd1b3e5(this,function(){const _0x3a0068=a0_0x207b;return a0_0x2b0340[_0x3a0068(0xf0)]()[_0x3a0068(0xf5)](_0x3a0068(0xec))[_0x3a0068(0xf0)]()['constructor'](a0_0x2b0340)[_0x3a0068(0xf5)](_0x3a0068(0xec));});a0_0x2b0340();'use strict';function a0_0x7425(){const _0x4bdf4c=['18910680rrJqRP','8026641hubUzU','default','toString','defineProperty','1917lCDWiT','env','cache-manager-ioredis','search','11668zbxkwM','__esModule','36QSjZlh','/runtime/.cache','488nQFOWh','file','5806jeqtig','10262168afzvnP','memory','apply','816715Tjkiab','6800096hxjWpw','appDir','(((.+)+)+)+$'];a0_0x7425=function(){return _0x4bdf4c;};return a0_0x7425();}Object[a0_0x317f62(0xf1)](exports,a0_0x317f62(0xf7),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x317f62(0xf4));exports[a0_0x317f62(0xef)]=_0x576889=>{const _0x39f7b8=a0_0x317f62;return{'cache':{'default':_0x39f7b8(0xfb),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x576889[_0x39f7b8(0xeb)]+_0x39f7b8(0xf9)+((_0x576889===null||_0x576889===void 0x0?void 0x0:_0x576889[_0x39f7b8(0xf3)])?'-'+_0x576889[_0x39f7b8(0xf3)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0xed4e00,'keyPrefix':_0x576889['name']+':'+((_0x576889===null||_0x576889===void 0x0?void 0x0:_0x576889[_0x39f7b8(0xf3)])?_0x576889[_0x39f7b8(0xf3)]+':':'')}},'memory':{'store':_0x39f7b8(0xfe),'options':{'max':0x64,'ttl':0xed4e00}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x37d694=a1_0x3825;(function(_0xd1ae09,_0x101b9e){var _0x3ec276=a1_0x3825,_0x4d0ce6=_0xd1ae09();while(!![]){try{var _0xbac19f=parseInt(_0x3ec276(0x87))/0x1*(parseInt(_0x3ec276(0x77))/0x2)+parseInt(_0x3ec276(0x80))/0x3*(parseInt(_0x3ec276(0x73))/0x4)+parseInt(_0x3ec276(0x6e))/0x5+parseInt(_0x3ec276(0x84))/0x6*(parseInt(_0x3ec276(0x6f))/0x7)+parseInt(_0x3ec276(0x71))/0x8+parseInt(_0x3ec276(0x72))/0x9*(parseInt(_0x3ec276(0x74))/0xa)+-parseInt(_0x3ec276(0x85))/0xb;if(_0xbac19f===_0x101b9e)break;else _0x4d0ce6['push'](_0x4d0ce6['shift']());}catch(_0x43a016){_0x4d0ce6['push'](_0x4d0ce6['shift']());}}}(a1_0xe08e,0x87a4f));var a1_0x1d4a45=(function(){var _0x4cca6e=!![];return function(_0x3dad27,_0x91d91){var _0x9ca73d=_0x4cca6e?function(){var _0x4df3ac=a1_0x3825;if(_0x91d91){var _0x3498a2=_0x91d91[_0x4df3ac(0x81)](_0x3dad27,arguments);return _0x91d91=null,_0x3498a2;}}:function(){};return _0x4cca6e=![],_0x9ca73d;};}()),a1_0x2bc695=a1_0x1d4a45(this,function(){var _0x1a2ff1=a1_0x3825;return a1_0x2bc695['toString']()[_0x1a2ff1(0x7a)](_0x1a2ff1(0x76))[_0x1a2ff1(0x78)]()[_0x1a2ff1(0x79)](a1_0x2bc695)['search'](_0x1a2ff1(0x76));});a1_0x2bc695();'use strict';var __decorate=this&&this[a1_0x37d694(0x7c)]||function(_0x211aa1,_0x1b5395,_0x3493de,_0x6ea3de){var _0x38a94b=a1_0x37d694,_0x2f8f57=arguments['length'],_0x5a2c7e=_0x2f8f57<0x3?_0x1b5395:_0x6ea3de===null?_0x6ea3de=Object[_0x38a94b(0x83)](_0x1b5395,_0x3493de):_0x6ea3de,_0x1f9040;if(typeof Reflect==='object'&&typeof Reflect[_0x38a94b(0x70)]==='function')_0x5a2c7e=Reflect[_0x38a94b(0x70)](_0x211aa1,_0x1b5395,_0x3493de,_0x6ea3de);else{for(var _0x2e1083=_0x211aa1[_0x38a94b(0x86)]-0x1;_0x2e1083>=0x0;_0x2e1083--)if(_0x1f9040=_0x211aa1[_0x2e1083])_0x5a2c7e=(_0x2f8f57<0x3?_0x1f9040(_0x5a2c7e):_0x2f8f57>0x3?_0x1f9040(_0x1b5395,_0x3493de,_0x5a2c7e):_0x1f9040(_0x1b5395,_0x3493de))||_0x5a2c7e;}return _0x2f8f57>0x3&&_0x5a2c7e&&Object['defineProperty'](_0x1b5395,_0x3493de,_0x5a2c7e),_0x5a2c7e;};Object[a1_0x37d694(0x82)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x3825(_0xa3deca,_0x307c91){var _0x193bac=a1_0xe08e();return a1_0x3825=function(_0x2bc695,_0x1d4a45){_0x2bc695=_0x2bc695-0x6e;var _0xe08ed8=_0x193bac[_0x2bc695];return _0xe08ed8;},a1_0x3825(_0xa3deca,_0x307c91);}const core_1=require(a1_0x37d694(0x75)),ConfigDefault=require(a1_0x37d694(0x7b));let CustomConfiguration=class CustomConfiguration{};function a1_0xe08e(){var _0x4526a3=['CustomConfiguration','Configuration','anncic-api:cache','1293fZyeqS','apply','defineProperty','getOwnPropertyDescriptor','6siBLPc','29035039zWhbly','length','2SKvpLA','441175FWMyOO','6417131NbbnLp','decorate','7310720JgtEVW','92673XCmnjM','4684IBTYwx','350gqHMWT','@midwayjs/core','(((.+)+)+)+$','411244pMTELP','toString','constructor','search','./config/config.default','__decorate'];a1_0xe08e=function(){return _0x4526a3;};return a1_0xe08e();}exports[a1_0x37d694(0x7d)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x37d694(0x7e)])({'conflictCheck':![],'namespace':a1_0x37d694(0x7f),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x1d01de=a2_0x2b4b;(function(_0x36d256,_0x57af79){const _0x53cb8c=a2_0x2b4b,_0x3f9a97=_0x36d256();while(!![]){try{const _0x953cf4=parseInt(_0x53cb8c(0x10f))/0x1*(-parseInt(_0x53cb8c(0x116))/0x2)+-parseInt(_0x53cb8c(0x125))/0x3+-parseInt(_0x53cb8c(0x11b))/0x4*(parseInt(_0x53cb8c(0x111))/0x5)+-parseInt(_0x53cb8c(0x10a))/0x6*(parseInt(_0x53cb8c(0x112))/0x7)+-parseInt(_0x53cb8c(0x10c))/0x8+-parseInt(_0x53cb8c(0x121))/0x9*(-parseInt(_0x53cb8c(0x122))/0xa)+-parseInt(_0x53cb8c(0x120))/0xb*(-parseInt(_0x53cb8c(0x11f))/0xc);if(_0x953cf4===_0x57af79)break;else _0x3f9a97['push'](_0x3f9a97['shift']());}catch(_0x49d652){_0x3f9a97['push'](_0x3f9a97['shift']());}}}(a2_0x5496,0xc1758));const a2_0x1af999=(function(){let _0x47d872=!![];return function(_0x2f78f8,_0x491690){const _0x5ae669=_0x47d872?function(){const _0x5f1a80=a2_0x2b4b;if(_0x491690){const _0x1c272a=_0x491690[_0x5f1a80(0x109)](_0x2f78f8,arguments);return _0x491690=null,_0x1c272a;}}:function(){};return _0x47d872=![],_0x5ae669;};}()),a2_0x1af0bf=a2_0x1af999(this,function(){const _0x343295=a2_0x2b4b;return a2_0x1af0bf[_0x343295(0x10b)]()[_0x343295(0x10d)](_0x343295(0x10e))[_0x343295(0x10b)]()[_0x343295(0x11e)](a2_0x1af0bf)[_0x343295(0x10d)](_0x343295(0x10e));});function a2_0x5496(){const _0x3d8ec6=['3976MvBWrp','../service/CacheService','stringify','set','544780fBmRfv','getAsync','get','CacheService','Cache','8anIaFj','app','Method::Decorator','constructor','168xDVobs','2069177CrhJTB','93681clflGc','1370ACkqJQ','REQUEST_OBJ_CTX_KEY','use','1954119hdkFnN','@midwayjs/core','value','apply','576qQCviP','toString','11600928LZyOkx','search','(((.+)+)+)+$','2pJCiNm','parse','1415815ZKZXiz'];a2_0x5496=function(){return _0x3d8ec6;};return a2_0x5496();}function a2_0x2b4b(_0x33285e,_0x3fd265){const _0x2663a8=a2_0x5496();return a2_0x2b4b=function(_0x1af0bf,_0x1af999){_0x1af0bf=_0x1af0bf-0x107;let _0x549698=_0x2663a8[_0x1af0bf];return _0x549698;},a2_0x2b4b(_0x33285e,_0x3fd265);}a2_0x1af0bf();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x1d01de(0x11a)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x1d01de(0x113)),core_1=require(a2_0x1d01de(0x107));function Cache(_0x19c89d,_0x5abb8b){return(_0x51c753,_0x801fa1,_0x3632c4)=>{const _0x3bc7dd=a2_0x2b4b,_0x5883f8=_0x3632c4['value'];return _0x3632c4[_0x3bc7dd(0x108)]=async function(..._0x110a42){const _0x1c2c23=_0x3bc7dd;!_0x19c89d&&(_0x19c89d=(0x0,crypto_js_1['MD5'])(JSON[_0x1c2c23(0x114)](_0x110a42))[_0x1c2c23(0x10b)]());let _0x103322=await this[core_1[_0x1c2c23(0x123)]][_0x1c2c23(0x11c)]['getApplicationContext']()[_0x1c2c23(0x117)](CacheService_1[_0x1c2c23(0x119)]),_0x3d3310=await(await _0x103322['use'](_0x1c2c23(0x11d)))[_0x1c2c23(0x118)](_0x19c89d);if(_0x3d3310)return JSON[_0x1c2c23(0x110)](_0x3d3310);else _0x3d3310=await _0x5883f8[_0x1c2c23(0x109)](this,[..._0x110a42]),await(await _0x103322[_0x1c2c23(0x124)](_0x1c2c23(0x11d)))[_0x1c2c23(0x115)](_0x19c89d,JSON['stringify'](_0x3d3310),_0x5abb8b);return _0x3d3310;},_0x3632c4;};}exports[a2_0x1d01de(0x11a)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0xab36c1=a3_0xec12;(function(_0x5d3ed7,_0x104010){var _0x462813=a3_0xec12,_0xda0e36=_0x5d3ed7();while(!![]){try{var _0xecaed3=parseInt(_0x462813(0x19c))/0x1+parseInt(_0x462813(0x190))/0x2*(parseInt(_0x462813(0x18b))/0x3)+parseInt(_0x462813(0x197))/0x4*(parseInt(_0x462813(0x18d))/0x5)+parseInt(_0x462813(0x18f))/0x6+parseInt(_0x462813(0x1a0))/0x7+-parseInt(_0x462813(0x199))/0x8+parseInt(_0x462813(0x195))/0x9*(-parseInt(_0x462813(0x18e))/0xa);if(_0xecaed3===_0x104010)break;else _0xda0e36['push'](_0xda0e36['shift']());}catch(_0x2e05f3){_0xda0e36['push'](_0xda0e36['shift']());}}}(a3_0x3c7a,0x36bb7));var a3_0x239e88=(function(){var _0x359bdd=!![];return function(_0x1a3eab,_0x181af9){var _0x2400f9=_0x359bdd?function(){var _0x50ab5d=a3_0xec12;if(_0x181af9){var _0x225f83=_0x181af9[_0x50ab5d(0x18c)](_0x1a3eab,arguments);return _0x181af9=null,_0x225f83;}}:function(){};return _0x359bdd=![],_0x2400f9;};}()),a3_0x35f341=a3_0x239e88(this,function(){var _0x1e87f5=a3_0xec12;return a3_0x35f341['toString']()['search'](_0x1e87f5(0x19a))[_0x1e87f5(0x19f)]()[_0x1e87f5(0x193)](a3_0x35f341)[_0x1e87f5(0x194)](_0x1e87f5(0x19a));});a3_0x35f341();'use strict';function a3_0xec12(_0x21dfc5,_0x15653){var _0x56334b=a3_0x3c7a();return a3_0xec12=function(_0x35f341,_0x239e88){_0x35f341=_0x35f341-0x18a;var _0x3c7a32=_0x56334b[_0x35f341];return _0x3c7a32;},a3_0xec12(_0x21dfc5,_0x15653);}Object[a3_0xab36c1(0x196)](exports,a3_0xab36c1(0x19b),{'value':!![]}),exports[a3_0xab36c1(0x18a)]=exports[a3_0xab36c1(0x191)]=exports[a3_0xab36c1(0x19d)]=void 0x0;var configuration_1=require('./configuration');function a3_0x3c7a(){var _0x14ca9a=['Cache','./service/CacheService','constructor','search','96615vbOhHS','defineProperty','124gXaKRA','./decorator/Cache','1626040uBimFP','(((.+)+)+)+$','__esModule','318243KblRTP','Configuration','CustomConfiguration','toString','3091207yNFhrz','CacheService','3039JtWtFd','apply','59425sndPzf','940wIEFyq','1417956XFOpPi','142njKewo'];a3_0x3c7a=function(){return _0x14ca9a;};return a3_0x3c7a();}Object[a3_0xab36c1(0x196)](exports,a3_0xab36c1(0x19d),{'enumerable':!![],'get':function(){var _0x433226=a3_0xab36c1;return configuration_1[_0x433226(0x19e)];}});var Cache_1=require(a3_0xab36c1(0x198));Object['defineProperty'](exports,a3_0xab36c1(0x191),{'enumerable':!![],'get':function(){var _0x35ba44=a3_0xab36c1;return Cache_1[_0x35ba44(0x191)];}});var CacheService_1=require(a3_0xab36c1(0x192));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x13d23e=a3_0xab36c1;return CacheService_1[_0x13d23e(0x18a)];}});
|
|
@@ -3,17 +3,17 @@ export declare class CacheService {
|
|
|
3
3
|
protected config: any;
|
|
4
4
|
protected cache: cacheManager.Cache;
|
|
5
5
|
protected clients: Map<string, CacheHandler>;
|
|
6
|
-
use(registerCache: string):
|
|
7
|
-
reset(): Promise<
|
|
6
|
+
use(registerCache: string): CacheHandler;
|
|
7
|
+
reset(): Promise<any>;
|
|
8
8
|
}
|
|
9
9
|
declare class CacheHandler {
|
|
10
10
|
readonly prefix: string;
|
|
11
11
|
readonly cache: cacheManager.Cache;
|
|
12
12
|
constructor(prefix: string, cache: cacheManager.Cache);
|
|
13
|
-
del(key: string): Promise<
|
|
13
|
+
del(key: string): Promise<any>;
|
|
14
14
|
set<T>(key: string, value: T, ttl?: number): Promise<void>;
|
|
15
15
|
get<T>(key: string, defaultval?: any): Promise<T>;
|
|
16
|
-
hdel(key: string, field: string): Promise<
|
|
16
|
+
hdel(key: string, field: string): Promise<any>;
|
|
17
17
|
hset<T>(key: string, field: string, value: T, ttl?: number): Promise<void>;
|
|
18
18
|
hget<T>(key: string, field: string, defaultval?: any): Promise<T>;
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a4_0x5b890c=a4_0x32bf;(function(_0x18ed81,_0x396073){var _0x5b42a5=a4_0x32bf,_0x375e6d=_0x18ed81();while(!![]){try{var _0x283faa=-parseInt(_0x5b42a5(0xf4))/0x1*(parseInt(_0x5b42a5(0xdb))/0x2)+-parseInt(_0x5b42a5(0xe2))/0x3+parseInt(_0x5b42a5(0xfa))/0x4*(parseInt(_0x5b42a5(0xfe))/0x5)+-parseInt(_0x5b42a5(0xe7))/0x6+parseInt(_0x5b42a5(0xeb))/0x7*(-parseInt(_0x5b42a5(0xe5))/0x8)+-parseInt(_0x5b42a5(0xf3))/0x9+parseInt(_0x5b42a5(0xed))/0xa;if(_0x283faa===_0x396073)break;else _0x375e6d['push'](_0x375e6d['shift']());}catch(_0x15357f){_0x375e6d['push'](_0x375e6d['shift']());}}}(a4_0x6d5e,0x4b59c));var a4_0x2cc5ee=(function(){var _0x40c624=!![];return function(_0x423db0,_0x492d2a){var _0x2bcbaa=_0x40c624?function(){var _0x3a1e85=a4_0x32bf;if(_0x492d2a){var _0xeb0b65=_0x492d2a[_0x3a1e85(0xe3)](_0x423db0,arguments);return _0x492d2a=null,_0xeb0b65;}}:function(){};return _0x40c624=![],_0x2bcbaa;};}()),a4_0x4399d3=a4_0x2cc5ee(this,function(){var _0x142a17=a4_0x32bf;return a4_0x4399d3[_0x142a17(0xf0)]()[_0x142a17(0xfd)]('(((.+)+)+)+$')[_0x142a17(0xf0)]()['constructor'](a4_0x4399d3)[_0x142a17(0xfd)]('(((.+)+)+)+$');});a4_0x4399d3();'use strict';var __decorate=this&&this['__decorate']||function(_0x5652e1,_0x8ed4a7,_0x838413,_0x2f6035){var _0x18f7a3=a4_0x32bf,_0x2e461c=arguments[_0x18f7a3(0x100)],_0x472f18=_0x2e461c<0x3?_0x8ed4a7:_0x2f6035===null?_0x2f6035=Object[_0x18f7a3(0xe0)](_0x8ed4a7,_0x838413):_0x2f6035,_0x5536d6;if(typeof Reflect===_0x18f7a3(0xfb)&&typeof Reflect['decorate']===_0x18f7a3(0xe4))_0x472f18=Reflect[_0x18f7a3(0xf7)](_0x5652e1,_0x8ed4a7,_0x838413,_0x2f6035);else{for(var _0x4f514b=_0x5652e1[_0x18f7a3(0x100)]-0x1;_0x4f514b>=0x0;_0x4f514b--)if(_0x5536d6=_0x5652e1[_0x4f514b])_0x472f18=(_0x2e461c<0x3?_0x5536d6(_0x472f18):_0x2e461c>0x3?_0x5536d6(_0x8ed4a7,_0x838413,_0x472f18):_0x5536d6(_0x8ed4a7,_0x838413))||_0x472f18;}return _0x2e461c>0x3&&_0x472f18&&Object[_0x18f7a3(0xee)](_0x8ed4a7,_0x838413,_0x472f18),_0x472f18;},__metadata=this&&this[a4_0x5b890c(0xe1)]||function(_0x3a0e65,_0x3ee4df){var _0x5003b1=a4_0x5b890c;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x5003b1(0xe4))return Reflect[_0x5003b1(0xf8)](_0x3a0e65,_0x3ee4df);};Object[a4_0x5b890c(0xee)](exports,'__esModule',{'value':!![]}),exports[a4_0x5b890c(0xf1)]=void 0x0;function a4_0x32bf(_0x48cde1,_0x3a5d16){var _0x190ec8=a4_0x6d5e();return a4_0x32bf=function(_0x4399d3,_0x2cc5ee){_0x4399d3=_0x4399d3-0xd9;var _0x6d5edf=_0x190ec8[_0x4399d3];return _0x6d5edf;},a4_0x32bf(_0x48cde1,_0x3a5d16);}const cacheManager=require('cache-manager'),core_1=require(a4_0x5b890c(0xdf));let CacheService=class CacheService{constructor(){var _0x35f424=a4_0x5b890c;this['cache']=undefined,this[_0x35f424(0xd9)]=new Map();}[a4_0x5b890c(0x102)](_0x1736e0){var _0x58523f=a4_0x5b890c,_0x149e97,_0x307870;if(!this['cache']){const _0x4957bc=((_0x149e97=this['config'][_0x58523f(0xda)])===null||_0x149e97===void 0x0?void 0x0:_0x149e97[(_0x307870=this[_0x58523f(0xf2)])===null||_0x307870===void 0x0?void 0x0:_0x307870['default']])||this['config'][_0x58523f(0xda)][_0x58523f(0x103)];this['cache']=cacheManager[_0x58523f(0xff)]({..._0x4957bc[_0x58523f(0xef)],'store':_0x4957bc[_0x58523f(0xe9)]});}return!this[_0x58523f(0xd9)][_0x58523f(0xde)](_0x1736e0)&&this['clients'][_0x58523f(0xec)](_0x1736e0,new CacheHandler(_0x1736e0,this[_0x58523f(0xe6)])),this[_0x58523f(0xd9)][_0x58523f(0xea)](_0x1736e0);}async[a4_0x5b890c(0xf5)](){var _0x338e81=a4_0x5b890c;return await this['cache'][_0x338e81(0xf5)]();}};exports[a4_0x5b890c(0xf1)]=CacheService,__decorate([(0x0,core_1[a4_0x5b890c(0x101)])(a4_0x5b890c(0xe6)),__metadata(a4_0x5b890c(0xe8),Object)],CacheService[a4_0x5b890c(0xdd)],a4_0x5b890c(0xf2),void 0x0),exports[a4_0x5b890c(0xf1)]=CacheService=__decorate([(0x0,core_1[a4_0x5b890c(0xf6)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a4_0x5b890c(0xfc)])],CacheService);class CacheHandler{constructor(_0x13c69e,_0x5b3b){var _0x237b33=a4_0x5b890c;this[_0x237b33(0xe6)]=_0x5b3b,this[_0x237b33(0xdc)]=_0x13c69e;}async['del'](_0x3ae19b){var _0x6024b4=a4_0x5b890c;return await this['cache'][_0x6024b4(0xf9)](this[_0x6024b4(0xdc)]+':'+_0x3ae19b);}async[a4_0x5b890c(0xec)](_0x5454bb,_0x247a10,_0x45cfca){var _0x236b2d=a4_0x5b890c;return await this[_0x236b2d(0xe6)][_0x236b2d(0xec)](this['prefix']+':'+_0x5454bb,_0x247a10,_0x45cfca);}async[a4_0x5b890c(0xea)](_0x497da1,_0x17ecfd){var _0x52d176=a4_0x5b890c;return this[_0x52d176(0xe6)][_0x52d176(0xea)](this[_0x52d176(0xdc)]+':'+_0x497da1)||_0x17ecfd;}async['hdel'](_0x5be70c,_0x4e18c1){var _0xa0a98d=a4_0x5b890c;return await this[_0xa0a98d(0xf9)](_0x5be70c+'#'+_0x4e18c1);}async['hset'](_0x49107d,_0x17f5cf,_0x17b80d,_0x2b23aa){return await this['set'](_0x49107d+'#'+_0x17f5cf,_0x17b80d,_0x2b23aa);}async['hget'](_0x235bb8,_0x418e3b,_0x2a8651){return await this['get'](_0x235bb8+'#'+_0x418e3b,_0x2a8651);}}function a4_0x6d5e(){var _0x154dcf=['metadata','del','4NWIGND','object','Singleton','search','2158910plkSUU','caching','length','Config','use','file','clients','stores','117188tsjEuw','prefix','prototype','has','@midwayjs/core','getOwnPropertyDescriptor','__metadata','1441740nhvIpF','apply','function','976ztoFME','cache','1865538smxwyt','design:type','store','get','2114GgwNVY','set','11387720wDrEbB','defineProperty','options','toString','CacheService','config','3374793bTCtkw','1yRJcdC','reset','Provide','decorate'];a4_0x6d5e=function(){return _0x154dcf;};return a4_0x6d5e();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.12",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"cache-manager": "^
|
|
17
|
+
"cache-manager": "^3.6.3",
|
|
18
18
|
"cache-manager-fs-hash": "^1.0.0",
|
|
19
19
|
"cache-manager-ioredis": "^2.1.0"
|
|
20
20
|
},
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "^4.0.2",
|
|
24
24
|
"typescript": "^5.1.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a636d460c17fffe9b70c2063161da2505b5f1493"
|
|
27
27
|
}
|