@anncic-api/cache 1.1.39 → 1.1.40

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
- 'use strict';const a0_0x52c657=a0_0x2512;(function(_0x3b1e12,_0x35acae){const _0x1520f7=a0_0x2512,_0x5c6e72=_0x3b1e12();while(!![]){try{const _0x3ee672=-parseInt(_0x1520f7(0x129))/0x1+parseInt(_0x1520f7(0x125))/0x2+-parseInt(_0x1520f7(0x123))/0x3+-parseInt(_0x1520f7(0x11c))/0x4*(parseInt(_0x1520f7(0x11d))/0x5)+parseInt(_0x1520f7(0x11b))/0x6+parseInt(_0x1520f7(0x11f))/0x7*(parseInt(_0x1520f7(0x120))/0x8)+parseInt(_0x1520f7(0x11e))/0x9;if(_0x3ee672===_0x35acae)break;else _0x5c6e72['push'](_0x5c6e72['shift']());}catch(_0x380824){_0x5c6e72['push'](_0x5c6e72['shift']());}}}(a0_0x37c3,0x893e7));function a0_0x2512(_0x1ada91,_0x345292){const _0x37c353=a0_0x37c3();return a0_0x2512=function(_0x25126a,_0xf36416){_0x25126a=_0x25126a-0x119;let _0x1e63e5=_0x37c353[_0x25126a];return _0x1e63e5;},a0_0x2512(_0x1ada91,_0x345292);}Object[a0_0x52c657(0x127)](exports,a0_0x52c657(0x12a),{'value':!![]});const fsStore=require(a0_0x52c657(0x122)),redisStore=require(a0_0x52c657(0x11a));exports[a0_0x52c657(0x121)]=_0x196743=>{const _0x54b6c4=a0_0x52c657;return{'cache':{'default':_0x54b6c4(0x124),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x196743['appDir']+_0x54b6c4(0x126)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x54b6c4(0x128),'password':'','ttl':0x1e13380,'keyPrefix':_0x196743[_0x54b6c4(0x119)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x37c3(){const _0x1d77a1=['735650stnHpz','10049418lWwesP','126mJXJgh','198480mnnNtL','default','cache-manager-fs-hash','1030956DbRwfy','file','324090PFRGKz','/runtime/.cache','defineProperty','127.0.0.1','694355pFzllh','__esModule','name','cache-manager-ioredis','132366adkcrU','4HMTBAg'];a0_0x37c3=function(){return _0x1d77a1;};return a0_0x37c3();}
1
+ 'use strict';const a0_0x5e72f8=a0_0x5ec9;function a0_0x3b82(){const _0x9b40b9=['__esModule','9658121mTAutX','1680230Nxifod','12355otShqQ','2018304SXaebC','127.0.0.1','/runtime/.cache','1452aRPyZN','1012875TyvSSz','502QbvPRE','12mFZFiQ','27qRdwnR','memory','3260cLOqDK','name','default','3296mEuwkD','2500IEafqu','file','cache-manager-ioredis','defineProperty'];a0_0x3b82=function(){return _0x9b40b9;};return a0_0x3b82();}(function(_0xc35562,_0x2e2498){const _0x487e4c=a0_0x5ec9,_0x355cde=_0xc35562();while(!![]){try{const _0x5d3536=parseInt(_0x487e4c(0x201))/0x1+parseInt(_0x487e4c(0x202))/0x2*(-parseInt(_0x487e4c(0x200))/0x3)+parseInt(_0x487e4c(0x206))/0x4*(parseInt(_0x487e4c(0x1f5))/0x5)+-parseInt(_0x487e4c(0x1fd))/0x6+parseInt(_0x487e4c(0x1fc))/0x7*(-parseInt(_0x487e4c(0x1f4))/0x8)+parseInt(_0x487e4c(0x204))/0x9*(-parseInt(_0x487e4c(0x1fb))/0xa)+-parseInt(_0x487e4c(0x1fa))/0xb*(-parseInt(_0x487e4c(0x203))/0xc);if(_0x5d3536===_0x2e2498)break;else _0x355cde['push'](_0x355cde['shift']());}catch(_0x4e783b){_0x355cde['push'](_0x355cde['shift']());}}}(a0_0x3b82,0x94bf5));Object[a0_0x5e72f8(0x1f8)](exports,a0_0x5e72f8(0x1f9),{'value':!![]});function a0_0x5ec9(_0x154166,_0x32453c){const _0x3b82cd=a0_0x3b82();return a0_0x5ec9=function(_0x5ec977,_0x426719){_0x5ec977=_0x5ec977-0x1f4;let _0x2aaf20=_0x3b82cd[_0x5ec977];return _0x2aaf20;},a0_0x5ec9(_0x154166,_0x32453c);}const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x5e72f8(0x1f7));exports[a0_0x5e72f8(0x208)]=_0x3f1ec9=>{const _0x5a6038=a0_0x5e72f8;return{'cache':{'default':_0x5a6038(0x1f6),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x3f1ec9['appDir']+_0x5a6038(0x1ff)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x5a6038(0x1fe),'password':'','ttl':0x1e13380,'keyPrefix':_0x3f1ec9[_0x5a6038(0x207)]+':'}},'memory':{'store':_0x5a6038(0x205),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';var a1_0xd9da4a=a1_0x2d05;(function(_0x11564d,_0x5d8b7d){var _0x22daec=a1_0x2d05,_0x4821a7=_0x11564d();while(!![]){try{var _0x2c76b3=-parseInt(_0x22daec(0x18b))/0x1*(parseInt(_0x22daec(0x187))/0x2)+-parseInt(_0x22daec(0x17d))/0x3+parseInt(_0x22daec(0x191))/0x4*(parseInt(_0x22daec(0x192))/0x5)+-parseInt(_0x22daec(0x180))/0x6*(-parseInt(_0x22daec(0x185))/0x7)+-parseInt(_0x22daec(0x181))/0x8*(parseInt(_0x22daec(0x17e))/0x9)+-parseInt(_0x22daec(0x188))/0xa+-parseInt(_0x22daec(0x18c))/0xb*(-parseInt(_0x22daec(0x182))/0xc);if(_0x2c76b3===_0x5d8b7d)break;else _0x4821a7['push'](_0x4821a7['shift']());}catch(_0x364f06){_0x4821a7['push'](_0x4821a7['shift']());}}}(a1_0x3782,0x45996));function a1_0x2d05(_0x198a3b,_0x1abc92){var _0x37826c=a1_0x3782();return a1_0x2d05=function(_0x2d05f7,_0xc738ee){_0x2d05f7=_0x2d05f7-0x17c;var _0x8993f8=_0x37826c[_0x2d05f7];return _0x8993f8;},a1_0x2d05(_0x198a3b,_0x1abc92);}var __decorate=this&&this[a1_0xd9da4a(0x189)]||function(_0x29199e,_0xa32ef8,_0x50099b,_0x24050c){var _0x539f79=a1_0xd9da4a,_0x44d9a2=arguments[_0x539f79(0x184)],_0x115aed=_0x44d9a2<0x3?_0xa32ef8:_0x24050c===null?_0x24050c=Object[_0x539f79(0x186)](_0xa32ef8,_0x50099b):_0x24050c,_0x5e5881;if(typeof Reflect===_0x539f79(0x18d)&&typeof Reflect[_0x539f79(0x17f)]===_0x539f79(0x18f))_0x115aed=Reflect[_0x539f79(0x17f)](_0x29199e,_0xa32ef8,_0x50099b,_0x24050c);else{for(var _0x11a3b9=_0x29199e[_0x539f79(0x184)]-0x1;_0x11a3b9>=0x0;_0x11a3b9--)if(_0x5e5881=_0x29199e[_0x11a3b9])_0x115aed=(_0x44d9a2<0x3?_0x5e5881(_0x115aed):_0x44d9a2>0x3?_0x5e5881(_0xa32ef8,_0x50099b,_0x115aed):_0x5e5881(_0xa32ef8,_0x50099b))||_0x115aed;}return _0x44d9a2>0x3&&_0x115aed&&Object[_0x539f79(0x18e)](_0xa32ef8,_0x50099b,_0x115aed),_0x115aed;};Object[a1_0xd9da4a(0x18e)](exports,'__esModule',{'value':!![]}),exports[a1_0xd9da4a(0x17c)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require(a1_0xd9da4a(0x18a));let CustomConfiguration=class CustomConfiguration{};function a1_0x3782(){var _0x2a43fd=['12ApKTIm','215128MnLLpA','15985044NnUDnx','anncic-api:cache','length','845439FtPpoK','getOwnPropertyDescriptor','1042ObJUUH','5232360ICLnJR','__decorate','./config/config.default','943wfOvzI','11WpuLti','object','defineProperty','function','Configuration','1077880voTSJO','5EDjiuZ','CustomConfiguration','501060ZTbDzA','126dztMlK','decorate'];a1_0x3782=function(){return _0x2a43fd;};return a1_0x3782();}CustomConfiguration=__decorate([(0x0,decorator_1[a1_0xd9da4a(0x190)])({'conflictCheck':![],'namespace':a1_0xd9da4a(0x183),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0xd9da4a(0x17c)]=CustomConfiguration;
1
+ 'use strict';function a1_0x34db(_0x3fbabb,_0x230bcc){var _0x434645=a1_0x4346();return a1_0x34db=function(_0x34db7d,_0x265a76){_0x34db7d=_0x34db7d-0x15d;var _0x6b5b30=_0x434645[_0x34db7d];return _0x6b5b30;},a1_0x34db(_0x3fbabb,_0x230bcc);}var a1_0x59475d=a1_0x34db;(function(_0x496f02,_0x555b35){var _0x4071d9=a1_0x34db,_0x3f9c49=_0x496f02();while(!![]){try{var _0x2a5ecd=parseInt(_0x4071d9(0x16a))/0x1+parseInt(_0x4071d9(0x15e))/0x2+-parseInt(_0x4071d9(0x164))/0x3+parseInt(_0x4071d9(0x161))/0x4+parseInt(_0x4071d9(0x15d))/0x5+parseInt(_0x4071d9(0x162))/0x6+-parseInt(_0x4071d9(0x169))/0x7;if(_0x2a5ecd===_0x555b35)break;else _0x3f9c49['push'](_0x3f9c49['shift']());}catch(_0x55cbdd){_0x3f9c49['push'](_0x3f9c49['shift']());}}}(a1_0x4346,0x7e7e4));var __decorate=this&&this[a1_0x59475d(0x163)]||function(_0xd20006,_0x331c12,_0x21493d,_0x46e071){var _0x163dd2=a1_0x59475d,_0x2d3446=arguments['length'],_0x2bdd36=_0x2d3446<0x3?_0x331c12:_0x46e071===null?_0x46e071=Object[_0x163dd2(0x16c)](_0x331c12,_0x21493d):_0x46e071,_0x271e7c;if(typeof Reflect===_0x163dd2(0x16e)&&typeof Reflect['decorate']===_0x163dd2(0x15f))_0x2bdd36=Reflect[_0x163dd2(0x165)](_0xd20006,_0x331c12,_0x21493d,_0x46e071);else{for(var _0x4f31c3=_0xd20006[_0x163dd2(0x160)]-0x1;_0x4f31c3>=0x0;_0x4f31c3--)if(_0x271e7c=_0xd20006[_0x4f31c3])_0x2bdd36=(_0x2d3446<0x3?_0x271e7c(_0x2bdd36):_0x2d3446>0x3?_0x271e7c(_0x331c12,_0x21493d,_0x2bdd36):_0x271e7c(_0x331c12,_0x21493d))||_0x2bdd36;}return _0x2d3446>0x3&&_0x2bdd36&&Object[_0x163dd2(0x170)](_0x331c12,_0x21493d,_0x2bdd36),_0x2bdd36;};Object[a1_0x59475d(0x170)](exports,a1_0x59475d(0x16b),{'value':!![]}),exports[a1_0x59475d(0x16f)]=void 0x0;function a1_0x4346(){var _0x2219f0=['Configuration','@midwayjs/decorator','anncic-api:cache','8547812FxDoBl','22296ZRzKrS','__esModule','getOwnPropertyDescriptor','./config/config.default','object','CustomConfiguration','defineProperty','3030815WrGpbn','629088xUSWgG','function','length','2695992DJjYWh','5475948WCIEku','__decorate','2371281uktGbK','decorate'];a1_0x4346=function(){return _0x2219f0;};return a1_0x4346();}const decorator_1=require(a1_0x59475d(0x167)),ConfigDefault=require(a1_0x59475d(0x16d));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x59475d(0x166)])({'conflictCheck':![],'namespace':a1_0x59475d(0x168),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x5dd16b=a2_0x10af;function a2_0x10af(_0x582747,_0x2b2c44){const _0xaf4a46=a2_0xaf4a();return a2_0x10af=function(_0x10af2c,_0xd999a4){_0x10af2c=_0x10af2c-0x13c;let _0x5deafb=_0xaf4a46[_0x10af2c];return _0x5deafb;},a2_0x10af(_0x582747,_0x2b2c44);}(function(_0x52b3ff,_0xbc4c1d){const _0x261251=a2_0x10af,_0x2a0178=_0x52b3ff();while(!![]){try{const _0x4070e5=parseInt(_0x261251(0x143))/0x1*(parseInt(_0x261251(0x145))/0x2)+-parseInt(_0x261251(0x151))/0x3*(-parseInt(_0x261251(0x147))/0x4)+parseInt(_0x261251(0x153))/0x5*(-parseInt(_0x261251(0x155))/0x6)+-parseInt(_0x261251(0x14b))/0x7+parseInt(_0x261251(0x149))/0x8+parseInt(_0x261251(0x13d))/0x9*(-parseInt(_0x261251(0x14d))/0xa)+-parseInt(_0x261251(0x150))/0xb;if(_0x4070e5===_0xbc4c1d)break;else _0x2a0178['push'](_0x2a0178['shift']());}catch(_0x3ed842){_0x2a0178['push'](_0x2a0178['shift']());}}}(a2_0xaf4a,0xd103a));Object[a2_0x5dd16b(0x14f)](exports,a2_0x5dd16b(0x14c),{'value':!![]}),exports[a2_0x5dd16b(0x141)]=void 0x0;function a2_0xaf4a(){const _0xa1a6f9=['MethodDecorator','app','../service/CacheService','453285JyruKs','REQUEST_OBJ_CTX_KEY','crypto-js','@midwayjs/core','Cache','get','83AawAOB','use','36022RaeJXR','apply','25204TpWGGW','getApplicationContext','13313816csawCU','MD5','2269267FXerTv','__esModule','90YBCtzx','value','defineProperty','6740470rhPUZM','63GzsuKT','getAsync','5UpoTRG','stringify','6270618jXSvIJ','set','CacheService'];a2_0xaf4a=function(){return _0xa1a6f9;};return a2_0xaf4a();}const crypto_js_1=require(a2_0x5dd16b(0x13f)),CacheService_1=require(a2_0x5dd16b(0x13c)),core_1=require(a2_0x5dd16b(0x140));function Cache(_0x5402fd,_0x5efa60){return(_0x2fcbea,_0x2ffd64,_0x1a4e49)=>{const _0x7d7136=a2_0x10af,_0x2c8bf4=_0x1a4e49[_0x7d7136(0x14e)];return _0x1a4e49[_0x7d7136(0x14e)]=async function(..._0x3125c9){const _0x17cf54=_0x7d7136;!_0x5402fd&&(_0x5402fd=(0x0,crypto_js_1[_0x17cf54(0x14a)])(JSON[_0x17cf54(0x154)](_0x3125c9))['toString']());let _0x2d07ab=await this[core_1[_0x17cf54(0x13e)]][_0x17cf54(0x159)][_0x17cf54(0x148)]()[_0x17cf54(0x152)](CacheService_1[_0x17cf54(0x157)]),_0x558920=await _0x2d07ab[_0x17cf54(0x144)](_0x17cf54(0x158))[_0x17cf54(0x142)](_0x5402fd);if(_0x558920)return JSON['parse'](_0x558920);else _0x558920=await _0x2c8bf4[_0x17cf54(0x146)](this,[..._0x3125c9]),await _0x2d07ab['use']('MethodDecorator')[_0x17cf54(0x156)](_0x5402fd,JSON['stringify'](_0x558920),_0x5efa60);return _0x558920;},_0x1a4e49;};}exports[a2_0x5dd16b(0x141)]=Cache;
1
+ 'use strict';function a2_0x2d8e(){const _0x3eb52c=['@midwayjs/core','parse','333462PIkzIH','4aDTgkU','Cache','crypto-js','REQUEST_OBJ_CTX_KEY','6846MzTpJC','2073905yqmqFo','24buLsKy','get','MD5','../service/CacheService','CacheService','MethodDecorator','2807QxZvQa','440295kEkWrn','516627oVhRfo','1078962HBHnGM','1620mCnDiB','toString','use','value','105314LhWNXE'];a2_0x2d8e=function(){return _0x3eb52c;};return a2_0x2d8e();}const a2_0x3fa55c=a2_0x1ffb;(function(_0x36a4e2,_0x42bfed){const _0x267e72=a2_0x1ffb,_0x48e3ab=_0x36a4e2();while(!![]){try{const _0x1f5bea=parseInt(_0x267e72(0xa7))/0x1+-parseInt(_0x267e72(0xb1))/0x2+parseInt(_0x267e72(0xa9))/0x3*(-parseInt(_0x267e72(0xb2))/0x4)+-parseInt(_0x267e72(0xb7))/0x5+-parseInt(_0x267e72(0xb6))/0x6*(parseInt(_0x267e72(0xa6))/0x7)+parseInt(_0x267e72(0xb8))/0x8*(-parseInt(_0x267e72(0xa8))/0x9)+-parseInt(_0x267e72(0xaa))/0xa*(-parseInt(_0x267e72(0xae))/0xb);if(_0x1f5bea===_0x42bfed)break;else _0x48e3ab['push'](_0x48e3ab['shift']());}catch(_0x37b953){_0x48e3ab['push'](_0x48e3ab['shift']());}}}(a2_0x2d8e,0x66a0f));function a2_0x1ffb(_0x36b1d2,_0x297593){const _0x2d8edd=a2_0x2d8e();return a2_0x1ffb=function(_0x1ffb8a,_0x39d266){_0x1ffb8a=_0x1ffb8a-0xa2;let _0x492907=_0x2d8edd[_0x1ffb8a];return _0x492907;},a2_0x1ffb(_0x36b1d2,_0x297593);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x3fa55c(0xb4)),CacheService_1=require(a2_0x3fa55c(0xa3)),core_1=require(a2_0x3fa55c(0xaf));function Cache(_0x1e704b,_0xf21319){return(_0x2eceb3,_0x13cc30,_0x83bf13)=>{const _0x565645=a2_0x1ffb,_0x4b6b27=_0x83bf13[_0x565645(0xad)];return _0x83bf13[_0x565645(0xad)]=async function(..._0xa1c2ab){const _0x36ad1d=_0x565645;!_0x1e704b&&(_0x1e704b=(0x0,crypto_js_1[_0x36ad1d(0xa2)])(JSON['stringify'](_0xa1c2ab))[_0x36ad1d(0xab)]());let _0x123d6c=await this[core_1[_0x36ad1d(0xb5)]]['app']['getApplicationContext']()['getAsync'](CacheService_1[_0x36ad1d(0xa4)]),_0x5a6097=await _0x123d6c[_0x36ad1d(0xac)](_0x36ad1d(0xa5))[_0x36ad1d(0xb9)](_0x1e704b);if(_0x5a6097)return JSON[_0x36ad1d(0xb0)](_0x5a6097);else _0x5a6097=await _0x4b6b27['apply'](this,[..._0xa1c2ab]),await _0x123d6c[_0x36ad1d(0xac)](_0x36ad1d(0xa5))['set'](_0x1e704b,JSON['stringify'](_0x5a6097),_0xf21319);return _0x5a6097;},_0x83bf13;};}exports[a2_0x3fa55c(0xb3)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0xae5530=a3_0x4c66;(function(_0x2752ad,_0x3b2934){var _0xc993f7=a3_0x4c66,_0x19cf91=_0x2752ad();while(!![]){try{var _0xf21f91=parseInt(_0xc993f7(0xd8))/0x1*(parseInt(_0xc993f7(0xd3))/0x2)+-parseInt(_0xc993f7(0xd9))/0x3+parseInt(_0xc993f7(0xdb))/0x4*(-parseInt(_0xc993f7(0xda))/0x5)+parseInt(_0xc993f7(0xe0))/0x6+parseInt(_0xc993f7(0xdd))/0x7*(-parseInt(_0xc993f7(0xd1))/0x8)+parseInt(_0xc993f7(0xd2))/0x9*(-parseInt(_0xc993f7(0xe1))/0xa)+parseInt(_0xc993f7(0xd6))/0xb;if(_0xf21f91===_0x3b2934)break;else _0x19cf91['push'](_0x19cf91['shift']());}catch(_0x2c376a){_0x19cf91['push'](_0x19cf91['shift']());}}}(a3_0x5092,0x4f72c));function a3_0x5092(){var _0x3c6ee8=['Configuration','146573zFehXb','defineProperty','Cache','1652874UbLktg','2427730mRHuPY','__esModule','./configuration','104MFMTPa','9kakYtF','2LCyRGF','./decorator/Cache','CacheService','11663410LehCiN','CustomConfiguration','554937SxRvIU','1450059DfbUZm','34155rhcKyD','332WqAEsH'];a3_0x5092=function(){return _0x3c6ee8;};return a3_0x5092();}Object['defineProperty'](exports,a3_0xae5530(0xe2),{'value':!![]}),exports[a3_0xae5530(0xd5)]=exports[a3_0xae5530(0xdf)]=exports[a3_0xae5530(0xdc)]=void 0x0;function a3_0x4c66(_0x1f8cff,_0x497e67){var _0x50926c=a3_0x5092();return a3_0x4c66=function(_0x4c66b8,_0x5880b8){_0x4c66b8=_0x4c66b8-0xd0;var _0x4d6a3e=_0x50926c[_0x4c66b8];return _0x4d6a3e;},a3_0x4c66(_0x1f8cff,_0x497e67);}var configuration_1=require(a3_0xae5530(0xd0));Object[a3_0xae5530(0xde)](exports,a3_0xae5530(0xdc),{'enumerable':!![],'get':function(){var _0x20e2c9=a3_0xae5530;return configuration_1[_0x20e2c9(0xd7)];}});var Cache_1=require(a3_0xae5530(0xd4));Object[a3_0xae5530(0xde)](exports,a3_0xae5530(0xdf),{'enumerable':!![],'get':function(){var _0x37dfbe=a3_0xae5530;return Cache_1[_0x37dfbe(0xdf)];}});var CacheService_1=require('./service/CacheService');Object[a3_0xae5530(0xde)](exports,a3_0xae5530(0xd5),{'enumerable':!![],'get':function(){var _0x4c72a4=a3_0xae5530;return CacheService_1[_0x4c72a4(0xd5)];}});
1
+ 'use strict';function a3_0x5da4(_0x232bf8,_0x3ea307){var _0x723b3e=a3_0x723b();return a3_0x5da4=function(_0x5da46b,_0x555498){_0x5da46b=_0x5da46b-0xd4;var _0x1ee602=_0x723b3e[_0x5da46b];return _0x1ee602;},a3_0x5da4(_0x232bf8,_0x3ea307);}var a3_0x57012=a3_0x5da4;(function(_0x19591e,_0x3cfff5){var _0x22b715=a3_0x5da4,_0xdea4f3=_0x19591e();while(!![]){try{var _0x599072=-parseInt(_0x22b715(0xe2))/0x1+-parseInt(_0x22b715(0xd8))/0x2+-parseInt(_0x22b715(0xdb))/0x3+parseInt(_0x22b715(0xda))/0x4+parseInt(_0x22b715(0xd9))/0x5+parseInt(_0x22b715(0xd5))/0x6+-parseInt(_0x22b715(0xdd))/0x7;if(_0x599072===_0x3cfff5)break;else _0xdea4f3['push'](_0xdea4f3['shift']());}catch(_0x11eecd){_0xdea4f3['push'](_0xdea4f3['shift']());}}}(a3_0x723b,0x5f0a5));Object['defineProperty'](exports,a3_0x57012(0xdc),{'value':!![]}),exports[a3_0x57012(0xd6)]=exports[a3_0x57012(0xd7)]=exports[a3_0x57012(0xdf)]=void 0x0;var configuration_1=require(a3_0x57012(0xe1));Object[a3_0x57012(0xe0)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a3_0x723b(){var _0x118c29=['defineProperty','./configuration','22797tiklml','./service/CacheService','767448RGgbQR','CacheService','Cache','593470dfSLEg','2931780aXARFd','2412300ihMVHt','1046670LkLYHl','__esModule','1817424NzByGG','./decorator/Cache','Configuration'];a3_0x723b=function(){return _0x118c29;};return a3_0x723b();}var Cache_1=require(a3_0x57012(0xde));Object[a3_0x57012(0xe0)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x6b62db=a3_0x57012;return Cache_1[_0x6b62db(0xd7)];}});var CacheService_1=require(a3_0x57012(0xd4));Object[a3_0x57012(0xe0)](exports,'CacheService',{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x500f98=a4_0x537b;(function(_0x1880ea,_0x56b17b){var _0x566ee4=a4_0x537b,_0x174cd5=_0x1880ea();while(!![]){try{var _0x572522=parseInt(_0x566ee4(0x1bb))/0x1*(-parseInt(_0x566ee4(0x1b5))/0x2)+-parseInt(_0x566ee4(0x1d9))/0x3*(-parseInt(_0x566ee4(0x1b6))/0x4)+parseInt(_0x566ee4(0x1c2))/0x5*(parseInt(_0x566ee4(0x1cd))/0x6)+-parseInt(_0x566ee4(0x1d3))/0x7+parseInt(_0x566ee4(0x1b4))/0x8+-parseInt(_0x566ee4(0x1ce))/0x9+parseInt(_0x566ee4(0x1c1))/0xa*(-parseInt(_0x566ee4(0x1cb))/0xb);if(_0x572522===_0x56b17b)break;else _0x174cd5['push'](_0x174cd5['shift']());}catch(_0x57751b){_0x174cd5['push'](_0x174cd5['shift']());}}}(a4_0x34d4,0x1dd8c));var __decorate=this&&this[a4_0x500f98(0x1d5)]||function(_0x72caa0,_0x672719,_0x506a89,_0x43ba18){var _0x5def92=a4_0x500f98,_0x38f8c5=arguments[_0x5def92(0x1b1)],_0x348b8d=_0x38f8c5<0x3?_0x672719:_0x43ba18===null?_0x43ba18=Object['getOwnPropertyDescriptor'](_0x672719,_0x506a89):_0x43ba18,_0x15c72f;if(typeof Reflect===_0x5def92(0x1be)&&typeof Reflect[_0x5def92(0x1b0)]===_0x5def92(0x1d4))_0x348b8d=Reflect['decorate'](_0x72caa0,_0x672719,_0x506a89,_0x43ba18);else{for(var _0x597c37=_0x72caa0[_0x5def92(0x1b1)]-0x1;_0x597c37>=0x0;_0x597c37--)if(_0x15c72f=_0x72caa0[_0x597c37])_0x348b8d=(_0x38f8c5<0x3?_0x15c72f(_0x348b8d):_0x38f8c5>0x3?_0x15c72f(_0x672719,_0x506a89,_0x348b8d):_0x15c72f(_0x672719,_0x506a89))||_0x348b8d;}return _0x38f8c5>0x3&&_0x348b8d&&Object[_0x5def92(0x1c0)](_0x672719,_0x506a89,_0x348b8d),_0x348b8d;},__metadata=this&&this['__metadata']||function(_0x3e7aa7,_0x4b2f40){var _0x139551=a4_0x500f98;if(typeof Reflect===_0x139551(0x1be)&&typeof Reflect['metadata']==='function')return Reflect[_0x139551(0x1b2)](_0x3e7aa7,_0x4b2f40);};Object[a4_0x500f98(0x1c0)](exports,a4_0x500f98(0x1cc),{'value':!![]}),exports[a4_0x500f98(0x1c9)]=void 0x0;const cacheManager=require('cache-manager'),decorator_1=require(a4_0x500f98(0x1b8));let CacheService=class CacheService{constructor(){var _0x1802b2=a4_0x500f98;this[_0x1802b2(0x1bd)]=undefined,this['clients']=new Map();}['use'](_0x5412d3){var _0x399dbd=a4_0x500f98,_0x13ee2c,_0x3d2ef3;if(!this[_0x399dbd(0x1bd)]){const _0x247f21=((_0x13ee2c=this['config'][_0x399dbd(0x1da)])===null||_0x13ee2c===void 0x0?void 0x0:_0x13ee2c[(_0x3d2ef3=this[_0x399dbd(0x1cf)][_0x399dbd(0x1bd)])===null||_0x3d2ef3===void 0x0?void 0x0:_0x3d2ef3[_0x399dbd(0x1b9)]])||this[_0x399dbd(0x1cf)][_0x399dbd(0x1da)][_0x399dbd(0x1c6)];this[_0x399dbd(0x1bd)]=cacheManager['caching']({..._0x247f21['options'],'store':_0x247f21['store']});}return!this[_0x399dbd(0x1d2)][_0x399dbd(0x1bf)](_0x5412d3)&&this['clients'][_0x399dbd(0x1d0)](_0x5412d3,new CacheHandler(_0x5412d3,this[_0x399dbd(0x1bd)])),this[_0x399dbd(0x1d2)]['get'](_0x5412d3);}async[a4_0x500f98(0x1b7)](){var _0x58ff93=a4_0x500f98;return await this['cache'][_0x58ff93(0x1b7)]();}};__decorate([(0x0,decorator_1[a4_0x500f98(0x1c5)])(a4_0x500f98(0x1bd)),__metadata(a4_0x500f98(0x1d6),Object)],CacheService[a4_0x500f98(0x1ba)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x500f98(0x1c4)])(),(0x0,decorator_1[a4_0x500f98(0x1c7)])(decorator_1[a4_0x500f98(0x1bc)][a4_0x500f98(0x1d1)])],CacheService),exports[a4_0x500f98(0x1c9)]=CacheService;function a4_0x34d4(){var _0x57679c=['get','581865ykMoar','stores','decorate','length','metadata','hget','646032WNGgxv','8vgbMrL','4cxttcP','reset','@midwayjs/decorator','default','prototype','10687NsANhX','ScopeEnum','cache','object','has','defineProperty','10UnnGES','510995jTnVVc','hdel','Provide','Config','file','Scope','hset','CacheService','prefix','626615mhEFfa','__esModule','12dzIWqH','562707oNUqTj','config','set','Singleton','clients','1362333DPlZaB','function','__decorate','design:type','del'];a4_0x34d4=function(){return _0x57679c;};return a4_0x34d4();}function a4_0x537b(_0x3a2389,_0x491dd4){var _0x34d442=a4_0x34d4();return a4_0x537b=function(_0x537b37,_0x50a440){_0x537b37=_0x537b37-0x1b0;var _0x5b6a1d=_0x34d442[_0x537b37];return _0x5b6a1d;},a4_0x537b(_0x3a2389,_0x491dd4);}class CacheHandler{constructor(_0x1f912a,_0xfa015d){var _0x6acb46=a4_0x500f98;this[_0x6acb46(0x1bd)]=_0xfa015d,this[_0x6acb46(0x1ca)]=_0x1f912a;}async['del'](_0x8d3b26){var _0x291d75=a4_0x500f98;return await this[_0x291d75(0x1bd)]['del'](this['prefix']+':'+_0x8d3b26);}async[a4_0x500f98(0x1d0)](_0x3272bb,_0x56b79e,_0x13555e){var _0x1becde=a4_0x500f98;return await this[_0x1becde(0x1bd)][_0x1becde(0x1d0)](this[_0x1becde(0x1ca)]+':'+_0x3272bb,_0x56b79e,_0x13555e);}async[a4_0x500f98(0x1d8)](_0x520663,_0x631b22){return new Promise((_0x22764e,_0x2c3403)=>{var _0x27bd47=a4_0x537b;this[_0x27bd47(0x1bd)][_0x27bd47(0x1d8)](this[_0x27bd47(0x1ca)]+':'+_0x520663,(_0x5d10be,_0x572fc5)=>{_0x5d10be?_0x2c3403(_0x5d10be):_0x22764e(_0x572fc5||_0x631b22);});});}async[a4_0x500f98(0x1c3)](_0x3ac5fb,_0x3be1cc){var _0x552d73=a4_0x500f98;return await this[_0x552d73(0x1d7)](_0x3ac5fb+'-'+_0x3be1cc);}async[a4_0x500f98(0x1c8)](_0x883f7,_0x1872fa,_0x4ea6c7,_0x32695f){var _0x4e3c63=a4_0x500f98;return await this[_0x4e3c63(0x1d0)](_0x883f7+'-'+_0x1872fa,_0x4ea6c7,_0x32695f);}async[a4_0x500f98(0x1b3)](_0x1045a1,_0x438d7b,_0xfaa2f){var _0x206da2=a4_0x500f98;return await this[_0x206da2(0x1d8)](_0x1045a1+'-'+_0x438d7b,_0xfaa2f);}}
1
+ 'use strict';function a4_0x585f(_0x3a4974,_0x5cfb6a){var _0x4f76cd=a4_0x4f76();return a4_0x585f=function(_0x585fba,_0x3d76e9){_0x585fba=_0x585fba-0x11a;var _0x150001=_0x4f76cd[_0x585fba];return _0x150001;},a4_0x585f(_0x3a4974,_0x5cfb6a);}var a4_0x4acb38=a4_0x585f;(function(_0x36ce14,_0xec30c9){var _0x5e3fc4=a4_0x585f,_0x504b82=_0x36ce14();while(!![]){try{var _0x1e37f9=parseInt(_0x5e3fc4(0x143))/0x1*(-parseInt(_0x5e3fc4(0x123))/0x2)+parseInt(_0x5e3fc4(0x11f))/0x3+parseInt(_0x5e3fc4(0x126))/0x4+parseInt(_0x5e3fc4(0x134))/0x5*(-parseInt(_0x5e3fc4(0x122))/0x6)+parseInt(_0x5e3fc4(0x137))/0x7*(parseInt(_0x5e3fc4(0x140))/0x8)+parseInt(_0x5e3fc4(0x12e))/0x9+-parseInt(_0x5e3fc4(0x13c))/0xa;if(_0x1e37f9===_0xec30c9)break;else _0x504b82['push'](_0x504b82['shift']());}catch(_0x4aea7a){_0x504b82['push'](_0x504b82['shift']());}}}(a4_0x4f76,0x9615e));var __decorate=this&&this[a4_0x4acb38(0x13e)]||function(_0x1cd2ce,_0x497920,_0x1cf4e8,_0x1bc937){var _0x276e28=a4_0x4acb38,_0x2582f5=arguments[_0x276e28(0x138)],_0x595558=_0x2582f5<0x3?_0x497920:_0x1bc937===null?_0x1bc937=Object[_0x276e28(0x13d)](_0x497920,_0x1cf4e8):_0x1bc937,_0x23a55d;if(typeof Reflect===_0x276e28(0x141)&&typeof Reflect[_0x276e28(0x139)]===_0x276e28(0x13f))_0x595558=Reflect[_0x276e28(0x139)](_0x1cd2ce,_0x497920,_0x1cf4e8,_0x1bc937);else{for(var _0x2f0967=_0x1cd2ce[_0x276e28(0x138)]-0x1;_0x2f0967>=0x0;_0x2f0967--)if(_0x23a55d=_0x1cd2ce[_0x2f0967])_0x595558=(_0x2582f5<0x3?_0x23a55d(_0x595558):_0x2582f5>0x3?_0x23a55d(_0x497920,_0x1cf4e8,_0x595558):_0x23a55d(_0x497920,_0x1cf4e8))||_0x595558;}return _0x2582f5>0x3&&_0x595558&&Object[_0x276e28(0x12b)](_0x497920,_0x1cf4e8,_0x595558),_0x595558;},__metadata=this&&this[a4_0x4acb38(0x11b)]||function(_0x414b7a,_0x2f19ca){var _0x208d1d=a4_0x4acb38;if(typeof Reflect===_0x208d1d(0x141)&&typeof Reflect[_0x208d1d(0x11c)]===_0x208d1d(0x13f))return Reflect[_0x208d1d(0x11c)](_0x414b7a,_0x2f19ca);};Object[a4_0x4acb38(0x12b)](exports,a4_0x4acb38(0x121),{'value':!![]}),exports[a4_0x4acb38(0x125)]=void 0x0;const cacheManager=require('cache-manager'),decorator_1=require(a4_0x4acb38(0x11e));function a4_0x4f76(){var _0x4ca71d=['452543FJfaBk','store','Provide','has','__metadata','metadata','hdel','@midwayjs/decorator','518706beewTv','prototype','__esModule','397350GoBduv','4UVKIeB','Scope','CacheService','4332536PfmUZN','config','ScopeEnum','reset','default','defineProperty','prefix','file','2662452xkLkaD','set','stores','caching','Config','clients','15bGjcWA','get','cache','7NhWTAo','length','decorate','del','hset','4586190pGAruQ','getOwnPropertyDescriptor','__decorate','function','5002128ynncoz','object','use'];a4_0x4f76=function(){return _0x4ca71d;};return a4_0x4f76();}let CacheService=class CacheService{constructor(){var _0x502628=a4_0x4acb38;this[_0x502628(0x136)]=undefined,this[_0x502628(0x133)]=new Map();}[a4_0x4acb38(0x142)](_0x47b3a7){var _0x3429d2=a4_0x4acb38,_0x3a9b3d,_0x58ad6b;if(!this[_0x3429d2(0x136)]){const _0x4fb3f8=((_0x3a9b3d=this[_0x3429d2(0x127)][_0x3429d2(0x130)])===null||_0x3a9b3d===void 0x0?void 0x0:_0x3a9b3d[(_0x58ad6b=this['config'][_0x3429d2(0x136)])===null||_0x58ad6b===void 0x0?void 0x0:_0x58ad6b[_0x3429d2(0x12a)]])||this['config']['stores'][_0x3429d2(0x12d)];this[_0x3429d2(0x136)]=cacheManager[_0x3429d2(0x131)]({..._0x4fb3f8['options'],'store':_0x4fb3f8[_0x3429d2(0x144)]});}return!this[_0x3429d2(0x133)][_0x3429d2(0x11a)](_0x47b3a7)&&this['clients'][_0x3429d2(0x12f)](_0x47b3a7,new CacheHandler(_0x47b3a7,this['cache'])),this[_0x3429d2(0x133)][_0x3429d2(0x135)](_0x47b3a7);}async[a4_0x4acb38(0x129)](){var _0x424215=a4_0x4acb38;return await this[_0x424215(0x136)][_0x424215(0x129)]();}};__decorate([(0x0,decorator_1[a4_0x4acb38(0x132)])(a4_0x4acb38(0x136)),__metadata('design:type',Object)],CacheService[a4_0x4acb38(0x120)],a4_0x4acb38(0x127),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x4acb38(0x145)])(),(0x0,decorator_1[a4_0x4acb38(0x124)])(decorator_1[a4_0x4acb38(0x128)]['Singleton'])],CacheService),exports[a4_0x4acb38(0x125)]=CacheService;class CacheHandler{constructor(_0xc909aa,_0x515916){this['cache']=_0x515916,this['prefix']=_0xc909aa;}async[a4_0x4acb38(0x13a)](_0xba84e1){var _0x3d5aa4=a4_0x4acb38;return await this[_0x3d5aa4(0x136)][_0x3d5aa4(0x13a)](this[_0x3d5aa4(0x12c)]+':'+_0xba84e1);}async['set'](_0x1023a8,_0x3e6037,_0x191bde){var _0x51ba6b=a4_0x4acb38;return await this['cache'][_0x51ba6b(0x12f)](this[_0x51ba6b(0x12c)]+':'+_0x1023a8,_0x3e6037,_0x191bde);}async[a4_0x4acb38(0x135)](_0xe26e27,_0x586c72){return new Promise((_0x25de86,_0x1d8ed9)=>{var _0x2453f8=a4_0x585f;this[_0x2453f8(0x136)]['get'](this[_0x2453f8(0x12c)]+':'+_0xe26e27,(_0x24dd27,_0x261caa)=>{_0x24dd27?_0x1d8ed9(_0x24dd27):_0x25de86(_0x261caa||_0x586c72);});});}async[a4_0x4acb38(0x11d)](_0x246099,_0x212ba5){var _0x2bc890=a4_0x4acb38;return await this[_0x2bc890(0x13a)](_0x246099+'-'+_0x212ba5);}async[a4_0x4acb38(0x13b)](_0x3c0e01,_0xd273c3,_0x578f62,_0x4f8fbd){var _0x39774b=a4_0x4acb38;return await this[_0x39774b(0x12f)](_0x3c0e01+'-'+_0xd273c3,_0x578f62,_0x4f8fbd);}async['hget'](_0xf63834,_0x1e901b,_0x1dae05){var _0x3213b8=a4_0x4acb38;return await this[_0x3213b8(0x135)](_0xf63834+'-'+_0x1e901b,_0x1dae05);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -23,5 +23,5 @@
23
23
  "javascript-obfuscator": "2.19.0",
24
24
  "typescript": "^4.7.4"
25
25
  },
26
- "gitHead": "2ac5ee16cbb8319ea5bca50403722eea078e77ee"
26
+ "gitHead": "9f9889460e81d653e97b2c9b46cb36321d721c9c"
27
27
  }