@anncic-api/cache 2.0.4 → 2.0.5

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 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}}}}};};
1
+ const a0_0x1b3194=a0_0x4c8c;function a0_0x5b56(){const _0x28594f=['__esModule','constructor','1654520GQoktg','(((.+)+)+)+$','cache-manager-fs-hash','search','2002124kAOZGh','default','appDir','58320416wdYSob','5667480dNTMlc','/runtime/.cache','name','defineProperty','3760128LGJWpJ','memory','toString','2598uTFXgd','6881oZrcnM','file','4211820uKTgJF'];a0_0x5b56=function(){return _0x28594f;};return a0_0x5b56();}(function(_0x4fcf13,_0x488199){const _0x49427c=a0_0x4c8c,_0x3d910a=_0x4fcf13();while(!![]){try{const _0x538ce4=-parseInt(_0x49427c(0x131))/0x1+-parseInt(_0x49427c(0x128))/0x2+-parseInt(_0x49427c(0x139))/0x3+-parseInt(_0x49427c(0x135))/0x4+-parseInt(_0x49427c(0x12e))/0x5+-parseInt(_0x49427c(0x12b))/0x6*(-parseInt(_0x49427c(0x12c))/0x7)+parseInt(_0x49427c(0x138))/0x8;if(_0x538ce4===_0x488199)break;else _0x3d910a['push'](_0x3d910a['shift']());}catch(_0x4e2a69){_0x3d910a['push'](_0x3d910a['shift']());}}}(a0_0x5b56,0xe7b3c));const a0_0xf4bff9=(function(){let _0x442922=!![];return function(_0x452246,_0x1670a4){const _0x50e7ff=_0x442922?function(){if(_0x1670a4){const _0xb5521b=_0x1670a4['apply'](_0x452246,arguments);return _0x1670a4=null,_0xb5521b;}}:function(){};return _0x442922=![],_0x50e7ff;};}()),a0_0x194384=a0_0xf4bff9(this,function(){const _0xdd2e7d=a0_0x4c8c;return a0_0x194384['toString']()[_0xdd2e7d(0x134)](_0xdd2e7d(0x132))[_0xdd2e7d(0x12a)]()[_0xdd2e7d(0x130)](a0_0x194384)[_0xdd2e7d(0x134)](_0xdd2e7d(0x132));});a0_0x194384();'use strict';Object[a0_0x1b3194(0x127)](exports,a0_0x1b3194(0x12f),{'value':!![]});const fsStore=require(a0_0x1b3194(0x133)),redisStore=require('cache-manager-ioredis');function a0_0x4c8c(_0x431cd9,_0x119917){const _0x3e7216=a0_0x5b56();return a0_0x4c8c=function(_0x194384,_0xf4bff9){_0x194384=_0x194384-0x125;let _0x5b56bb=_0x3e7216[_0x194384];return _0x5b56bb;},a0_0x4c8c(_0x431cd9,_0x119917);}exports[a0_0x1b3194(0x136)]=_0x1111ee=>{const _0x1d3c68=a0_0x1b3194;return{'cache':{'default':_0x1d3c68(0x12d),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x1111ee[_0x1d3c68(0x137)]+_0x1d3c68(0x125)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x1111ee[_0x1d3c68(0x126)]+':'}},'memory':{'store':_0x1d3c68(0x129),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
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;
1
+ function a1_0x2344(_0x1fd9cb,_0x2b2972){var _0x573f58=a1_0x2232();return a1_0x2344=function(_0x14560e,_0x377086){_0x14560e=_0x14560e-0xfc;var _0x223252=_0x573f58[_0x14560e];return _0x223252;},a1_0x2344(_0x1fd9cb,_0x2b2972);}var a1_0x51e321=a1_0x2344;(function(_0x4cd520,_0x4a8c7d){var _0x53eafe=a1_0x2344,_0x119779=_0x4cd520();while(!![]){try{var _0x572a34=-parseInt(_0x53eafe(0xff))/0x1*(-parseInt(_0x53eafe(0xfe))/0x2)+-parseInt(_0x53eafe(0x10a))/0x3*(-parseInt(_0x53eafe(0x102))/0x4)+-parseInt(_0x53eafe(0x10e))/0x5+-parseInt(_0x53eafe(0x105))/0x6*(parseInt(_0x53eafe(0x112))/0x7)+-parseInt(_0x53eafe(0x100))/0x8*(-parseInt(_0x53eafe(0x103))/0x9)+parseInt(_0x53eafe(0x108))/0xa*(-parseInt(_0x53eafe(0xfd))/0xb)+parseInt(_0x53eafe(0x111))/0xc;if(_0x572a34===_0x4a8c7d)break;else _0x119779['push'](_0x119779['shift']());}catch(_0x443ab3){_0x119779['push'](_0x119779['shift']());}}}(a1_0x2232,0x2d82e));var a1_0x377086=(function(){var _0x1e6390=!![];return function(_0x4d61e1,_0x20a206){var _0x2dd3d7=_0x1e6390?function(){var _0x19c41b=a1_0x2344;if(_0x20a206){var _0x39fb43=_0x20a206[_0x19c41b(0x10c)](_0x4d61e1,arguments);return _0x20a206=null,_0x39fb43;}}:function(){};return _0x1e6390=![],_0x2dd3d7;};}()),a1_0x14560e=a1_0x377086(this,function(){var _0x2baaae=a1_0x2344;return a1_0x14560e['toString']()['search'](_0x2baaae(0x10f))[_0x2baaae(0x107)]()['constructor'](a1_0x14560e)[_0x2baaae(0x110)]('(((.+)+)+)+$');});a1_0x14560e();'use strict';var __decorate=this&&this[a1_0x51e321(0x10b)]||function(_0x460d80,_0x2650ac,_0x29b6f0,_0x343628){var _0x4e0f5e=a1_0x51e321,_0x592077=arguments['length'],_0x24df28=_0x592077<0x3?_0x2650ac:_0x343628===null?_0x343628=Object['getOwnPropertyDescriptor'](_0x2650ac,_0x29b6f0):_0x343628,_0x64083e;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x4e0f5e(0x109))_0x24df28=Reflect['decorate'](_0x460d80,_0x2650ac,_0x29b6f0,_0x343628);else{for(var _0x13d7c4=_0x460d80[_0x4e0f5e(0x10d)]-0x1;_0x13d7c4>=0x0;_0x13d7c4--)if(_0x64083e=_0x460d80[_0x13d7c4])_0x24df28=(_0x592077<0x3?_0x64083e(_0x24df28):_0x592077>0x3?_0x64083e(_0x2650ac,_0x29b6f0,_0x24df28):_0x64083e(_0x2650ac,_0x29b6f0))||_0x24df28;}return _0x592077>0x3&&_0x24df28&&Object['defineProperty'](_0x2650ac,_0x29b6f0,_0x24df28),_0x24df28;};Object[a1_0x51e321(0x104)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x51e321(0x101));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x51e321(0x106)])({'conflictCheck':![],'namespace':a1_0x51e321(0xfc),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;function a1_0x2232(){var _0x3df4b3=['96649ULmdFJ','anncic-api:cache','843337mEdQAg','7262SJtHsJ','5PZVTDn','280WezEff','./config/config.default','10388JBQcxq','20511NEGjig','defineProperty','90CLcUQA','Configuration','toString','30UaKHQG','function','276ytwCLD','__decorate','apply','length','218355LJhCmn','(((.+)+)+)+$','search','3964164pKsEwy'];a1_0x2232=function(){return _0x3df4b3;};return a1_0x2232();}
@@ -1 +1 @@
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;
1
+ const a2_0x2abc57=a2_0x544a;(function(_0x3f18bb,_0xaa7d1d){const _0x19b482=a2_0x544a,_0x3bdb0a=_0x3f18bb();while(!![]){try{const _0x26c359=-parseInt(_0x19b482(0x8c))/0x1+-parseInt(_0x19b482(0xa3))/0x2+-parseInt(_0x19b482(0x9f))/0x3*(parseInt(_0x19b482(0xa0))/0x4)+-parseInt(_0x19b482(0x9c))/0x5*(-parseInt(_0x19b482(0xa4))/0x6)+parseInt(_0x19b482(0x90))/0x7+parseInt(_0x19b482(0xa2))/0x8*(parseInt(_0x19b482(0x95))/0x9)+parseInt(_0x19b482(0x9e))/0xa;if(_0x26c359===_0xaa7d1d)break;else _0x3bdb0a['push'](_0x3bdb0a['shift']());}catch(_0x1c03df){_0x3bdb0a['push'](_0x3bdb0a['shift']());}}}(a2_0x1969,0x3b110));const a2_0x311a57=(function(){let _0x25ed8e=!![];return function(_0x227436,_0x271802){const _0x3d5dc2=_0x25ed8e?function(){if(_0x271802){const _0x37cd0a=_0x271802['apply'](_0x227436,arguments);return _0x271802=null,_0x37cd0a;}}:function(){};return _0x25ed8e=![],_0x3d5dc2;};}()),a2_0x20026b=a2_0x311a57(this,function(){const _0x11f56c=a2_0x544a;return a2_0x20026b[_0x11f56c(0x8d)]()[_0x11f56c(0x9d)](_0x11f56c(0x99))[_0x11f56c(0x8d)]()['constructor'](a2_0x20026b)['search']('(((.+)+)+)+$');});a2_0x20026b();'use strict';function a2_0x1969(){const _0x7aec98=['defineProperty','2524004aQcKRJ','stringify','getAsync','__esModule','MD5','346077vXCHGC','value','getApplicationContext','get','(((.+)+)+)+$','Method::Decorator','parse','18470VOvRlz','search','3023200XxRmbK','36MCRIyJ','124924AFDZcs','crypto-js','56FvGydU','652144kAQxSp','456AoeGCD','Cache','use','apply','270027SGGhxM','toString','CacheService'];a2_0x1969=function(){return _0x7aec98;};return a2_0x1969();}Object[a2_0x2abc57(0x8f)](exports,a2_0x2abc57(0x93),{'value':!![]}),exports[a2_0x2abc57(0x89)]=void 0x0;function a2_0x544a(_0x3653f2,_0x40fce6){const _0xee4e72=a2_0x1969();return a2_0x544a=function(_0x20026b,_0x311a57){_0x20026b=_0x20026b-0x89;let _0x196955=_0xee4e72[_0x20026b];return _0x196955;},a2_0x544a(_0x3653f2,_0x40fce6);}const crypto_js_1=require(a2_0x2abc57(0xa1)),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function Cache(_0x4a5435,_0x173e5e){return(_0x598dba,_0x1cd58f,_0x499708)=>{const _0x254fc2=a2_0x544a,_0x1d4c48=_0x499708[_0x254fc2(0x96)];return _0x499708[_0x254fc2(0x96)]=async function(..._0x23d726){const _0x3bf485=_0x254fc2;!_0x4a5435&&(_0x4a5435=(0x0,crypto_js_1[_0x3bf485(0x94)])(JSON['stringify'](_0x23d726))[_0x3bf485(0x8d)]());let _0x5d9007=await this[core_1['REQUEST_OBJ_CTX_KEY']]['app'][_0x3bf485(0x97)]()[_0x3bf485(0x92)](CacheService_1[_0x3bf485(0x8e)]),_0x49047f=await _0x5d9007[_0x3bf485(0x8a)](_0x3bf485(0x9a))[_0x3bf485(0x98)](_0x4a5435);if(_0x49047f)return JSON[_0x3bf485(0x9b)](_0x49047f);else _0x49047f=await _0x1d4c48[_0x3bf485(0x8b)](this,[..._0x23d726]),await _0x5d9007[_0x3bf485(0x8a)](_0x3bf485(0x9a))['set'](_0x4a5435,JSON[_0x3bf485(0x91)](_0x49047f),_0x173e5e);return _0x49047f;},_0x499708;};}exports['Cache']=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
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
+ var a3_0x801bad=a3_0x3bb6;(function(_0x11d7f0,_0x1060a5){var _0xbbce1=a3_0x3bb6,_0x51f066=_0x11d7f0();while(!![]){try{var _0xea9812=parseInt(_0xbbce1(0xef))/0x1+-parseInt(_0xbbce1(0xea))/0x2+-parseInt(_0xbbce1(0xed))/0x3+parseInt(_0xbbce1(0xf1))/0x4*(-parseInt(_0xbbce1(0xe0))/0x5)+parseInt(_0xbbce1(0xe1))/0x6+parseInt(_0xbbce1(0xf5))/0x7*(parseInt(_0xbbce1(0xe2))/0x8)+parseInt(_0xbbce1(0xe4))/0x9*(parseInt(_0xbbce1(0xf0))/0xa);if(_0xea9812===_0x1060a5)break;else _0x51f066['push'](_0x51f066['shift']());}catch(_0x40b7fd){_0x51f066['push'](_0x51f066['shift']());}}}(a3_0x38bb,0x396a1));var a3_0x3f704d=(function(){var _0x98e93=!![];return function(_0x87fee5,_0x36e959){var _0x5dff76=_0x98e93?function(){var _0x4cd6aa=a3_0x3bb6;if(_0x36e959){var _0x126613=_0x36e959[_0x4cd6aa(0xf3)](_0x87fee5,arguments);return _0x36e959=null,_0x126613;}}:function(){};return _0x98e93=![],_0x5dff76;};}()),a3_0x1395f1=a3_0x3f704d(this,function(){var _0xf33f3=a3_0x3bb6;return a3_0x1395f1[_0xf33f3(0xee)]()['search'](_0xf33f3(0xe5))[_0xf33f3(0xee)]()['constructor'](a3_0x1395f1)[_0xf33f3(0xe7)](_0xf33f3(0xe5));});function a3_0x3bb6(_0x2c3ab2,_0x49b194){var _0x534b46=a3_0x38bb();return a3_0x3bb6=function(_0x1395f1,_0x3f704d){_0x1395f1=_0x1395f1-0xe0;var _0x38bb79=_0x534b46[_0x1395f1];return _0x38bb79;},a3_0x3bb6(_0x2c3ab2,_0x49b194);}a3_0x1395f1();function a3_0x38bb(){var _0x792a06=['223212vVGZhM','2260FBQPoo','332428XXDCaS','__esModule','apply','defineProperty','637jENomU','15Bxistq','1507254VfQsSs','4648YsIxfV','CustomConfiguration','34569QJsjQD','(((.+)+)+)+$','./service/CacheService','search','Cache','./decorator/Cache','901724RpNocp','Configuration','CacheService','1380018LtuDLV','toString'];a3_0x38bb=function(){return _0x792a06;};return a3_0x38bb();}'use strict';Object[a3_0x801bad(0xf4)](exports,a3_0x801bad(0xf2),{'value':!![]}),exports['CacheService']=exports[a3_0x801bad(0xe8)]=exports['Configuration']=void 0x0;var configuration_1=require('./configuration');Object[a3_0x801bad(0xf4)](exports,a3_0x801bad(0xeb),{'enumerable':!![],'get':function(){var _0x4168ac=a3_0x801bad;return configuration_1[_0x4168ac(0xe3)];}});var Cache_1=require(a3_0x801bad(0xe9));Object[a3_0x801bad(0xf4)](exports,a3_0x801bad(0xe8),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x801bad(0xe6));Object['defineProperty'](exports,a3_0x801bad(0xec),{'enumerable':!![],'get':function(){var _0x284bec=a3_0x801bad;return CacheService_1[_0x284bec(0xec)];}});
@@ -1 +1 @@
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);}}
1
+ var a4_0x2b5e66=a4_0x1bd6;(function(_0x3d51d2,_0x5a9024){var _0x128eaf=a4_0x1bd6,_0x482ba6=_0x3d51d2();while(!![]){try{var _0x502787=-parseInt(_0x128eaf(0x1e1))/0x1+parseInt(_0x128eaf(0x1c9))/0x2*(-parseInt(_0x128eaf(0x1e9))/0x3)+-parseInt(_0x128eaf(0x1f2))/0x4*(-parseInt(_0x128eaf(0x1c6))/0x5)+-parseInt(_0x128eaf(0x1e3))/0x6*(parseInt(_0x128eaf(0x1cb))/0x7)+-parseInt(_0x128eaf(0x1e7))/0x8*(parseInt(_0x128eaf(0x1ed))/0x9)+parseInt(_0x128eaf(0x1d0))/0xa*(-parseInt(_0x128eaf(0x1ec))/0xb)+-parseInt(_0x128eaf(0x1f5))/0xc*(-parseInt(_0x128eaf(0x1df))/0xd);if(_0x502787===_0x5a9024)break;else _0x482ba6['push'](_0x482ba6['shift']());}catch(_0x118b2b){_0x482ba6['push'](_0x482ba6['shift']());}}}(a4_0x2bb0,0x3127f));var a4_0x28697f=(function(){var _0x12563e=!![];return function(_0x56a1e0,_0x53efb7){var _0x188b65=_0x12563e?function(){var _0x4b8ab2=a4_0x1bd6;if(_0x53efb7){var _0x521473=_0x53efb7[_0x4b8ab2(0x1ce)](_0x56a1e0,arguments);return _0x53efb7=null,_0x521473;}}:function(){};return _0x12563e=![],_0x188b65;};}()),a4_0x227f1f=a4_0x28697f(this,function(){var _0x3d1674=a4_0x1bd6;return a4_0x227f1f[_0x3d1674(0x1ca)]()[_0x3d1674(0x1e8)]('(((.+)+)+)+$')['toString']()[_0x3d1674(0x1ee)](a4_0x227f1f)[_0x3d1674(0x1e8)]('(((.+)+)+)+$');});a4_0x227f1f();'use strict';var __decorate=this&&this[a4_0x2b5e66(0x1ea)]||function(_0x52bccd,_0x2226b8,_0x3ccb5f,_0x4fb27e){var _0x35ffdb=a4_0x2b5e66,_0x4ed4ed=arguments[_0x35ffdb(0x1f1)],_0x530c56=_0x4ed4ed<0x3?_0x2226b8:_0x4fb27e===null?_0x4fb27e=Object[_0x35ffdb(0x1d3)](_0x2226b8,_0x3ccb5f):_0x4fb27e,_0x636410;if(typeof Reflect==='object'&&typeof Reflect[_0x35ffdb(0x1c8)]===_0x35ffdb(0x1f8))_0x530c56=Reflect[_0x35ffdb(0x1c8)](_0x52bccd,_0x2226b8,_0x3ccb5f,_0x4fb27e);else{for(var _0x3d07fd=_0x52bccd['length']-0x1;_0x3d07fd>=0x0;_0x3d07fd--)if(_0x636410=_0x52bccd[_0x3d07fd])_0x530c56=(_0x4ed4ed<0x3?_0x636410(_0x530c56):_0x4ed4ed>0x3?_0x636410(_0x2226b8,_0x3ccb5f,_0x530c56):_0x636410(_0x2226b8,_0x3ccb5f))||_0x530c56;}return _0x4ed4ed>0x3&&_0x530c56&&Object[_0x35ffdb(0x1de)](_0x2226b8,_0x3ccb5f,_0x530c56),_0x530c56;},__metadata=this&&this[a4_0x2b5e66(0x1d7)]||function(_0x28233d,_0x4e2e6b){var _0x3cc972=a4_0x2b5e66;if(typeof Reflect===_0x3cc972(0x1e0)&&typeof Reflect[_0x3cc972(0x1d8)]===_0x3cc972(0x1f8))return Reflect['metadata'](_0x28233d,_0x4e2e6b);};function a4_0x2bb0(){var _0x4a7430=['216YtLGDR','constructor','clients','prefix','length','593536cpyJUL','design:type','has','19812zgsEpd','store','reset','function','config','5QUSxSY','__esModule','decorate','372104RYyUUA','toString','1285109MCsGpk','hset','Scope','apply','@midwayjs/core','4180HuHfiq','CacheService','stores','getOwnPropertyDescriptor','hdel','file','set','__metadata','metadata','hget','prototype','default','use','cache','defineProperty','4849LddmBT','object','50171cVXdRH','Config','6nsGjcB','get','Singleton','del','42808jBqRzF','search','3cPEQhw','__decorate','caching','385FVWwNS'];a4_0x2bb0=function(){return _0x4a7430;};return a4_0x2bb0();}function a4_0x1bd6(_0x105787,_0x880b7c){var _0x180c35=a4_0x2bb0();return a4_0x1bd6=function(_0x227f1f,_0x28697f){_0x227f1f=_0x227f1f-0x1c5;var _0x2bb0d7=_0x180c35[_0x227f1f];return _0x2bb0d7;},a4_0x1bd6(_0x105787,_0x880b7c);}Object['defineProperty'](exports,a4_0x2b5e66(0x1c7),{'value':!![]}),exports[a4_0x2b5e66(0x1d1)]=void 0x0;const cacheManager=require('cache-manager'),core_1=require(a4_0x2b5e66(0x1cf));let CacheService=class CacheService{constructor(){var _0x122140=a4_0x2b5e66;this[_0x122140(0x1dd)]=undefined,this[_0x122140(0x1ef)]=new Map();}[a4_0x2b5e66(0x1dc)](_0x3ad3ba){var _0x37a163=a4_0x2b5e66,_0xa95227,_0x398ad5;if(!this[_0x37a163(0x1dd)]){const _0xc0b5cd=((_0xa95227=this[_0x37a163(0x1c5)][_0x37a163(0x1d2)])===null||_0xa95227===void 0x0?void 0x0:_0xa95227[(_0x398ad5=this['config']['cache'])===null||_0x398ad5===void 0x0?void 0x0:_0x398ad5[_0x37a163(0x1db)]])||this['config']['stores'][_0x37a163(0x1d5)];this[_0x37a163(0x1dd)]=cacheManager[_0x37a163(0x1eb)]({..._0xc0b5cd['options'],'store':_0xc0b5cd[_0x37a163(0x1f6)]});}return!this[_0x37a163(0x1ef)][_0x37a163(0x1f4)](_0x3ad3ba)&&this[_0x37a163(0x1ef)][_0x37a163(0x1d6)](_0x3ad3ba,new CacheHandler(_0x3ad3ba,this[_0x37a163(0x1dd)])),this[_0x37a163(0x1ef)][_0x37a163(0x1e4)](_0x3ad3ba);}async[a4_0x2b5e66(0x1f7)](){var _0x5c7937=a4_0x2b5e66;return await this[_0x5c7937(0x1dd)][_0x5c7937(0x1f7)]();}};__decorate([(0x0,core_1[a4_0x2b5e66(0x1e2)])(a4_0x2b5e66(0x1dd)),__metadata(a4_0x2b5e66(0x1f3),Object)],CacheService[a4_0x2b5e66(0x1da)],a4_0x2b5e66(0x1c5),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x2b5e66(0x1cd)])(core_1['ScopeEnum'][a4_0x2b5e66(0x1e5)])],CacheService),exports[a4_0x2b5e66(0x1d1)]=CacheService;class CacheHandler{constructor(_0x3fc791,_0x3e18b7){var _0x400458=a4_0x2b5e66;this[_0x400458(0x1dd)]=_0x3e18b7,this['prefix']=_0x3fc791;}async[a4_0x2b5e66(0x1e6)](_0x4312d0){var _0x5995cb=a4_0x2b5e66;return await this[_0x5995cb(0x1dd)][_0x5995cb(0x1e6)](this['prefix']+':'+_0x4312d0);}async['set'](_0xb4f0ae,_0x8249e2,_0x39faff){var _0x4f6734=a4_0x2b5e66;return await this[_0x4f6734(0x1dd)]['set'](this['prefix']+':'+_0xb4f0ae,_0x8249e2,_0x39faff);}async['get'](_0x13b072,_0xce0774){return new Promise((_0x2de630,_0x47bc05)=>{var _0x4b0717=a4_0x1bd6;this[_0x4b0717(0x1dd)]['get'](this[_0x4b0717(0x1f0)]+':'+_0x13b072,(_0x1c4657,_0x35b8ef)=>{_0x1c4657?_0x47bc05(_0x1c4657):_0x2de630(_0x35b8ef||_0xce0774);});});}async[a4_0x2b5e66(0x1d4)](_0x57965c,_0x4b6459){var _0x38012e=a4_0x2b5e66;return await this[_0x38012e(0x1e6)](_0x57965c+'#'+_0x4b6459);}async[a4_0x2b5e66(0x1cc)](_0x3b09ed,_0xee01b0,_0x379efa,_0x1c7722){var _0x13fdfb=a4_0x2b5e66;return await this[_0x13fdfb(0x1d6)](_0x3b09ed+'#'+_0xee01b0,_0x379efa,_0x1c7722);}async[a4_0x2b5e66(0x1d9)](_0x5ae91d,_0x26f18b,_0x4696bd){var _0x42d1ef=a4_0x2b5e66;return await this[_0x42d1ef(0x1e4)](_0x5ae91d+'#'+_0x26f18b,_0x4696bd);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
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": "a900980ab1f401ff5d2270ecb86a65310ef72133"
26
+ "gitHead": "dfc34320998496c4c14ba99dfb8dcd76abbc4eda"
27
27
  }