@anncic-api/cache 3.4.15 → 3.4.17
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
|
+
function a0_0x2b20(){const _0x513434=['/runtime/.cache','29994qSrUSw','file','apply','3365817jvwFLM','env','115oHmmWP','search','3473265TirTss','3805528mnhDzl','memory','127.0.0.1','1021262HgKLPq','toString','(((.+)+)+)+$','appDir','3607548yCcAcn','default','9HmzvfP','constructor','837300rzORUH'];a0_0x2b20=function(){return _0x513434;};return a0_0x2b20();}const a0_0xd737b5=a0_0x4228;(function(_0x3688cf,_0x5c4ac5){const _0x8c7576=a0_0x4228,_0x1e100e=_0x3688cf();while(!![]){try{const _0x2bcab7=-parseInt(_0x8c7576(0x16a))/0x1+-parseInt(_0x8c7576(0x15d))/0x2+parseInt(_0x8c7576(0x166))/0x3+parseInt(_0x8c7576(0x16e))/0x4+parseInt(_0x8c7576(0x164))/0x5*(parseInt(_0x8c7576(0x15f))/0x6)+-parseInt(_0x8c7576(0x162))/0x7+parseInt(_0x8c7576(0x167))/0x8*(parseInt(_0x8c7576(0x15b))/0x9);if(_0x2bcab7===_0x5c4ac5)break;else _0x1e100e['push'](_0x1e100e['shift']());}catch(_0x5fc8a8){_0x1e100e['push'](_0x1e100e['shift']());}}}(a0_0x2b20,0xb21df));const a0_0x437131=(function(){let _0x127a1f=!![];return function(_0x4a983e,_0x1e32a6){const _0x2b5a97=_0x127a1f?function(){const _0x358aea=a0_0x4228;if(_0x1e32a6){const _0x377d71=_0x1e32a6[_0x358aea(0x161)](_0x4a983e,arguments);return _0x1e32a6=null,_0x377d71;}}:function(){};return _0x127a1f=![],_0x2b5a97;};}()),a0_0x178bcf=a0_0x437131(this,function(){const _0x4ec8fb=a0_0x4228;return a0_0x178bcf[_0x4ec8fb(0x16b)]()[_0x4ec8fb(0x165)](_0x4ec8fb(0x16c))['toString']()[_0x4ec8fb(0x15c)](a0_0x178bcf)[_0x4ec8fb(0x165)](_0x4ec8fb(0x16c));});a0_0x178bcf();'use strict';function a0_0x4228(_0x1e3278,_0x155dc2){const _0x1dea1b=a0_0x2b20();return a0_0x4228=function(_0x178bcf,_0x437131){_0x178bcf=_0x178bcf-0x15a;let _0x2b20a6=_0x1dea1b[_0x178bcf];return _0x2b20a6;},a0_0x4228(_0x1e3278,_0x155dc2);}Object['defineProperty'](exports,'__esModule',{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require('cache-manager-ioredis');exports[a0_0xd737b5(0x15a)]=_0x851fd0=>{const _0x4ce63b=a0_0xd737b5;return{'cache':{'default':_0x4ce63b(0x160),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x851fd0[_0x4ce63b(0x16d)]+_0x4ce63b(0x15e)+((_0x851fd0===null||_0x851fd0===void 0x0?void 0x0:_0x851fd0[_0x4ce63b(0x163)])?'-'+_0x851fd0[_0x4ce63b(0x163)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x4ce63b(0x169),'password':'','ttl':0xed4e00,'keyPrefix':_0x851fd0['name']+':'+((_0x851fd0===null||_0x851fd0===void 0x0?void 0x0:_0x851fd0['env'])?_0x851fd0[_0x4ce63b(0x163)]+':':'')}},'memory':{'store':_0x4ce63b(0x168),'options':{'max':0x64,'ttl':0xed4e00}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x218c09=a1_0x47a9;(function(_0x5a3798,_0x4851b5){var _0x38b3d5=a1_0x47a9,_0x267fb5=_0x5a3798();while(!![]){try{var _0x4218fc=parseInt(_0x38b3d5(0x1c8))/0x1*(-parseInt(_0x38b3d5(0x1d2))/0x2)+-parseInt(_0x38b3d5(0x1c0))/0x3*(-parseInt(_0x38b3d5(0x1c1))/0x4)+parseInt(_0x38b3d5(0x1b9))/0x5*(parseInt(_0x38b3d5(0x1be))/0x6)+parseInt(_0x38b3d5(0x1d1))/0x7+-parseInt(_0x38b3d5(0x1ba))/0x8*(parseInt(_0x38b3d5(0x1cd))/0x9)+-parseInt(_0x38b3d5(0x1bf))/0xa+parseInt(_0x38b3d5(0x1bb))/0xb*(parseInt(_0x38b3d5(0x1ce))/0xc);if(_0x4218fc===_0x4851b5)break;else _0x267fb5['push'](_0x267fb5['shift']());}catch(_0x44e394){_0x267fb5['push'](_0x267fb5['shift']());}}}(a1_0x8731,0x34645));var a1_0x329b6e=(function(){var _0x51240d=!![];return function(_0x23d497,_0x1477f9){var _0x4263e6=_0x51240d?function(){if(_0x1477f9){var _0x46521a=_0x1477f9['apply'](_0x23d497,arguments);return _0x1477f9=null,_0x46521a;}}:function(){};return _0x51240d=![],_0x4263e6;};}()),a1_0x3fcccd=a1_0x329b6e(this,function(){var _0x18cd2b=a1_0x47a9;return a1_0x3fcccd[_0x18cd2b(0x1bd)]()['search'](_0x18cd2b(0x1b8))[_0x18cd2b(0x1bd)]()[_0x18cd2b(0x1cc)](a1_0x3fcccd)[_0x18cd2b(0x1ca)](_0x18cd2b(0x1b8));});a1_0x3fcccd();'use strict';function a1_0x8731(){var _0xe328f=['decorate','constructor','1469385tBcBlN','994584KyzPVy','__decorate','anncic-api:cache','1536815cSeOPV','53866wNvyfI','(((.+)+)+)+$','202505iHhDzG','8rfdhMJ','11JmhSlH','defineProperty','toString','30SZhCon','1659860CnFEou','3nZouQx','263396SaNLTs','function','./config/config.default','getOwnPropertyDescriptor','@midwayjs/core','length','object','1KhVCAH','CustomConfiguration','search'];a1_0x8731=function(){return _0xe328f;};return a1_0x8731();}var __decorate=this&&this[a1_0x218c09(0x1cf)]||function(_0xd41dbc,_0x1f1509,_0x2e02fd,_0x23b202){var _0x2931d9=a1_0x218c09,_0x59b6b1=arguments[_0x2931d9(0x1c6)],_0x5a1084=_0x59b6b1<0x3?_0x1f1509:_0x23b202===null?_0x23b202=Object[_0x2931d9(0x1c4)](_0x1f1509,_0x2e02fd):_0x23b202,_0x3232ee;if(typeof Reflect===_0x2931d9(0x1c7)&&typeof Reflect[_0x2931d9(0x1cb)]===_0x2931d9(0x1c2))_0x5a1084=Reflect['decorate'](_0xd41dbc,_0x1f1509,_0x2e02fd,_0x23b202);else{for(var _0x3240f5=_0xd41dbc[_0x2931d9(0x1c6)]-0x1;_0x3240f5>=0x0;_0x3240f5--)if(_0x3232ee=_0xd41dbc[_0x3240f5])_0x5a1084=(_0x59b6b1<0x3?_0x3232ee(_0x5a1084):_0x59b6b1>0x3?_0x3232ee(_0x1f1509,_0x2e02fd,_0x5a1084):_0x3232ee(_0x1f1509,_0x2e02fd))||_0x5a1084;}return _0x59b6b1>0x3&&_0x5a1084&&Object[_0x2931d9(0x1bc)](_0x1f1509,_0x2e02fd,_0x5a1084),_0x5a1084;};Object[a1_0x218c09(0x1bc)](exports,'__esModule',{'value':!![]}),exports[a1_0x218c09(0x1c9)]=void 0x0;const core_1=require(a1_0x218c09(0x1c5)),ConfigDefault=require(a1_0x218c09(0x1c3));let CustomConfiguration=class CustomConfiguration{};function a1_0x47a9(_0x450817,_0x49fd75){var _0x6a523d=a1_0x8731();return a1_0x47a9=function(_0x3fcccd,_0x329b6e){_0x3fcccd=_0x3fcccd-0x1b8;var _0x8731d0=_0x6a523d[_0x3fcccd];return _0x8731d0;},a1_0x47a9(_0x450817,_0x49fd75);}exports[a1_0x218c09(0x1c9)]=CustomConfiguration,exports[a1_0x218c09(0x1c9)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x218c09(0x1d0),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2_0x2281d5=a2_0x583c;function a2_0x583c(_0xe5d43e,_0x29e7d7){const _0x3e8f64=a2_0x36c0();return a2_0x583c=function(_0x4371b0,_0x10589b){_0x4371b0=_0x4371b0-0x1e8;let _0x36c006=_0x3e8f64[_0x4371b0];return _0x36c006;},a2_0x583c(_0xe5d43e,_0x29e7d7);}(function(_0x36f1b3,_0x8c2b58){const _0x4d0067=a2_0x583c,_0x126a48=_0x36f1b3();while(!![]){try{const _0x26c804=-parseInt(_0x4d0067(0x1fc))/0x1+parseInt(_0x4d0067(0x1e8))/0x2*(-parseInt(_0x4d0067(0x1ea))/0x3)+parseInt(_0x4d0067(0x1f6))/0x4*(parseInt(_0x4d0067(0x1f1))/0x5)+parseInt(_0x4d0067(0x1fe))/0x6+-parseInt(_0x4d0067(0x1ef))/0x7*(-parseInt(_0x4d0067(0x202))/0x8)+parseInt(_0x4d0067(0x1f2))/0x9*(parseInt(_0x4d0067(0x1ed))/0xa)+-parseInt(_0x4d0067(0x1fd))/0xb*(parseInt(_0x4d0067(0x206))/0xc);if(_0x26c804===_0x8c2b58)break;else _0x126a48['push'](_0x126a48['shift']());}catch(_0x265af1){_0x126a48['push'](_0x126a48['shift']());}}}(a2_0x36c0,0x59397));const a2_0x10589b=(function(){let _0x383971=!![];return function(_0x9a9c45,_0x58513a){const _0x307668=_0x383971?function(){const _0x2b174e=a2_0x583c;if(_0x58513a){const _0x3779c1=_0x58513a[_0x2b174e(0x204)](_0x9a9c45,arguments);return _0x58513a=null,_0x3779c1;}}:function(){};return _0x383971=![],_0x307668;};}()),a2_0x4371b0=a2_0x10589b(this,function(){const _0x48aa8e=a2_0x583c;return a2_0x4371b0['toString']()['search'](_0x48aa8e(0x1fa))[_0x48aa8e(0x208)]()[_0x48aa8e(0x20a)](a2_0x4371b0)[_0x48aa8e(0x201)]('(((.+)+)+)+$');});a2_0x4371b0();'use strict';Object[a2_0x2281d5(0x1f0)](exports,a2_0x2281d5(0x1f9),{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x2281d5(0x1f3)),CacheService_1=require(a2_0x2281d5(0x1ff)),core_1=require(a2_0x2281d5(0x1f7));function Cache(_0x4215c4,_0x4642bc){return(_0x50e015,_0x40ef81,_0x16c382)=>{const _0x32d789=a2_0x583c,_0xf85323=_0x16c382['value'];return _0x16c382[_0x32d789(0x1ee)]=async function(..._0x27c9db){const _0x3fb0bb=_0x32d789;!_0x4215c4&&(_0x4215c4=(0x0,crypto_js_1[_0x3fb0bb(0x1e9)])(JSON[_0x3fb0bb(0x1f5)](_0x27c9db))['toString']());let _0x3634da=await this[core_1[_0x3fb0bb(0x1f4)]][_0x3fb0bb(0x200)]['getApplicationContext']()[_0x3fb0bb(0x1ec)](CacheService_1[_0x3fb0bb(0x1fb)]),_0x83a8c1=await _0x3634da[_0x3fb0bb(0x1f8)](_0x3fb0bb(0x207))[_0x3fb0bb(0x209)](_0x4215c4);if(_0x83a8c1)return JSON[_0x3fb0bb(0x1eb)](_0x83a8c1);else _0x83a8c1=await _0xf85323[_0x3fb0bb(0x204)](this,[..._0x27c9db]),await _0x3634da[_0x3fb0bb(0x1f8)](_0x3fb0bb(0x207))[_0x3fb0bb(0x205)](_0x4215c4,JSON[_0x3fb0bb(0x1f5)](_0x83a8c1),_0x4642bc);return _0x83a8c1;},_0x16c382;};}exports[a2_0x2281d5(0x203)]=Cache;function a2_0x36c0(){const _0x2caee9=['parse','getAsync','10MDkgWF','value','245SOGAby','defineProperty','50yLleBc','6377031IxWPUg','crypto-js','REQUEST_OBJ_CTX_KEY','stringify','122884bMinhs','@midwayjs/core','use','__esModule','(((.+)+)+)+$','CacheService','37632YzeVAT','4323vpyNpG','1582440tgtTPR','../service/CacheService','app','search','27328ZTIiTv','Cache','apply','set','25128WbBKOt','Method::Decorator','toString','get','constructor','4Fnfnkc','MD5','259548EdDrsZ'];a2_0x36c0=function(){return _0x2caee9;};return a2_0x36c0();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x3bfafd=a3_0x5642;(function(_0x3eca21,_0xda8741){var _0x583b2e=a3_0x5642,_0x51c640=_0x3eca21();while(!![]){try{var _0xa3927d=-parseInt(_0x583b2e(0x8a))/0x1*(parseInt(_0x583b2e(0x86))/0x2)+-parseInt(_0x583b2e(0x8b))/0x3+parseInt(_0x583b2e(0x7f))/0x4+-parseInt(_0x583b2e(0x89))/0x5+parseInt(_0x583b2e(0x8c))/0x6*(-parseInt(_0x583b2e(0x90))/0x7)+-parseInt(_0x583b2e(0x88))/0x8*(parseInt(_0x583b2e(0x82))/0x9)+parseInt(_0x583b2e(0x8d))/0xa;if(_0xa3927d===_0xda8741)break;else _0x51c640['push'](_0x51c640['shift']());}catch(_0x184944){_0x51c640['push'](_0x51c640['shift']());}}}(a3_0x1321,0x351ed));var a3_0x4a0adb=(function(){var _0x4abd39=!![];return function(_0x333677,_0xcb36bd){var _0x4d213b=_0x4abd39?function(){if(_0xcb36bd){var _0x26c73f=_0xcb36bd['apply'](_0x333677,arguments);return _0xcb36bd=null,_0x26c73f;}}:function(){};return _0x4abd39=![],_0x4d213b;};}()),a3_0x550dcd=a3_0x4a0adb(this,function(){var _0x3b8d73=a3_0x5642;return a3_0x550dcd[_0x3b8d73(0x83)]()['search'](_0x3b8d73(0x85))[_0x3b8d73(0x83)]()['constructor'](a3_0x550dcd)['search'](_0x3b8d73(0x85));});a3_0x550dcd();'use strict';function a3_0x1321(){var _0x467a2f=['1820SROZaf','672930ajeErj','282apCrom','11891950yseQFs','defineProperty','Cache','42581xvMCSo','CacheService','./decorator/Cache','257664rZuqKM','./configuration','CustomConfiguration','7731LnsZlo','toString','__esModule','(((.+)+)+)+$','28TpLpId','Configuration','736VutoPt','2106555xuZcVQ'];a3_0x1321=function(){return _0x467a2f;};return a3_0x1321();}Object[a3_0x3bfafd(0x8e)](exports,a3_0x3bfafd(0x84),{'value':!![]}),exports['CacheService']=exports[a3_0x3bfafd(0x8f)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x3bfafd(0x80));Object['defineProperty'](exports,a3_0x3bfafd(0x87),{'enumerable':!![],'get':function(){var _0x45cab7=a3_0x3bfafd;return configuration_1[_0x45cab7(0x81)];}});var Cache_1=require(a3_0x3bfafd(0x92));function a3_0x5642(_0x25d931,_0x43ffc4){var _0x2c121e=a3_0x1321();return a3_0x5642=function(_0x550dcd,_0x4a0adb){_0x550dcd=_0x550dcd-0x7f;var _0x132107=_0x2c121e[_0x550dcd];return _0x132107;},a3_0x5642(_0x25d931,_0x43ffc4);}Object[a3_0x3bfafd(0x8e)](exports,a3_0x3bfafd(0x8f),{'enumerable':!![],'get':function(){var _0x13b23e=a3_0x3bfafd;return Cache_1[_0x13b23e(0x8f)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x3bfafd(0x8e)](exports,a3_0x3bfafd(0x91),{'enumerable':!![],'get':function(){var _0x1f3947=a3_0x3bfafd;return CacheService_1[_0x1f3947(0x91)];}});
|
|
@@ -2,11 +2,11 @@ import * as cacheManager from 'cache-manager';
|
|
|
2
2
|
export declare class CacheService {
|
|
3
3
|
protected config: any;
|
|
4
4
|
protected cache: cacheManager.Cache;
|
|
5
|
-
protected clients: Map<string,
|
|
6
|
-
use(registerCache: string):
|
|
5
|
+
protected clients: Map<string, Cache>;
|
|
6
|
+
use(registerCache: string): Cache;
|
|
7
7
|
reset(): Promise<any>;
|
|
8
8
|
}
|
|
9
|
-
declare class
|
|
9
|
+
export declare class Cache {
|
|
10
10
|
readonly prefix: string;
|
|
11
11
|
readonly cache: cacheManager.Cache;
|
|
12
12
|
constructor(prefix: string, cache: cacheManager.Cache);
|
|
@@ -17,4 +17,3 @@ declare class CacheHandler {
|
|
|
17
17
|
hset<T>(key: string, field: string, value: T, ttl?: number): Promise<T>;
|
|
18
18
|
hget<T>(key: string, field: string, defaultval?: any): Promise<T>;
|
|
19
19
|
}
|
|
20
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x3e1c69=a4_0x5d2c;function a4_0x24c6(){var _0x107ed3=['clients','stores','7135236WAgHzc','808428zULTYZ','Config','Singleton','apply','set','toString','__metadata','Provide','search','1339352zzjNUe','caching','cache','(((.+)+)+)+$','get','use','15099JqTtmm','object','2403440MWbbHH','prefix','config','store','prototype','CacheService','reset','21ZnzXUg','Cache','function','design:type','has','length','default','226296srnrAA','constructor','file','524248AtitOa','@midwayjs/core','cache-manager','182NkYCtx','del','defineProperty','metadata','ScopeEnum'];a4_0x24c6=function(){return _0x107ed3;};return a4_0x24c6();}(function(_0xa99212,_0x57d35e){var _0x1c3339=a4_0x5d2c,_0x249d03=_0xa99212();while(!![]){try{var _0x55f76b=parseInt(_0x1c3339(0xda))/0x1+-parseInt(_0x1c3339(0xb3))/0x2*(-parseInt(_0x1c3339(0xca))/0x3)+-parseInt(_0x1c3339(0xb0))/0x4+-parseInt(_0x1c3339(0xcc))/0x5+-parseInt(_0x1c3339(0xbb))/0x6*(parseInt(_0x1c3339(0xd3))/0x7)+-parseInt(_0x1c3339(0xc4))/0x8+parseInt(_0x1c3339(0xba))/0x9;if(_0x55f76b===_0x57d35e)break;else _0x249d03['push'](_0x249d03['shift']());}catch(_0x5cd96d){_0x249d03['push'](_0x249d03['shift']());}}}(a4_0x24c6,0x47b58));var a4_0x11b250=(function(){var _0xa5807d=!![];return function(_0x414fda,_0x35e10b){var _0x1f37b6=_0xa5807d?function(){var _0x12c6f4=a4_0x5d2c;if(_0x35e10b){var _0x2c6b6a=_0x35e10b[_0x12c6f4(0xbe)](_0x414fda,arguments);return _0x35e10b=null,_0x2c6b6a;}}:function(){};return _0xa5807d=![],_0x1f37b6;};}()),a4_0x52f1d1=a4_0x11b250(this,function(){var _0x490cf3=a4_0x5d2c;return a4_0x52f1d1[_0x490cf3(0xc0)]()[_0x490cf3(0xc3)](_0x490cf3(0xc7))[_0x490cf3(0xc0)]()[_0x490cf3(0xae)](a4_0x52f1d1)[_0x490cf3(0xc3)](_0x490cf3(0xc7));});function a4_0x5d2c(_0x294a06,_0x2497e2){var _0x5a2e13=a4_0x24c6();return a4_0x5d2c=function(_0x52f1d1,_0x11b250){_0x52f1d1=_0x52f1d1-0xae;var _0x24c697=_0x5a2e13[_0x52f1d1];return _0x24c697;},a4_0x5d2c(_0x294a06,_0x2497e2);}a4_0x52f1d1();'use strict';var __decorate=this&&this['__decorate']||function(_0x2d92d7,_0x3cdd7b,_0x471ae7,_0x40fb0d){var _0x4dd8d1=a4_0x5d2c,_0x3f8998=arguments[_0x4dd8d1(0xd8)],_0x29efce=_0x3f8998<0x3?_0x3cdd7b:_0x40fb0d===null?_0x40fb0d=Object['getOwnPropertyDescriptor'](_0x3cdd7b,_0x471ae7):_0x40fb0d,_0x5b6f05;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x4dd8d1(0xd5))_0x29efce=Reflect['decorate'](_0x2d92d7,_0x3cdd7b,_0x471ae7,_0x40fb0d);else{for(var _0x54603c=_0x2d92d7[_0x4dd8d1(0xd8)]-0x1;_0x54603c>=0x0;_0x54603c--)if(_0x5b6f05=_0x2d92d7[_0x54603c])_0x29efce=(_0x3f8998<0x3?_0x5b6f05(_0x29efce):_0x3f8998>0x3?_0x5b6f05(_0x3cdd7b,_0x471ae7,_0x29efce):_0x5b6f05(_0x3cdd7b,_0x471ae7))||_0x29efce;}return _0x3f8998>0x3&&_0x29efce&&Object[_0x4dd8d1(0xb5)](_0x3cdd7b,_0x471ae7,_0x29efce),_0x29efce;},__metadata=this&&this[a4_0x3e1c69(0xc1)]||function(_0x5db39b,_0x439036){var _0x1fe22f=a4_0x3e1c69;if(typeof Reflect===_0x1fe22f(0xcb)&&typeof Reflect[_0x1fe22f(0xb6)]==='function')return Reflect[_0x1fe22f(0xb6)](_0x5db39b,_0x439036);};Object[a4_0x3e1c69(0xb5)](exports,'__esModule',{'value':!![]}),exports['Cache']=exports[a4_0x3e1c69(0xd1)]=void 0x0;const cacheManager=require(a4_0x3e1c69(0xb2)),core_1=require(a4_0x3e1c69(0xb1));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x3e1c69(0xc9)](_0x1aa969){var _0x39766c=a4_0x3e1c69,_0x14d98d,_0x42c207;if(!this['cache']){const _0x3c1e35=((_0x14d98d=this[_0x39766c(0xce)][_0x39766c(0xb9)])===null||_0x14d98d===void 0x0?void 0x0:_0x14d98d[(_0x42c207=this[_0x39766c(0xce)])===null||_0x42c207===void 0x0?void 0x0:_0x42c207[_0x39766c(0xd9)]])||this[_0x39766c(0xce)][_0x39766c(0xb9)][_0x39766c(0xaf)];this[_0x39766c(0xc6)]=cacheManager[_0x39766c(0xc5)]({..._0x3c1e35['options'],'store':_0x3c1e35[_0x39766c(0xcf)]});}return!this[_0x39766c(0xb8)][_0x39766c(0xd7)](_0x1aa969)&&this[_0x39766c(0xb8)][_0x39766c(0xbf)](_0x1aa969,new Cache(_0x1aa969,this[_0x39766c(0xc6)])),this[_0x39766c(0xb8)]['get'](_0x1aa969);}async[a4_0x3e1c69(0xd2)](){var _0x197519=a4_0x3e1c69;return await this[_0x197519(0xc6)][_0x197519(0xd2)]();}};exports[a4_0x3e1c69(0xd1)]=CacheService,__decorate([(0x0,core_1[a4_0x3e1c69(0xbc)])(a4_0x3e1c69(0xc6)),__metadata(a4_0x3e1c69(0xd6),Object)],CacheService[a4_0x3e1c69(0xd0)],a4_0x3e1c69(0xce),void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1[a4_0x3e1c69(0xc2)])(),(0x0,core_1['Scope'])(core_1[a4_0x3e1c69(0xb7)][a4_0x3e1c69(0xbd)])],CacheService);class Cache{constructor(_0x3b0a59,_0x29f035){var _0x110ec2=a4_0x3e1c69;this[_0x110ec2(0xc6)]=_0x29f035,this[_0x110ec2(0xcd)]=_0x3b0a59;}async[a4_0x3e1c69(0xb4)](_0xa69831){var _0x123627=a4_0x3e1c69;return await this[_0x123627(0xc6)]['del'](this[_0x123627(0xcd)]+':'+_0xa69831);}async[a4_0x3e1c69(0xbf)](_0x4b0cf3,_0x168b87,_0x4088ee){var _0x337603=a4_0x3e1c69;return await this[_0x337603(0xc6)]['set'](this['prefix']+':'+_0x4b0cf3,_0x168b87,_0x4088ee);}async['get'](_0x497a21,_0x29eb7a){return new Promise((_0x52a022,_0x16431d)=>{var _0x2010fd=a4_0x5d2c;this[_0x2010fd(0xc6)]['get'](this[_0x2010fd(0xcd)]+':'+_0x497a21,(_0x10003f,_0x1d4422)=>{_0x10003f?_0x16431d(_0x10003f):_0x52a022(_0x1d4422||_0x29eb7a);});});}async['hdel'](_0x415d67,_0x50feb2){var _0x3c0d1a=a4_0x3e1c69;return await this[_0x3c0d1a(0xb4)](_0x415d67+'#'+_0x50feb2);}async['hset'](_0x3553e8,_0x2be656,_0x490078,_0x2b0eb8){var _0x17d109=a4_0x3e1c69;return await this[_0x17d109(0xbf)](_0x3553e8+'#'+_0x2be656,_0x490078,_0x2b0eb8);}async['hget'](_0x19cb7d,_0x13acc2,_0x2d755c){var _0x18fb77=a4_0x3e1c69;return await this[_0x18fb77(0xc8)](_0x19cb7d+'#'+_0x13acc2,_0x2d755c);}}exports[a4_0x3e1c69(0xd4)]=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.17",
|
|
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": "b391678bca3f5b598240e95f5e550c1502fbe0e9"
|
|
27
27
|
}
|