@anncic-api/cache 1.1.39 → 1.1.41

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_0x10fb20=a0_0x1c87;function a0_0x1803(){const _0x1884c5=['1170eEHWcx','4333HzXTJV','127.0.0.1','__esModule','2202712eqsUJV','defineProperty','16IITEzE','memory','849339gCmBbI','cache-manager-ioredis','cache-manager-fs-hash','2kyqGVq','default','appDir','file','1634685RYMNgi','203988KAQaEZ','270989VFHhrh','2259100INhsbx','name'];a0_0x1803=function(){return _0x1884c5;};return a0_0x1803();}(function(_0x3081c8,_0x3ce2ba){const _0x107f36=a0_0x1c87,_0x21acba=_0x3081c8();while(!![]){try{const _0x294332=parseInt(_0x107f36(0x7d))/0x1*(parseInt(_0x107f36(0x8b))/0x2)+parseInt(_0x107f36(0x7c))/0x3*(parseInt(_0x107f36(0x86))/0x4)+-parseInt(_0x107f36(0x8f))/0x5+parseInt(_0x107f36(0x80))/0x6*(parseInt(_0x107f36(0x81))/0x7)+-parseInt(_0x107f36(0x84))/0x8+-parseInt(_0x107f36(0x88))/0x9+parseInt(_0x107f36(0x7e))/0xa;if(_0x294332===_0x3ce2ba)break;else _0x21acba['push'](_0x21acba['shift']());}catch(_0x5148e7){_0x21acba['push'](_0x21acba['shift']());}}}(a0_0x1803,0x2f1ad));Object[a0_0x10fb20(0x85)](exports,a0_0x10fb20(0x83),{'value':!![]});function a0_0x1c87(_0x900747,_0x4126f8){const _0x180385=a0_0x1803();return a0_0x1c87=function(_0x1c87de,_0x3a38ff){_0x1c87de=_0x1c87de-0x7c;let _0x125139=_0x180385[_0x1c87de];return _0x125139;},a0_0x1c87(_0x900747,_0x4126f8);}const fsStore=require(a0_0x10fb20(0x8a)),redisStore=require(a0_0x10fb20(0x89));exports[a0_0x10fb20(0x8c)]=_0x46f10d=>{const _0x7f866=a0_0x10fb20;return{'cache':{'default':_0x7f866(0x8e),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x46f10d[_0x7f866(0x8d)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x7f866(0x82),'password':'','ttl':0x1e13380,'keyPrefix':_0x46f10d[_0x7f866(0x7f)]+':'}},'memory':{'store':_0x7f866(0x87),'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';var a1_0x1f1783=a1_0x2fd8;function a1_0x2fd8(_0x2415e4,_0x2b5893){var _0x24d945=a1_0x24d9();return a1_0x2fd8=function(_0x2fd8cc,_0x2fc998){_0x2fd8cc=_0x2fd8cc-0xdc;var _0x1dd79a=_0x24d945[_0x2fd8cc];return _0x1dd79a;},a1_0x2fd8(_0x2415e4,_0x2b5893);}(function(_0x305ab8,_0x3f7f34){var _0x56196e=a1_0x2fd8,_0xf9d011=_0x305ab8();while(!![]){try{var _0x2d0352=-parseInt(_0x56196e(0xe5))/0x1*(parseInt(_0x56196e(0xeb))/0x2)+-parseInt(_0x56196e(0xed))/0x3+-parseInt(_0x56196e(0xdc))/0x4+parseInt(_0x56196e(0xe6))/0x5*(-parseInt(_0x56196e(0xee))/0x6)+parseInt(_0x56196e(0xe1))/0x7*(-parseInt(_0x56196e(0xdf))/0x8)+parseInt(_0x56196e(0xde))/0x9+parseInt(_0x56196e(0xec))/0xa;if(_0x2d0352===_0x3f7f34)break;else _0xf9d011['push'](_0xf9d011['shift']());}catch(_0x4e2f5d){_0xf9d011['push'](_0xf9d011['shift']());}}}(a1_0x24d9,0x96a7d));var __decorate=this&&this['__decorate']||function(_0x5e4e2f,_0x513679,_0x574853,_0x4e8911){var _0x55a485=a1_0x2fd8,_0xe3bdb8=arguments[_0x55a485(0xe4)],_0x30dd98=_0xe3bdb8<0x3?_0x513679:_0x4e8911===null?_0x4e8911=Object[_0x55a485(0xe3)](_0x513679,_0x574853):_0x4e8911,_0x2fda45;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x55a485(0xea))_0x30dd98=Reflect['decorate'](_0x5e4e2f,_0x513679,_0x574853,_0x4e8911);else{for(var _0x112a0b=_0x5e4e2f[_0x55a485(0xe4)]-0x1;_0x112a0b>=0x0;_0x112a0b--)if(_0x2fda45=_0x5e4e2f[_0x112a0b])_0x30dd98=(_0xe3bdb8<0x3?_0x2fda45(_0x30dd98):_0xe3bdb8>0x3?_0x2fda45(_0x513679,_0x574853,_0x30dd98):_0x2fda45(_0x513679,_0x574853))||_0x30dd98;}return _0xe3bdb8>0x3&&_0x30dd98&&Object[_0x55a485(0xe0)](_0x513679,_0x574853,_0x30dd98),_0x30dd98;};Object[a1_0x1f1783(0xe0)](exports,a1_0x1f1783(0xe2),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x24d9(){var _0x2e5735=['24hBDxYl','defineProperty','1841224IxRwPB','__esModule','getOwnPropertyDescriptor','length','1yoGXmW','5bihRBJ','CustomConfiguration','@midwayjs/decorator','anncic-api:cache','function','1359886NhFWUC','41903170gSmklK','2273442TTGlCK','5496042pXrFHU','4185300fftnSR','./config/config.default','5543577AzYGeH'];a1_0x24d9=function(){return _0x2e5735;};return a1_0x24d9();}const decorator_1=require(a1_0x1f1783(0xe8)),ConfigDefault=require(a1_0x1f1783(0xdd));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x1f1783(0xe9),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x1f1783(0xe7)]=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';const a2_0x48d2b3=a2_0x1708;(function(_0x4dbf62,_0x4a227c){const _0x13ce27=a2_0x1708,_0x125995=_0x4dbf62();while(!![]){try{const _0x3b7320=-parseInt(_0x13ce27(0x7f))/0x1*(-parseInt(_0x13ce27(0x86))/0x2)+parseInt(_0x13ce27(0x75))/0x3*(parseInt(_0x13ce27(0x73))/0x4)+parseInt(_0x13ce27(0x74))/0x5+parseInt(_0x13ce27(0x88))/0x6*(-parseInt(_0x13ce27(0x80))/0x7)+parseInt(_0x13ce27(0x8b))/0x8*(parseInt(_0x13ce27(0x70))/0x9)+-parseInt(_0x13ce27(0x8a))/0xa*(parseInt(_0x13ce27(0x71))/0xb)+-parseInt(_0x13ce27(0x78))/0xc;if(_0x3b7320===_0x4a227c)break;else _0x125995['push'](_0x125995['shift']());}catch(_0xe04a4a){_0x125995['push'](_0x125995['shift']());}}}(a2_0x46d0,0x66994));Object[a2_0x48d2b3(0x77)](exports,'__esModule',{'value':!![]}),exports[a2_0x48d2b3(0x76)]=void 0x0;const crypto_js_1=require(a2_0x48d2b3(0x83)),CacheService_1=require(a2_0x48d2b3(0x87)),core_1=require(a2_0x48d2b3(0x89));function a2_0x1708(_0x35673a,_0x142ca5){const _0x46d0c8=a2_0x46d0();return a2_0x1708=function(_0x170875,_0x4dff1e){_0x170875=_0x170875-0x6f;let _0x4753cd=_0x46d0c8[_0x170875];return _0x4753cd;},a2_0x1708(_0x35673a,_0x142ca5);}function Cache(_0x231872,_0x286d08){return(_0x3211ab,_0x3da486,_0x3627e5)=>{const _0x336bff=a2_0x1708,_0x5143ad=_0x3627e5[_0x336bff(0x7b)];return _0x3627e5[_0x336bff(0x7b)]=async function(..._0x4bb3ac){const _0x5ebb78=_0x336bff;!_0x231872&&(_0x231872=(0x0,crypto_js_1[_0x5ebb78(0x6f)])(JSON[_0x5ebb78(0x7e)](_0x4bb3ac))[_0x5ebb78(0x84)]());let _0x292911=await this[core_1[_0x5ebb78(0x72)]]['app']['getApplicationContext']()[_0x5ebb78(0x79)](CacheService_1[_0x5ebb78(0x82)]),_0x29f42b=await _0x292911[_0x5ebb78(0x7c)](_0x5ebb78(0x85))[_0x5ebb78(0x7a)](_0x231872);if(_0x29f42b)return JSON[_0x5ebb78(0x7d)](_0x29f42b);else _0x29f42b=await _0x5143ad['apply'](this,[..._0x4bb3ac]),await _0x292911[_0x5ebb78(0x7c)]('MethodDecorator')[_0x5ebb78(0x81)](_0x231872,JSON[_0x5ebb78(0x7e)](_0x29f42b),_0x286d08);return _0x29f42b;},_0x3627e5;};}function a2_0x46d0(){const _0xf71167=['use','parse','stringify','1ALhpwE','94416DPODiD','set','CacheService','crypto-js','toString','MethodDecorator','746918NFXXcu','../service/CacheService','54XHAjdS','@midwayjs/core','1320690NhmEke','7544PCwKcE','MD5','1818xcEqoR','22PvfBWE','REQUEST_OBJ_CTX_KEY','4HsXiIB','3593630DESZgL','173067QGBslo','Cache','defineProperty','6415032AsMhXt','getAsync','get','value'];a2_0x46d0=function(){return _0xf71167;};return a2_0x46d0();}exports[a2_0x48d2b3(0x76)]=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_0x238f(){var _0x3467e6=['1447008TqTrlF','2SdsFmG','CustomConfiguration','3859986qZJBMz','Configuration','337708oIUoUS','730552qfhxTD','20uzxXUn','2921210LhxDLd','CacheService','./configuration','1586120eVmRMJ','./decorator/Cache','Cache','168GdoxXu','./service/CacheService','defineProperty','3117573RdUqnJ'];a3_0x238f=function(){return _0x3467e6;};return a3_0x238f();}var a3_0x103dca=a3_0x5b3e;(function(_0x52fd56,_0x1f0329){var _0x24d208=a3_0x5b3e,_0x14482f=_0x52fd56();while(!![]){try{var _0x21b11c=parseInt(_0x24d208(0x108))/0x1*(-parseInt(_0x24d208(0x103))/0x2)+parseInt(_0x24d208(0x102))/0x3+parseInt(_0x24d208(0xfb))/0x4+-parseInt(_0x24d208(0x10a))/0x5+parseInt(_0x24d208(0x105))/0x6+-parseInt(_0x24d208(0x107))/0x7*(-parseInt(_0x24d208(0xfe))/0x8)+-parseInt(_0x24d208(0x101))/0x9*(parseInt(_0x24d208(0x109))/0xa);if(_0x21b11c===_0x1f0329)break;else _0x14482f['push'](_0x14482f['shift']());}catch(_0x448c29){_0x14482f['push'](_0x14482f['shift']());}}}(a3_0x238f,0x80d75));Object[a3_0x103dca(0x100)](exports,'__esModule',{'value':!![]}),exports[a3_0x103dca(0x10b)]=exports[a3_0x103dca(0xfd)]=exports[a3_0x103dca(0x106)]=void 0x0;var configuration_1=require(a3_0x103dca(0xfa));function a3_0x5b3e(_0x15cc25,_0x3ca03f){var _0x238f58=a3_0x238f();return a3_0x5b3e=function(_0x5b3e1b,_0xcb0b7c){_0x5b3e1b=_0x5b3e1b-0xfa;var _0x99e92f=_0x238f58[_0x5b3e1b];return _0x99e92f;},a3_0x5b3e(_0x15cc25,_0x3ca03f);}Object['defineProperty'](exports,a3_0x103dca(0x106),{'enumerable':!![],'get':function(){var _0x274b2a=a3_0x103dca;return configuration_1[_0x274b2a(0x104)];}});var Cache_1=require(a3_0x103dca(0xfc));Object[a3_0x103dca(0x100)](exports,a3_0x103dca(0xfd),{'enumerable':!![],'get':function(){var _0x3b5c3d=a3_0x103dca;return Cache_1[_0x3b5c3d(0xfd)];}});var CacheService_1=require(a3_0x103dca(0xff));Object[a3_0x103dca(0x100)](exports,a3_0x103dca(0x10b),{'enumerable':!![],'get':function(){var _0x4a616c=a3_0x103dca;return CacheService_1[_0x4a616c(0x10b)];}});
@@ -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';var a4_0x5f2dde=a4_0x344b;(function(_0x212e73,_0x49ed99){var _0x5295b9=a4_0x344b,_0x421044=_0x212e73();while(!![]){try{var _0x5148b7=-parseInt(_0x5295b9(0x130))/0x1*(-parseInt(_0x5295b9(0x12a))/0x2)+-parseInt(_0x5295b9(0x127))/0x3*(parseInt(_0x5295b9(0x118))/0x4)+parseInt(_0x5295b9(0x12e))/0x5+parseInt(_0x5295b9(0x12d))/0x6+-parseInt(_0x5295b9(0x122))/0x7*(-parseInt(_0x5295b9(0x124))/0x8)+-parseInt(_0x5295b9(0x10b))/0x9*(parseInt(_0x5295b9(0x110))/0xa)+-parseInt(_0x5295b9(0x11e))/0xb;if(_0x5148b7===_0x49ed99)break;else _0x421044['push'](_0x421044['shift']());}catch(_0xbdc32a){_0x421044['push'](_0x421044['shift']());}}}(a4_0x46c4,0x795d6));var __decorate=this&&this[a4_0x5f2dde(0x123)]||function(_0x579e21,_0x443f21,_0x442125,_0x5bf7db){var _0x4e2d96=a4_0x5f2dde,_0x355099=arguments[_0x4e2d96(0x117)],_0x159002=_0x355099<0x3?_0x443f21:_0x5bf7db===null?_0x5bf7db=Object['getOwnPropertyDescriptor'](_0x443f21,_0x442125):_0x5bf7db,_0x734b9d;if(typeof Reflect===_0x4e2d96(0x108)&&typeof Reflect[_0x4e2d96(0x10a)]==='function')_0x159002=Reflect['decorate'](_0x579e21,_0x443f21,_0x442125,_0x5bf7db);else{for(var _0x13d23e=_0x579e21[_0x4e2d96(0x117)]-0x1;_0x13d23e>=0x0;_0x13d23e--)if(_0x734b9d=_0x579e21[_0x13d23e])_0x159002=(_0x355099<0x3?_0x734b9d(_0x159002):_0x355099>0x3?_0x734b9d(_0x443f21,_0x442125,_0x159002):_0x734b9d(_0x443f21,_0x442125))||_0x159002;}return _0x355099>0x3&&_0x159002&&Object['defineProperty'](_0x443f21,_0x442125,_0x159002),_0x159002;},__metadata=this&&this['__metadata']||function(_0x50336c,_0x4b8d37){var _0xbb6a46=a4_0x5f2dde;if(typeof Reflect==='object'&&typeof Reflect[_0xbb6a46(0x128)]===_0xbb6a46(0x12f))return Reflect[_0xbb6a46(0x128)](_0x50336c,_0x4b8d37);};function a4_0x46c4(){var _0x51759b=['length','152164lJtVpa','set','prefix','__esModule','Singleton','default','6475238ajdrKY','Scope','reset','file','2021327yjVbNE','__decorate','16QzmNSh','del','get','48SuFMHZ','metadata','prototype','145744QuJAAf','@midwayjs/decorator','hdel','983496AIetNk','3475980KTUFWY','function','11wISGqy','cache','config','store','object','Config','decorate','882nntqkd','hget','design:type','clients','cache-manager','55490JJhCTb','ScopeEnum','CacheService','defineProperty','has','stores','hset'];a4_0x46c4=function(){return _0x51759b;};return a4_0x46c4();}Object[a4_0x5f2dde(0x113)](exports,a4_0x5f2dde(0x11b),{'value':!![]}),exports[a4_0x5f2dde(0x112)]=void 0x0;const cacheManager=require(a4_0x5f2dde(0x10f)),decorator_1=require(a4_0x5f2dde(0x12b));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}['use'](_0x36b4de){var _0x43bc4b=a4_0x5f2dde,_0x2c2aa6,_0x2ea529;if(!this[_0x43bc4b(0x131)]){const _0x42201e=((_0x2c2aa6=this[_0x43bc4b(0x132)][_0x43bc4b(0x115)])===null||_0x2c2aa6===void 0x0?void 0x0:_0x2c2aa6[(_0x2ea529=this[_0x43bc4b(0x132)][_0x43bc4b(0x131)])===null||_0x2ea529===void 0x0?void 0x0:_0x2ea529[_0x43bc4b(0x11d)]])||this['config']['stores'][_0x43bc4b(0x121)];this[_0x43bc4b(0x131)]=cacheManager['caching']({..._0x42201e['options'],'store':_0x42201e[_0x43bc4b(0x133)]});}return!this['clients'][_0x43bc4b(0x114)](_0x36b4de)&&this[_0x43bc4b(0x10e)]['set'](_0x36b4de,new CacheHandler(_0x36b4de,this[_0x43bc4b(0x131)])),this[_0x43bc4b(0x10e)][_0x43bc4b(0x126)](_0x36b4de);}async[a4_0x5f2dde(0x120)](){var _0x1754a6=a4_0x5f2dde;return await this[_0x1754a6(0x131)][_0x1754a6(0x120)]();}};function a4_0x344b(_0x533d5f,_0x50e07f){var _0x46c431=a4_0x46c4();return a4_0x344b=function(_0x344bdf,_0x444fea){_0x344bdf=_0x344bdf-0x108;var _0x387be5=_0x46c431[_0x344bdf];return _0x387be5;},a4_0x344b(_0x533d5f,_0x50e07f);}__decorate([(0x0,decorator_1[a4_0x5f2dde(0x109)])(a4_0x5f2dde(0x131)),__metadata(a4_0x5f2dde(0x10d),Object)],CacheService[a4_0x5f2dde(0x129)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x5f2dde(0x11f)])(decorator_1[a4_0x5f2dde(0x111)][a4_0x5f2dde(0x11c)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x1a31d5,_0x3b5c8a){var _0x50d4e7=a4_0x5f2dde;this[_0x50d4e7(0x131)]=_0x3b5c8a,this[_0x50d4e7(0x11a)]=_0x1a31d5;}async[a4_0x5f2dde(0x125)](_0x1bd3d8){var _0x406f36=a4_0x5f2dde;return await this['cache'][_0x406f36(0x125)](this[_0x406f36(0x11a)]+':'+_0x1bd3d8);}async['set'](_0x2f3f4e,_0x129354,_0x2d5b50){var _0x16814a=a4_0x5f2dde;return await this[_0x16814a(0x131)][_0x16814a(0x119)](this[_0x16814a(0x11a)]+':'+_0x2f3f4e,_0x129354,_0x2d5b50);}async[a4_0x5f2dde(0x126)](_0x2b1454,_0x259901){return new Promise((_0x1fa72e,_0x1f5dd8)=>{var _0x119018=a4_0x344b;this['cache'][_0x119018(0x126)](this['prefix']+':'+_0x2b1454,(_0x314cb0,_0x4942bb)=>{_0x314cb0?_0x1f5dd8(_0x314cb0):_0x1fa72e(_0x4942bb||_0x259901);});});}async[a4_0x5f2dde(0x12c)](_0x4261c5,_0x3baa88){var _0x2ceef0=a4_0x5f2dde;return await this[_0x2ceef0(0x125)](_0x4261c5+'-'+_0x3baa88);}async[a4_0x5f2dde(0x116)](_0x9703b3,_0x1e28f4,_0x1f2924,_0x1a923d){var _0x37ac79=a4_0x5f2dde;return await this[_0x37ac79(0x119)](_0x9703b3+'-'+_0x1e28f4,_0x1f2924,_0x1a923d);}async[a4_0x5f2dde(0x10c)](_0x1a75f3,_0x26afbb,_0x25ec17){var _0xac2188=a4_0x5f2dde;return await this[_0xac2188(0x126)](_0x1a75f3+'-'+_0x26afbb,_0x25ec17);}}
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.41",
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": "959ed9707257fa02512690568b73f1c8fc8d69b0"
27
27
  }