@anncic-api/cache 3.4.0 → 3.4.1
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_0x513ad8=a0_0x2ec2;(function(_0x529565,_0x5e0852){const _0x2a9419=a0_0x2ec2,_0x568afc=_0x529565();while(!![]){try{const _0xf7a89d=-parseInt(_0x2a9419(0x195))/0x1+-parseInt(_0x2a9419(0x192))/0x2*(parseInt(_0x2a9419(0x186))/0x3)+parseInt(_0x2a9419(0x187))/0x4*(parseInt(_0x2a9419(0x181))/0x5)+parseInt(_0x2a9419(0x185))/0x6*(-parseInt(_0x2a9419(0x18f))/0x7)+-parseInt(_0x2a9419(0x18a))/0x8+-parseInt(_0x2a9419(0x194))/0x9+parseInt(_0x2a9419(0x188))/0xa;if(_0xf7a89d===_0x5e0852)break;else _0x568afc['push'](_0x568afc['shift']());}catch(_0x2d5570){_0x568afc['push'](_0x568afc['shift']());}}}(a0_0x5172,0xbb914));const a0_0x785b4a=(function(){let _0x232e7c=!![];return function(_0x525da8,_0x178a51){const _0x17e71d=_0x232e7c?function(){const _0x1130ac=a0_0x2ec2;if(_0x178a51){const _0x3717e7=_0x178a51[_0x1130ac(0x180)](_0x525da8,arguments);return _0x178a51=null,_0x3717e7;}}:function(){};return _0x232e7c=![],_0x17e71d;};}()),a0_0x4eaf4c=a0_0x785b4a(this,function(){const _0x17a2ea=a0_0x2ec2;return a0_0x4eaf4c[_0x17a2ea(0x193)]()['search'](_0x17a2ea(0x18d))['toString']()[_0x17a2ea(0x190)](a0_0x4eaf4c)[_0x17a2ea(0x18c)](_0x17a2ea(0x18d));});a0_0x4eaf4c();'use strict';Object[a0_0x513ad8(0x189)](exports,'__esModule',{'value':!![]});function a0_0x5172(){const _0x370e2b=['3350649vruMoP','872HEDhBQ','36609340pmgWjX','defineProperty','2415192OERckY','appDir','search','(((.+)+)+)+$','default','2006557DyDlWV','constructor','env','2YSlufF','toString','3838833eIAqJF','869906aCVtld','file','cache-manager-ioredis','apply','2505YimjVv','127.0.0.1','name','/runtime/.cache','6DdhggA'];a0_0x5172=function(){return _0x370e2b;};return a0_0x5172();}function a0_0x2ec2(_0x4b0e55,_0x36fad1){const _0x33821a=a0_0x5172();return a0_0x2ec2=function(_0x4eaf4c,_0x785b4a){_0x4eaf4c=_0x4eaf4c-0x17f;let _0x51726a=_0x33821a[_0x4eaf4c];return _0x51726a;},a0_0x2ec2(_0x4b0e55,_0x36fad1);}const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x513ad8(0x17f));exports[a0_0x513ad8(0x18e)]=_0x1d9deb=>{const _0x178e30=a0_0x513ad8;return{'cache':{'default':_0x178e30(0x196),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x1d9deb[_0x178e30(0x18b)]+_0x178e30(0x184)+((_0x1d9deb===null||_0x1d9deb===void 0x0?void 0x0:_0x1d9deb[_0x178e30(0x191)])?'-'+_0x1d9deb[_0x178e30(0x191)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x178e30(0x182),'password':'','ttl':0xed4e00,'keyPrefix':_0x1d9deb[_0x178e30(0x183)]+':'+((_0x1d9deb===null||_0x1d9deb===void 0x0?void 0x0:_0x1d9deb[_0x178e30(0x191)])?_0x1d9deb[_0x178e30(0x191)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0xed4e00}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x2c4519=a1_0x7b17;(function(_0x27e350,_0x5acaa8){var _0x591ee0=a1_0x7b17,_0x2c044b=_0x27e350();while(!![]){try{var _0x1e4cd6=parseInt(_0x591ee0(0x179))/0x1*(-parseInt(_0x591ee0(0x16c))/0x2)+parseInt(_0x591ee0(0x176))/0x3*(-parseInt(_0x591ee0(0x177))/0x4)+-parseInt(_0x591ee0(0x17a))/0x5+parseInt(_0x591ee0(0x173))/0x6+parseInt(_0x591ee0(0x170))/0x7+-parseInt(_0x591ee0(0x16d))/0x8+-parseInt(_0x591ee0(0x171))/0x9*(-parseInt(_0x591ee0(0x17f))/0xa);if(_0x1e4cd6===_0x5acaa8)break;else _0x2c044b['push'](_0x2c044b['shift']());}catch(_0x5e3fa0){_0x2c044b['push'](_0x2c044b['shift']());}}}(a1_0x5dc8,0xbcf00));function a1_0x7b17(_0x1d52ae,_0x398d3e){var _0x438600=a1_0x5dc8();return a1_0x7b17=function(_0x202422,_0xf4bab3){_0x202422=_0x202422-0x168;var _0x5dc803=_0x438600[_0x202422];return _0x5dc803;},a1_0x7b17(_0x1d52ae,_0x398d3e);}var a1_0xf4bab3=(function(){var _0x56b252=!![];return function(_0x21f76b,_0x5e6a0a){var _0x41bc28=_0x56b252?function(){var _0x1b65ce=a1_0x7b17;if(_0x5e6a0a){var _0x5b78ac=_0x5e6a0a[_0x1b65ce(0x181)](_0x21f76b,arguments);return _0x5e6a0a=null,_0x5b78ac;}}:function(){};return _0x56b252=![],_0x41bc28;};}()),a1_0x202422=a1_0xf4bab3(this,function(){var _0x508286=a1_0x7b17;return a1_0x202422[_0x508286(0x169)]()[_0x508286(0x168)](_0x508286(0x178))[_0x508286(0x169)]()['constructor'](a1_0x202422)[_0x508286(0x168)]('(((.+)+)+)+$');});a1_0x202422();'use strict';function a1_0x5dc8(){var _0x5a8dc4=['__decorate','./config/config.default','9081520rqwKZw','19638jFjpIf','CustomConfiguration','7053714eXNwzg','anncic-api:cache','decorate','1804737IOtKAk','4GLvSYJ','(((.+)+)+)+$','1SdKecH','2884765HdMRzZ','getOwnPropertyDescriptor','function','@midwayjs/core','object','5630addEqH','Configuration','apply','search','toString','defineProperty','length','1755298YZtjMy','6971008OfWMag'];a1_0x5dc8=function(){return _0x5a8dc4;};return a1_0x5dc8();}var __decorate=this&&this[a1_0x2c4519(0x16e)]||function(_0x34dc31,_0x19fa5e,_0x2986a1,_0xb8150e){var _0x49b982=a1_0x2c4519,_0x4b5ec5=arguments['length'],_0x4cf473=_0x4b5ec5<0x3?_0x19fa5e:_0xb8150e===null?_0xb8150e=Object[_0x49b982(0x17b)](_0x19fa5e,_0x2986a1):_0xb8150e,_0x399d2d;if(typeof Reflect===_0x49b982(0x17e)&&typeof Reflect[_0x49b982(0x175)]===_0x49b982(0x17c))_0x4cf473=Reflect[_0x49b982(0x175)](_0x34dc31,_0x19fa5e,_0x2986a1,_0xb8150e);else{for(var _0x14a034=_0x34dc31[_0x49b982(0x16b)]-0x1;_0x14a034>=0x0;_0x14a034--)if(_0x399d2d=_0x34dc31[_0x14a034])_0x4cf473=(_0x4b5ec5<0x3?_0x399d2d(_0x4cf473):_0x4b5ec5>0x3?_0x399d2d(_0x19fa5e,_0x2986a1,_0x4cf473):_0x399d2d(_0x19fa5e,_0x2986a1))||_0x4cf473;}return _0x4b5ec5>0x3&&_0x4cf473&&Object[_0x49b982(0x16a)](_0x19fa5e,_0x2986a1,_0x4cf473),_0x4cf473;};Object[a1_0x2c4519(0x16a)](exports,'__esModule',{'value':!![]}),exports[a1_0x2c4519(0x172)]=void 0x0;const core_1=require(a1_0x2c4519(0x17d)),ConfigDefault=require(a1_0x2c4519(0x16f));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x2c4519(0x172)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x2c4519(0x180)])({'conflictCheck':![],'namespace':a1_0x2c4519(0x174),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x4bb53b=a2_0x2b35;(function(_0x1cb0fe,_0x3c8ebd){const _0x473935=a2_0x2b35,_0x12c7d9=_0x1cb0fe();while(!![]){try{const _0xba02e9=parseInt(_0x473935(0x1b9))/0x1+-parseInt(_0x473935(0x1c9))/0x2*(parseInt(_0x473935(0x1d2))/0x3)+parseInt(_0x473935(0x1ca))/0x4*(parseInt(_0x473935(0x1c6))/0x5)+parseInt(_0x473935(0x1c1))/0x6+-parseInt(_0x473935(0x1c8))/0x7*(parseInt(_0x473935(0x1c0))/0x8)+-parseInt(_0x473935(0x1cb))/0x9+parseInt(_0x473935(0x1cf))/0xa;if(_0xba02e9===_0x3c8ebd)break;else _0x12c7d9['push'](_0x12c7d9['shift']());}catch(_0x69e236){_0x12c7d9['push'](_0x12c7d9['shift']());}}}(a2_0x56cc,0x9c67f));const a2_0x51b9d3=(function(){let _0x3fe1e0=!![];return function(_0x5676e3,_0x5087cd){const _0x332fe4=_0x3fe1e0?function(){const _0x5586ad=a2_0x2b35;if(_0x5087cd){const _0x4757ac=_0x5087cd[_0x5586ad(0x1bf)](_0x5676e3,arguments);return _0x5087cd=null,_0x4757ac;}}:function(){};return _0x3fe1e0=![],_0x332fe4;};}()),a2_0x25ab36=a2_0x51b9d3(this,function(){const _0x47ed46=a2_0x2b35;return a2_0x25ab36[_0x47ed46(0x1cd)]()[_0x47ed46(0x1bc)](_0x47ed46(0x1ba))['toString']()['constructor'](a2_0x25ab36)['search']('(((.+)+)+)+$');});a2_0x25ab36();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x4bb53b(0x1cc)]=void 0x0;function a2_0x2b35(_0x375cf1,_0x2aa928){const _0xdcaf28=a2_0x56cc();return a2_0x2b35=function(_0x25ab36,_0x51b9d3){_0x25ab36=_0x25ab36-0x1b8;let _0x56ccb2=_0xdcaf28[_0x25ab36];return _0x56ccb2;},a2_0x2b35(_0x375cf1,_0x2aa928);}const crypto_js_1=require(a2_0x4bb53b(0x1c4)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x4bb53b(0x1be));function Cache(_0x1c732a,_0x38d6f7){return(_0xefdafc,_0x3b0a04,_0x31e50a)=>{const _0x4ac648=a2_0x2b35,_0x10bff9=_0x31e50a[_0x4ac648(0x1ce)];return _0x31e50a['value']=async function(..._0x49c439){const _0xe1caa3=_0x4ac648;!_0x1c732a&&(_0x1c732a=(0x0,crypto_js_1[_0xe1caa3(0x1d3)])(JSON[_0xe1caa3(0x1c2)](_0x49c439))[_0xe1caa3(0x1cd)]());let _0xc60d2f=await this[core_1['REQUEST_OBJ_CTX_KEY']][_0xe1caa3(0x1c3)][_0xe1caa3(0x1bb)]()[_0xe1caa3(0x1d0)](CacheService_1[_0xe1caa3(0x1c7)]),_0x3876f3=await _0xc60d2f['use']('Method::Decorator')[_0xe1caa3(0x1b8)](_0x1c732a);if(_0x3876f3)return JSON[_0xe1caa3(0x1d1)](_0x3876f3);else _0x3876f3=await _0x10bff9[_0xe1caa3(0x1bf)](this,[..._0x49c439]),await _0xc60d2f[_0xe1caa3(0x1bd)](_0xe1caa3(0x1c5))['set'](_0x1c732a,JSON[_0xe1caa3(0x1c2)](_0x3876f3),_0x38d6f7);return _0x3876f3;},_0x31e50a;};}function a2_0x56cc(){const _0x32902e=['getAsync','parse','41196FsgWmZ','MD5','get','367029GlbEAI','(((.+)+)+)+$','getApplicationContext','search','use','@midwayjs/core','apply','23728wrnduu','870984JwHlXC','stringify','app','crypto-js','Method::Decorator','11105tikmhx','CacheService','1687RQMCLU','52fKnHGO','1796ClNClg','5658417zLVfwb','Cache','toString','value','8317680RVBggR'];a2_0x56cc=function(){return _0x32902e;};return a2_0x56cc();}exports[a2_0x4bb53b(0x1cc)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x12a97e=a3_0x27d8;(function(_0x51b0ba,_0x4f507b){var _0x216099=a3_0x27d8,_0x35decf=_0x51b0ba();while(!![]){try{var _0x276f8e=-parseInt(_0x216099(0x7c))/0x1+parseInt(_0x216099(0x83))/0x2*(parseInt(_0x216099(0x74))/0x3)+parseInt(_0x216099(0x79))/0x4*(-parseInt(_0x216099(0x81))/0x5)+parseInt(_0x216099(0x80))/0x6*(-parseInt(_0x216099(0x7d))/0x7)+parseInt(_0x216099(0x78))/0x8*(parseInt(_0x216099(0x86))/0x9)+-parseInt(_0x216099(0x82))/0xa+parseInt(_0x216099(0x73))/0xb*(parseInt(_0x216099(0x77))/0xc);if(_0x276f8e===_0x4f507b)break;else _0x35decf['push'](_0x35decf['shift']());}catch(_0x2804c7){_0x35decf['push'](_0x35decf['shift']());}}}(a3_0x359f,0xf29f8));function a3_0x27d8(_0x1c24a4,_0x21d3dd){var _0x32d214=a3_0x359f();return a3_0x27d8=function(_0x21fced,_0x424dd0){_0x21fced=_0x21fced-0x71;var _0x359f4b=_0x32d214[_0x21fced];return _0x359f4b;},a3_0x27d8(_0x1c24a4,_0x21d3dd);}function a3_0x359f(){var _0x2fa5aa=['./decorator/Cache','1574115aJshUR','694743GVEDNL','./configuration','defineProperty','12QAdmtX','145pShCiG','9300100jZbVaG','82474ofXNho','search','toString','18eKlYfZ','CacheService','Configuration','11XEdRrz','6YdNOmn','(((.+)+)+)+$','apply','52419360IYzGvT','4281448ykqwqk','251684JmxmWU','Cache'];a3_0x359f=function(){return _0x2fa5aa;};return a3_0x359f();}var a3_0x424dd0=(function(){var _0x4cdc29=!![];return function(_0x2a1b18,_0x203f80){var _0x2e53fd=_0x4cdc29?function(){var _0xe7160f=a3_0x27d8;if(_0x203f80){var _0x1f02f1=_0x203f80[_0xe7160f(0x76)](_0x2a1b18,arguments);return _0x203f80=null,_0x1f02f1;}}:function(){};return _0x4cdc29=![],_0x2e53fd;};}()),a3_0x21fced=a3_0x424dd0(this,function(){var _0x4c7d71=a3_0x27d8;return a3_0x21fced['toString']()[_0x4c7d71(0x84)](_0x4c7d71(0x75))[_0x4c7d71(0x85)]()['constructor'](a3_0x21fced)['search']('(((.+)+)+)+$');});a3_0x21fced();'use strict';Object[a3_0x12a97e(0x7f)](exports,'__esModule',{'value':!![]}),exports[a3_0x12a97e(0x71)]=exports['Cache']=exports[a3_0x12a97e(0x72)]=void 0x0;var configuration_1=require(a3_0x12a97e(0x7e));Object[a3_0x12a97e(0x7f)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x12a97e(0x7b));Object[a3_0x12a97e(0x7f)](exports,a3_0x12a97e(0x7a),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require('./service/CacheService');Object[a3_0x12a97e(0x7f)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x450f49=a3_0x12a97e;return CacheService_1[_0x450f49(0x71)];}});
|
|
@@ -11,10 +11,10 @@ declare class CacheHandler {
|
|
|
11
11
|
readonly cache: cacheManager.Cache;
|
|
12
12
|
constructor(prefix: string, cache: cacheManager.Cache);
|
|
13
13
|
del(key: string): Promise<any>;
|
|
14
|
-
set<T>(key: string, value: T, ttl?: number): Promise<
|
|
14
|
+
set<T>(key: string, value: T, ttl?: number): Promise<T>;
|
|
15
15
|
get<T>(key: string, defaultval?: any): Promise<T>;
|
|
16
16
|
hdel(key: string, field: string): Promise<any>;
|
|
17
|
-
hset<T>(key: string, field: string, value: T, ttl?: number): Promise<
|
|
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
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x4abf31=a4_0x1efb;(function(_0x1af888,_0x511f05){var _0x3704ea=a4_0x1efb,_0x39992a=_0x1af888();while(!![]){try{var _0x2bd935=-parseInt(_0x3704ea(0x1dc))/0x1+-parseInt(_0x3704ea(0x1cf))/0x2*(parseInt(_0x3704ea(0x1e2))/0x3)+-parseInt(_0x3704ea(0x1f7))/0x4+-parseInt(_0x3704ea(0x1ea))/0x5+parseInt(_0x3704ea(0x1de))/0x6*(-parseInt(_0x3704ea(0x1dd))/0x7)+-parseInt(_0x3704ea(0x1e0))/0x8+parseInt(_0x3704ea(0x1d3))/0x9;if(_0x2bd935===_0x511f05)break;else _0x39992a['push'](_0x39992a['shift']());}catch(_0x25f5d2){_0x39992a['push'](_0x39992a['shift']());}}}(a4_0x4f6c,0xb3ddd));var a4_0x120fa0=(function(){var _0x214ca6=!![];return function(_0x1541a0,_0x247db2){var _0x202492=_0x214ca6?function(){var _0x2a4da9=a4_0x1efb;if(_0x247db2){var _0x2840fd=_0x247db2[_0x2a4da9(0x1d9)](_0x1541a0,arguments);return _0x247db2=null,_0x2840fd;}}:function(){};return _0x214ca6=![],_0x202492;};}()),a4_0x12d79d=a4_0x120fa0(this,function(){var _0x7321fe=a4_0x1efb;return a4_0x12d79d['toString']()[_0x7321fe(0x1f6)](_0x7321fe(0x1f5))[_0x7321fe(0x1d1)]()[_0x7321fe(0x1f8)](a4_0x12d79d)['search'](_0x7321fe(0x1f5));});a4_0x12d79d();'use strict';var __decorate=this&&this[a4_0x4abf31(0x1eb)]||function(_0x4c16a7,_0x2e34d8,_0x5f2201,_0x1921fe){var _0x42999b=a4_0x4abf31,_0x3a66c9=arguments[_0x42999b(0x1ec)],_0x8f0ccc=_0x3a66c9<0x3?_0x2e34d8:_0x1921fe===null?_0x1921fe=Object[_0x42999b(0x1ee)](_0x2e34d8,_0x5f2201):_0x1921fe,_0x202350;if(typeof Reflect===_0x42999b(0x1e3)&&typeof Reflect[_0x42999b(0x1d0)]===_0x42999b(0x1e6))_0x8f0ccc=Reflect['decorate'](_0x4c16a7,_0x2e34d8,_0x5f2201,_0x1921fe);else{for(var _0x131860=_0x4c16a7['length']-0x1;_0x131860>=0x0;_0x131860--)if(_0x202350=_0x4c16a7[_0x131860])_0x8f0ccc=(_0x3a66c9<0x3?_0x202350(_0x8f0ccc):_0x3a66c9>0x3?_0x202350(_0x2e34d8,_0x5f2201,_0x8f0ccc):_0x202350(_0x2e34d8,_0x5f2201))||_0x8f0ccc;}return _0x3a66c9>0x3&&_0x8f0ccc&&Object['defineProperty'](_0x2e34d8,_0x5f2201,_0x8f0ccc),_0x8f0ccc;},__metadata=this&&this[a4_0x4abf31(0x1d4)]||function(_0x3dd9cf,_0x12e369){var _0x1b08d7=a4_0x4abf31;if(typeof Reflect===_0x1b08d7(0x1e3)&&typeof Reflect[_0x1b08d7(0x1f1)]===_0x1b08d7(0x1e6))return Reflect[_0x1b08d7(0x1f1)](_0x3dd9cf,_0x12e369);};function a4_0x4f6c(){var _0x2dbc07=['hdel','(((.+)+)+)+$','search','5648060cqhYYF','constructor','design:type','4ulNOcG','decorate','toString','hget','48663837mdUiDB','__metadata','CacheService','reset','prototype','__esModule','apply','@midwayjs/core','prefix','1335057apCriQ','36925SRYeLU','474GEZmRM','config','345736ZTLKQY','get','1501647YYHkpx','object','set','options','function','cache','caching','default','2311240sNeNug','__decorate','length','use','getOwnPropertyDescriptor','del','stores','metadata','ScopeEnum','clients'];a4_0x4f6c=function(){return _0x2dbc07;};return a4_0x4f6c();}Object['defineProperty'](exports,a4_0x4abf31(0x1d8),{'value':!![]}),exports[a4_0x4abf31(0x1d5)]=void 0x0;const cacheManager=require('cache-manager'),core_1=require(a4_0x4abf31(0x1da));function a4_0x1efb(_0x5e5ef2,_0x56be58){var _0x4bcdea=a4_0x4f6c();return a4_0x1efb=function(_0x12d79d,_0x120fa0){_0x12d79d=_0x12d79d-0x1cf;var _0x4f6c42=_0x4bcdea[_0x12d79d];return _0x4f6c42;},a4_0x1efb(_0x5e5ef2,_0x56be58);}let CacheService=class CacheService{constructor(){var _0x4bef41=a4_0x4abf31;this[_0x4bef41(0x1e7)]=undefined,this[_0x4bef41(0x1f3)]=new Map();}[a4_0x4abf31(0x1ed)](_0x2f0869){var _0x508ac3=a4_0x4abf31,_0x5c624d,_0x45b99f;if(!this[_0x508ac3(0x1e7)]){const _0x1b38c3=((_0x5c624d=this['config'][_0x508ac3(0x1f0)])===null||_0x5c624d===void 0x0?void 0x0:_0x5c624d[(_0x45b99f=this[_0x508ac3(0x1df)])===null||_0x45b99f===void 0x0?void 0x0:_0x45b99f[_0x508ac3(0x1e9)]])||this[_0x508ac3(0x1df)][_0x508ac3(0x1f0)]['file'];this[_0x508ac3(0x1e7)]=cacheManager[_0x508ac3(0x1e8)]({..._0x1b38c3[_0x508ac3(0x1e5)],'store':_0x1b38c3['store']});}return!this[_0x508ac3(0x1f3)]['has'](_0x2f0869)&&this[_0x508ac3(0x1f3)][_0x508ac3(0x1e4)](_0x2f0869,new CacheHandler(_0x2f0869,this[_0x508ac3(0x1e7)])),this['clients'][_0x508ac3(0x1e1)](_0x2f0869);}async[a4_0x4abf31(0x1d6)](){var _0x1d707d=a4_0x4abf31;return await this['cache'][_0x1d707d(0x1d6)]();}};exports[a4_0x4abf31(0x1d5)]=CacheService,__decorate([(0x0,core_1['Config'])(a4_0x4abf31(0x1e7)),__metadata(a4_0x4abf31(0x1f9),Object)],CacheService[a4_0x4abf31(0x1d7)],a4_0x4abf31(0x1df),void 0x0),exports[a4_0x4abf31(0x1d5)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a4_0x4abf31(0x1f2)]['Singleton'])],CacheService);class CacheHandler{constructor(_0x261229,_0x4fc87c){var _0x3be5ef=a4_0x4abf31;this[_0x3be5ef(0x1e7)]=_0x4fc87c,this[_0x3be5ef(0x1db)]=_0x261229;}async[a4_0x4abf31(0x1ef)](_0x9b9f23){var _0x57b7b0=a4_0x4abf31;return await this[_0x57b7b0(0x1e7)]['del'](this[_0x57b7b0(0x1db)]+':'+_0x9b9f23);}async[a4_0x4abf31(0x1e4)](_0xd84ecb,_0x32567d,_0xd6eb81){var _0x4c8d08=a4_0x4abf31;return await this['cache'][_0x4c8d08(0x1e4)](this['prefix']+':'+_0xd84ecb,_0x32567d,_0xd6eb81);}async['get'](_0x4547be,_0x4a89a1){return new Promise((_0x324b53,_0x282865)=>{var _0x586a06=a4_0x1efb;this[_0x586a06(0x1e7)][_0x586a06(0x1e1)](this[_0x586a06(0x1db)]+':'+_0x4547be,(_0x5c7026,_0x5c2439)=>{_0x5c7026?_0x282865(_0x5c7026):_0x324b53(_0x5c2439||_0x4a89a1);});});}async[a4_0x4abf31(0x1f4)](_0x2b6b4b,_0x25f4e6){var _0x479602=a4_0x4abf31;return await this[_0x479602(0x1ef)](_0x2b6b4b+'#'+_0x25f4e6);}async['hset'](_0x5b49c4,_0x3255bf,_0x4c85c9,_0x582559){var _0x65d5c3=a4_0x4abf31;return await this[_0x65d5c3(0x1e4)](_0x5b49c4+'#'+_0x3255bf,_0x4c85c9,_0x582559);}async[a4_0x4abf31(0x1d2)](_0x3bb2f3,_0x354549,_0x50dd8f){var _0x4cc88c=a4_0x4abf31;return await this[_0x4cc88c(0x1e1)](_0x3bb2f3+'#'+_0x354549,_0x50dd8f);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
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": "52dac704463c53a50357117f10a4756f097a9286"
|
|
27
27
|
}
|