@anncic-api/cache 2.0.2 → 2.0.4
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
|
-
function
|
|
1
|
+
function a0_0x20db(){const _0x3708ce=['file','__esModule','1822614nWTDWj','3025404GxEdfi','6081285VfmzIh','constructor','memory','113403eItYdv','search','toString','105219MsNYEQ','cache-manager-ioredis','defineProperty','17602209CSzCHw','127.0.0.1','38rTSIky','1000275sgoOJK','cache-manager-fs-hash','8mqjmsJ','apply','appDir','name'];a0_0x20db=function(){return _0x3708ce;};return a0_0x20db();}const a0_0x437d9d=a0_0xa6d6;(function(_0x2e86cf,_0x1df66c){const _0x114b66=a0_0xa6d6,_0x5e79df=_0x2e86cf();while(!![]){try{const _0x4128d9=-parseInt(_0x114b66(0x1f2))/0x1+-parseInt(_0x114b66(0x1e1))/0x2*(-parseInt(_0x114b66(0x1ef))/0x3)+-parseInt(_0x114b66(0x1eb))/0x4+-parseInt(_0x114b66(0x1e2))/0x5+-parseInt(_0x114b66(0x1ea))/0x6+-parseInt(_0x114b66(0x1ec))/0x7+-parseInt(_0x114b66(0x1e4))/0x8*(-parseInt(_0x114b66(0x1f5))/0x9);if(_0x4128d9===_0x1df66c)break;else _0x5e79df['push'](_0x5e79df['shift']());}catch(_0x2fefd4){_0x5e79df['push'](_0x5e79df['shift']());}}}(a0_0x20db,0x6b63f));function a0_0xa6d6(_0x273211,_0x7b82f3){const _0xdbecf0=a0_0x20db();return a0_0xa6d6=function(_0x22bdaa,_0x3ea77d){_0x22bdaa=_0x22bdaa-0x1e0;let _0x20db28=_0xdbecf0[_0x22bdaa];return _0x20db28;},a0_0xa6d6(_0x273211,_0x7b82f3);}const a0_0x3ea77d=(function(){let _0x1cd7d0=!![];return function(_0x57b88f,_0x49c5c2){const _0x33e298=_0x1cd7d0?function(){const _0x122790=a0_0xa6d6;if(_0x49c5c2){const _0x14d151=_0x49c5c2[_0x122790(0x1e5)](_0x57b88f,arguments);return _0x49c5c2=null,_0x14d151;}}:function(){};return _0x1cd7d0=![],_0x33e298;};}()),a0_0x22bdaa=a0_0x3ea77d(this,function(){const _0x3649e9=a0_0xa6d6;return a0_0x22bdaa[_0x3649e9(0x1f1)]()[_0x3649e9(0x1f0)]('(((.+)+)+)+$')['toString']()[_0x3649e9(0x1ed)](a0_0x22bdaa)[_0x3649e9(0x1f0)]('(((.+)+)+)+$');});a0_0x22bdaa();'use strict';Object[a0_0x437d9d(0x1f4)](exports,a0_0x437d9d(0x1e9),{'value':!![]});const fsStore=require(a0_0x437d9d(0x1e3)),redisStore=require(a0_0x437d9d(0x1f3));exports['default']=_0x565d88=>{const _0x32415d=a0_0x437d9d;return{'cache':{'default':_0x32415d(0x1e8),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x565d88[_0x32415d(0x1e6)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x32415d(0x1e0),'password':'','ttl':0x1e13380,'keyPrefix':_0x565d88[_0x32415d(0x1e7)]+':'}},'memory':{'store':_0x32415d(0x1ee),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x310f1d=a1_0x3081;(function(_0x4b6fc5,_0x41486d){var _0x374c25=a1_0x3081,_0x42a437=_0x4b6fc5();while(!![]){try{var _0x50aa67=-parseInt(_0x374c25(0x1ee))/0x1+parseInt(_0x374c25(0x1fc))/0x2*(-parseInt(_0x374c25(0x1f8))/0x3)+-parseInt(_0x374c25(0x1fe))/0x4+-parseInt(_0x374c25(0x1f2))/0x5*(-parseInt(_0x374c25(0x1fd))/0x6)+parseInt(_0x374c25(0x1eb))/0x7*(parseInt(_0x374c25(0x1e9))/0x8)+parseInt(_0x374c25(0x1f6))/0x9*(parseInt(_0x374c25(0x1f7))/0xa)+parseInt(_0x374c25(0x1ef))/0xb*(parseInt(_0x374c25(0x1ff))/0xc);if(_0x50aa67===_0x41486d)break;else _0x42a437['push'](_0x42a437['shift']());}catch(_0x5ad18e){_0x42a437['push'](_0x42a437['shift']());}}}(a1_0x1e90,0xc2e3f));var a1_0x3b197a=(function(){var _0x2da2c9=!![];return function(_0x47f093,_0x1ca9d1){var _0x1acd2c=_0x2da2c9?function(){if(_0x1ca9d1){var _0x644bb6=_0x1ca9d1['apply'](_0x47f093,arguments);return _0x1ca9d1=null,_0x644bb6;}}:function(){};return _0x2da2c9=![],_0x1acd2c;};}()),a1_0x62b4c9=a1_0x3b197a(this,function(){var _0x253bcb=a1_0x3081;return a1_0x62b4c9[_0x253bcb(0x1fa)]()[_0x253bcb(0x1fb)](_0x253bcb(0x1f3))[_0x253bcb(0x1fa)]()[_0x253bcb(0x1f1)](a1_0x62b4c9)[_0x253bcb(0x1fb)](_0x253bcb(0x1f3));});a1_0x62b4c9();'use strict';var __decorate=this&&this['__decorate']||function(_0xaa5095,_0x421b5c,_0x51bd6f,_0x47a52c){var _0x1b757a=a1_0x3081,_0x272eed=arguments['length'],_0x3c2b23=_0x272eed<0x3?_0x421b5c:_0x47a52c===null?_0x47a52c=Object[_0x1b757a(0x201)](_0x421b5c,_0x51bd6f):_0x47a52c,_0x553d1c;if(typeof Reflect===_0x1b757a(0x1ed)&&typeof Reflect[_0x1b757a(0x1f9)]===_0x1b757a(0x200))_0x3c2b23=Reflect['decorate'](_0xaa5095,_0x421b5c,_0x51bd6f,_0x47a52c);else{for(var _0x50d788=_0xaa5095['length']-0x1;_0x50d788>=0x0;_0x50d788--)if(_0x553d1c=_0xaa5095[_0x50d788])_0x3c2b23=(_0x272eed<0x3?_0x553d1c(_0x3c2b23):_0x272eed>0x3?_0x553d1c(_0x421b5c,_0x51bd6f,_0x3c2b23):_0x553d1c(_0x421b5c,_0x51bd6f))||_0x3c2b23;}return _0x272eed>0x3&&_0x3c2b23&&Object['defineProperty'](_0x421b5c,_0x51bd6f,_0x3c2b23),_0x3c2b23;};Object[a1_0x310f1d(0x1ec)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x310f1d(0x1f5)),ConfigDefault=require('./config/config.default');function a1_0x1e90(){var _0x3e08d8=['12LIHImx','3374400jLHPJK','180BjVfSU','function','getOwnPropertyDescriptor','16XgPDRP','Configuration','1475572SRjEis','defineProperty','object','1120789RtBKyD','376607wcxWvj','anncic-api:cache','constructor','2364050GLBumU','(((.+)+)+)+$','CustomConfiguration','@midwayjs/core','9YyGVqi','10852370haQuPl','2148SPmDaY','decorate','toString','search','568PCMZBy'];a1_0x1e90=function(){return _0x3e08d8;};return a1_0x1e90();}let CustomConfiguration=class CustomConfiguration{};function a1_0x3081(_0x40a495,_0x4531d4){var _0x23d8e7=a1_0x1e90();return a1_0x3081=function(_0x62b4c9,_0x3b197a){_0x62b4c9=_0x62b4c9-0x1e9;var _0x1e9071=_0x23d8e7[_0x62b4c9];return _0x1e9071;},a1_0x3081(_0x40a495,_0x4531d4);}CustomConfiguration=__decorate([(0x0,core_1[a1_0x310f1d(0x1ea)])({'conflictCheck':![],'namespace':a1_0x310f1d(0x1f0),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x310f1d(0x1f4)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a2_0x5940(){const _0x3bd00a=['86885tmzVhS','crypto-js','2752584mwRzHt','360906ZnJkQN','value','Method::Decorator','CacheService','apply','11Yvzuts','Cache','use','92vbGzFM','1508sepbLo','3150170QxwqiB','getAsync','43PKAYck','8spXhmw','7qVuLtq','get','1411241XJpYIo','(((.+)+)+)+$','getApplicationContext','stringify','REQUEST_OBJ_CTX_KEY','set','2921085rAYEkC','toString','constructor','__esModule','parse','search','60qwtRKt','defineProperty','MD5','app'];a2_0x5940=function(){return _0x3bd00a;};return a2_0x5940();}const a2_0x131231=a2_0x36aa;(function(_0x12a044,_0x473207){const _0xefbd9f=a2_0x36aa,_0x5b3fe5=_0x12a044();while(!![]){try{const _0x3b5ef7=-parseInt(_0xefbd9f(0x176))/0x1*(-parseInt(_0xefbd9f(0x173))/0x2)+-parseInt(_0xefbd9f(0x16a))/0x3+parseInt(_0xefbd9f(0x172))/0x4*(-parseInt(_0xefbd9f(0x167))/0x5)+-parseInt(_0xefbd9f(0x169))/0x6*(parseInt(_0xefbd9f(0x178))/0x7)+parseInt(_0xefbd9f(0x177))/0x8*(parseInt(_0xefbd9f(0x180))/0x9)+parseInt(_0xefbd9f(0x174))/0xa*(parseInt(_0xefbd9f(0x16f))/0xb)+parseInt(_0xefbd9f(0x186))/0xc*(parseInt(_0xefbd9f(0x17a))/0xd);if(_0x3b5ef7===_0x473207)break;else _0x5b3fe5['push'](_0x5b3fe5['shift']());}catch(_0x43dced){_0x5b3fe5['push'](_0x5b3fe5['shift']());}}}(a2_0x5940,0x39a14));const a2_0x4f7058=(function(){let _0x5b6869=!![];return function(_0x586f36,_0x426aec){const _0x3833e6=_0x5b6869?function(){const _0x382b16=a2_0x36aa;if(_0x426aec){const _0x29c7a6=_0x426aec[_0x382b16(0x16e)](_0x586f36,arguments);return _0x426aec=null,_0x29c7a6;}}:function(){};return _0x5b6869=![],_0x3833e6;};}()),a2_0x433bfc=a2_0x4f7058(this,function(){const _0x18a1cf=a2_0x36aa;return a2_0x433bfc[_0x18a1cf(0x181)]()['search']('(((.+)+)+)+$')[_0x18a1cf(0x181)]()[_0x18a1cf(0x182)](a2_0x433bfc)[_0x18a1cf(0x185)](_0x18a1cf(0x17b));});a2_0x433bfc();'use strict';Object[a2_0x131231(0x164)](exports,a2_0x131231(0x183),{'value':!![]}),exports[a2_0x131231(0x170)]=void 0x0;const crypto_js_1=require(a2_0x131231(0x168)),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function Cache(_0x5425ac,_0x13ec76){return(_0x42652c,_0x5aa4ad,_0x489aa2)=>{const _0x89cc15=a2_0x36aa,_0x27fcc1=_0x489aa2[_0x89cc15(0x16b)];return _0x489aa2[_0x89cc15(0x16b)]=async function(..._0x136d00){const _0x4e626a=_0x89cc15;!_0x5425ac&&(_0x5425ac=(0x0,crypto_js_1[_0x4e626a(0x165)])(JSON[_0x4e626a(0x17d)](_0x136d00))[_0x4e626a(0x181)]());let _0x302fd1=await this[core_1[_0x4e626a(0x17e)]][_0x4e626a(0x166)][_0x4e626a(0x17c)]()[_0x4e626a(0x175)](CacheService_1[_0x4e626a(0x16d)]),_0x52b0a2=await _0x302fd1[_0x4e626a(0x171)](_0x4e626a(0x16c))[_0x4e626a(0x179)](_0x5425ac);if(_0x52b0a2)return JSON[_0x4e626a(0x184)](_0x52b0a2);else _0x52b0a2=await _0x27fcc1[_0x4e626a(0x16e)](this,[..._0x136d00]),await _0x302fd1[_0x4e626a(0x171)](_0x4e626a(0x16c))[_0x4e626a(0x17f)](_0x5425ac,JSON[_0x4e626a(0x17d)](_0x52b0a2),_0x13ec76);return _0x52b0a2;},_0x489aa2;};}function a2_0x36aa(_0x3c2f55,_0x567087){const _0x4cb479=a2_0x5940();return a2_0x36aa=function(_0x433bfc,_0x4f7058){_0x433bfc=_0x433bfc-0x164;let _0x59401b=_0x4cb479[_0x433bfc];return _0x59401b;},a2_0x36aa(_0x3c2f55,_0x567087);}exports[a2_0x131231(0x170)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x25f2bc=a3_0x1393;(function(_0x3d7f07,_0x30591b){var _0x1cf106=a3_0x1393,_0x5b188a=_0x3d7f07();while(!![]){try{var _0x372551=parseInt(_0x1cf106(0xce))/0x1*(-parseInt(_0x1cf106(0xdd))/0x2)+parseInt(_0x1cf106(0xda))/0x3*(-parseInt(_0x1cf106(0xd9))/0x4)+-parseInt(_0x1cf106(0xe0))/0x5+parseInt(_0x1cf106(0xcf))/0x6+-parseInt(_0x1cf106(0xd8))/0x7*(-parseInt(_0x1cf106(0xcd))/0x8)+-parseInt(_0x1cf106(0xd7))/0x9*(parseInt(_0x1cf106(0xd1))/0xa)+parseInt(_0x1cf106(0xde))/0xb;if(_0x372551===_0x30591b)break;else _0x5b188a['push'](_0x5b188a['shift']());}catch(_0x5e32fc){_0x5b188a['push'](_0x5b188a['shift']());}}}(a3_0x19fc,0xdb822));var a3_0x4662f3=(function(){var _0x355298=!![];return function(_0x2eeef8,_0x1a32ce){var _0x57d6d2=_0x355298?function(){var _0x5b63ae=a3_0x1393;if(_0x1a32ce){var _0x3da2ec=_0x1a32ce[_0x5b63ae(0xd6)](_0x2eeef8,arguments);return _0x1a32ce=null,_0x3da2ec;}}:function(){};return _0x355298=![],_0x57d6d2;};}()),a3_0x4fe32b=a3_0x4662f3(this,function(){var _0x25f55c=a3_0x1393;return a3_0x4fe32b[_0x25f55c(0xdf)]()['search'](_0x25f55c(0xd4))[_0x25f55c(0xdf)]()['constructor'](a3_0x4fe32b)[_0x25f55c(0xe2)](_0x25f55c(0xd4));});a3_0x4fe32b();'use strict';Object[a3_0x25f2bc(0xd2)](exports,a3_0x25f2bc(0xdc),{'value':!![]}),exports[a3_0x25f2bc(0xd3)]=exports[a3_0x25f2bc(0xe1)]=exports[a3_0x25f2bc(0xdb)]=void 0x0;var configuration_1=require(a3_0x25f2bc(0xd0));function a3_0x19fc(){var _0x259cee=['Cache','search','352sRYpWO','748380nKkvhZ','4959024GZGFlJ','./configuration','20sHZmUS','defineProperty','CacheService','(((.+)+)+)+$','./service/CacheService','apply','2829303ZFjGtE','247352MgtIaY','8wCHzqX','866769QaXTTP','Configuration','__esModule','2poZGDQ','14715371xIVvGW','toString','4324915WmkClW'];a3_0x19fc=function(){return _0x259cee;};return a3_0x19fc();}Object[a3_0x25f2bc(0xd2)](exports,a3_0x25f2bc(0xdb),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require('./decorator/Cache');function a3_0x1393(_0x4bd3ba,_0x475c71){var _0x2ed5db=a3_0x19fc();return a3_0x1393=function(_0x4fe32b,_0x4662f3){_0x4fe32b=_0x4fe32b-0xcd;var _0x19fcef=_0x2ed5db[_0x4fe32b];return _0x19fcef;},a3_0x1393(_0x4bd3ba,_0x475c71);}Object['defineProperty'](exports,a3_0x25f2bc(0xe1),{'enumerable':!![],'get':function(){var _0x255d9d=a3_0x25f2bc;return Cache_1[_0x255d9d(0xe1)];}});var CacheService_1=require(a3_0x25f2bc(0xd5));Object[a3_0x25f2bc(0xd2)](exports,a3_0x25f2bc(0xd3),{'enumerable':!![],'get':function(){var _0x20d019=a3_0x25f2bc;return CacheService_1[_0x20d019(0xd3)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x150023=a4_0x30ff;(function(_0x49e53c,_0x2b7212){var _0x24e74e=a4_0x30ff,_0x29c4ac=_0x49e53c();while(!![]){try{var _0x239107=parseInt(_0x24e74e(0xe0))/0x1*(parseInt(_0x24e74e(0xe5))/0x2)+parseInt(_0x24e74e(0xd6))/0x3*(parseInt(_0x24e74e(0xe2))/0x4)+parseInt(_0x24e74e(0xdd))/0x5+parseInt(_0x24e74e(0xd3))/0x6*(parseInt(_0x24e74e(0xf7))/0x7)+parseInt(_0x24e74e(0xd4))/0x8*(-parseInt(_0x24e74e(0xf2))/0x9)+parseInt(_0x24e74e(0xd0))/0xa+parseInt(_0x24e74e(0xd2))/0xb*(-parseInt(_0x24e74e(0xea))/0xc);if(_0x239107===_0x2b7212)break;else _0x29c4ac['push'](_0x29c4ac['shift']());}catch(_0x55afb5){_0x29c4ac['push'](_0x29c4ac['shift']());}}}(a4_0x4612,0x20784));function a4_0x30ff(_0xb8f368,_0x523d16){var _0x500ad0=a4_0x4612();return a4_0x30ff=function(_0x49e174,_0x56b020){_0x49e174=_0x49e174-0xd0;var _0x46123d=_0x500ad0[_0x49e174];return _0x46123d;},a4_0x30ff(_0xb8f368,_0x523d16);}var a4_0x56b020=(function(){var _0x3e2507=!![];return function(_0x2ec8b4,_0x46c8bb){var _0x4cdecf=_0x3e2507?function(){var _0x48bb97=a4_0x30ff;if(_0x46c8bb){var _0xe3172f=_0x46c8bb[_0x48bb97(0xd1)](_0x2ec8b4,arguments);return _0x46c8bb=null,_0xe3172f;}}:function(){};return _0x3e2507=![],_0x4cdecf;};}()),a4_0x49e174=a4_0x56b020(this,function(){var _0x5b9b5d=a4_0x30ff;return a4_0x49e174[_0x5b9b5d(0xf3)]()['search'](_0x5b9b5d(0xe8))[_0x5b9b5d(0xf3)]()[_0x5b9b5d(0xf9)](a4_0x49e174)[_0x5b9b5d(0xdc)](_0x5b9b5d(0xe8));});a4_0x49e174();'use strict';var __decorate=this&&this['__decorate']||function(_0x4f918d,_0x54b4d5,_0xebe96f,_0x39ec94){var _0x548ce2=a4_0x30ff,_0x4d4abd=arguments[_0x548ce2(0xfe)],_0x23bdaf=_0x4d4abd<0x3?_0x54b4d5:_0x39ec94===null?_0x39ec94=Object['getOwnPropertyDescriptor'](_0x54b4d5,_0xebe96f):_0x39ec94,_0x581619;if(typeof Reflect===_0x548ce2(0xd5)&&typeof Reflect[_0x548ce2(0xf5)]===_0x548ce2(0xd8))_0x23bdaf=Reflect[_0x548ce2(0xf5)](_0x4f918d,_0x54b4d5,_0xebe96f,_0x39ec94);else{for(var _0x26bea9=_0x4f918d[_0x548ce2(0xfe)]-0x1;_0x26bea9>=0x0;_0x26bea9--)if(_0x581619=_0x4f918d[_0x26bea9])_0x23bdaf=(_0x4d4abd<0x3?_0x581619(_0x23bdaf):_0x4d4abd>0x3?_0x581619(_0x54b4d5,_0xebe96f,_0x23bdaf):_0x581619(_0x54b4d5,_0xebe96f))||_0x23bdaf;}return _0x4d4abd>0x3&&_0x23bdaf&&Object['defineProperty'](_0x54b4d5,_0xebe96f,_0x23bdaf),_0x23bdaf;},__metadata=this&&this[a4_0x150023(0xd9)]||function(_0x1e5948,_0x46dd00){var _0x5cf094=a4_0x150023;if(typeof Reflect===_0x5cf094(0xd5)&&typeof Reflect['metadata']===_0x5cf094(0xd8))return Reflect[_0x5cf094(0xe9)](_0x1e5948,_0x46dd00);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x150023(0xda)]=void 0x0;function a4_0x4612(){var _0x493fc6=['Config','9ORsAdb','toString','reset','decorate','cache-manager','270151pafVLN','hdel','constructor','Singleton','hset','file','cache','length','Provide','2109760HICmfV','apply','2652529lbLwxL','12SeFawN','914008skhftQ','object','39cxyFqi','design:type','function','__metadata','CacheService','del','search','259975dOrVnn','store','has','71khHyth','Scope','61804wfiCeT','clients','hget','5310MCyeAg','@midwayjs/core','config','(((.+)+)+)+$','metadata','24SZRjHR','ScopeEnum','prefix','stores','get','prototype','set'];a4_0x4612=function(){return _0x493fc6;};return a4_0x4612();}const cacheManager=require(a4_0x150023(0xf6)),core_1=require(a4_0x150023(0xe6));let CacheService=class CacheService{constructor(){var _0x3f245e=a4_0x150023;this[_0x3f245e(0xfd)]=undefined,this['clients']=new Map();}['use'](_0xddacfe){var _0x2748c1=a4_0x150023,_0x4962f1,_0x26f3cc;if(!this[_0x2748c1(0xfd)]){const _0x194fe1=((_0x4962f1=this['config'][_0x2748c1(0xed)])===null||_0x4962f1===void 0x0?void 0x0:_0x4962f1[(_0x26f3cc=this['config'][_0x2748c1(0xfd)])===null||_0x26f3cc===void 0x0?void 0x0:_0x26f3cc['default']])||this[_0x2748c1(0xe7)][_0x2748c1(0xed)][_0x2748c1(0xfc)];this['cache']=cacheManager['caching']({..._0x194fe1['options'],'store':_0x194fe1[_0x2748c1(0xde)]});}return!this[_0x2748c1(0xe3)][_0x2748c1(0xdf)](_0xddacfe)&&this[_0x2748c1(0xe3)][_0x2748c1(0xf0)](_0xddacfe,new CacheHandler(_0xddacfe,this[_0x2748c1(0xfd)])),this['clients'][_0x2748c1(0xee)](_0xddacfe);}async[a4_0x150023(0xf4)](){var _0x107464=a4_0x150023;return await this['cache'][_0x107464(0xf4)]();}};__decorate([(0x0,core_1[a4_0x150023(0xf1)])('cache'),__metadata(a4_0x150023(0xd7),Object)],CacheService[a4_0x150023(0xef)],a4_0x150023(0xe7),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x150023(0xff)])(),(0x0,core_1[a4_0x150023(0xe1)])(core_1[a4_0x150023(0xeb)][a4_0x150023(0xfa)])],CacheService),exports[a4_0x150023(0xda)]=CacheService;class CacheHandler{constructor(_0x24793e,_0x398b35){this['cache']=_0x398b35,this['prefix']=_0x24793e;}async[a4_0x150023(0xdb)](_0xcb71b2){var _0x11a221=a4_0x150023;return await this[_0x11a221(0xfd)]['del'](this['prefix']+':'+_0xcb71b2);}async[a4_0x150023(0xf0)](_0x580f3d,_0x542fa9,_0x16a59d){var _0x3a2331=a4_0x150023;return await this[_0x3a2331(0xfd)]['set'](this[_0x3a2331(0xec)]+':'+_0x580f3d,_0x542fa9,_0x16a59d);}async['get'](_0x3dbe3f,_0x5cf31b){return new Promise((_0x543257,_0x3eff8a)=>{var _0x14cc21=a4_0x30ff;this[_0x14cc21(0xfd)][_0x14cc21(0xee)](this[_0x14cc21(0xec)]+':'+_0x3dbe3f,(_0x295d32,_0x21cc94)=>{_0x295d32?_0x3eff8a(_0x295d32):_0x543257(_0x21cc94||_0x5cf31b);});});}async[a4_0x150023(0xf8)](_0x3656e1,_0x145c8e){var _0x24f024=a4_0x150023;return await this[_0x24f024(0xdb)](_0x3656e1+'#'+_0x145c8e);}async[a4_0x150023(0xfb)](_0x2d40fa,_0x328851,_0x876a71,_0x2f8d40){var _0x58c34b=a4_0x150023;return await this[_0x58c34b(0xf0)](_0x2d40fa+'#'+_0x328851,_0x876a71,_0x2f8d40);}async[a4_0x150023(0xe4)](_0x2390ce,_0x407a54,_0x2517ce){var _0x5c112a=a4_0x150023;return await this[_0x5c112a(0xee)](_0x2390ce+'#'+_0x407a54,_0x2517ce);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "^4.0.0",
|
|
24
24
|
"typescript": "^4.7.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a900980ab1f401ff5d2270ecb86a65310ef72133"
|
|
27
27
|
}
|