@anncic-api/cache 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 'use strict';const a0_0x4f2f2d=a0_0x5d33;(function(_0x59d8fa,_0x2e2bcd){const _0x1c3d5d=a0_0x5d33,_0x51ab3c=_0x59d8fa();while(!![]){try{const _0x509788=-parseInt(_0x1c3d5d(0xdd))/0x1*(-parseInt(_0x1c3d5d(0xe1))/0x2)+-parseInt(_0x1c3d5d(0xe8))/0x3*(parseInt(_0x1c3d5d(0xe2))/0x4)+parseInt(_0x1c3d5d(0xee))/0x5*(-parseInt(_0x1c3d5d(0xeb))/0x6)+-parseInt(_0x1c3d5d(0xe6))/0x7*(parseInt(_0x1c3d5d(0xef))/0x8)+-parseInt(_0x1c3d5d(0xe3))/0x9+-parseInt(_0x1c3d5d(0xec))/0xa*(parseInt(_0x1c3d5d(0xdf))/0xb)+-parseInt(_0x1c3d5d(0xe9))/0xc*(-parseInt(_0x1c3d5d(0xe7))/0xd);if(_0x509788===_0x2e2bcd)break;else _0x51ab3c['push'](_0x51ab3c['shift']());}catch(_0x14a292){_0x51ab3c['push'](_0x51ab3c['shift']());}}}(a0_0x1547,0x70569));function a0_0x5d33(_0x24309d,_0x487227){const _0x154769=a0_0x1547();return a0_0x5d33=function(_0x5d33c4,_0x7c0714){_0x5d33c4=_0x5d33c4-0xdd;let _0xab86aa=_0x154769[_0x5d33c4];return _0xab86aa;},a0_0x5d33(_0x24309d,_0x487227);}Object['defineProperty'](exports,a0_0x4f2f2d(0xed),{'value':!![]});const fsStore=require(a0_0x4f2f2d(0xe4)),redisStore=require(a0_0x4f2f2d(0xea));exports['default']=_0x1c89ce=>{const _0x8d252e=a0_0x4f2f2d;return{'cache':{'default':_0x8d252e(0xde),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x1c89ce['appDir']+_0x8d252e(0xe0)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x1c89ce[_0x8d252e(0xe5)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x1547(){const _0x840aae=['930zSODTK','64TyOKpL','79foHYei','file','836lOzmGj','/runtime/.cache','2402ckrzMw','4aESfwr','5184594IdFyUz','cache-manager-fs-hash','name','234633jHDFCO','4043vTGuDE','229917UKHyvS','105276JIInKu','cache-manager-ioredis','19212xPliNJ','111410IHXNmy','__esModule'];a0_0x1547=function(){return _0x840aae;};return a0_0x1547();}
1
+ 'use strict';const a0_0x114f3f=a0_0x17cc;function a0_0x38e5(){const _0x42b6eb=['defineProperty','file','memory','__esModule','default','68066LgCGEM','cache-manager-ioredis','/runtime/.cache','546625WuHqnF','427555ENvJOq','1609926wRwmHI','2544892zePkUx','127.0.0.1','1323772cHGGfX','2095448dQNzJW','3MUcBlI'];a0_0x38e5=function(){return _0x42b6eb;};return a0_0x38e5();}(function(_0x4f3344,_0x49f14c){const _0x2e135a=a0_0x17cc,_0x27c7b1=_0x4f3344();while(!![]){try{const _0x3305a5=parseInt(_0x2e135a(0x1a8))/0x1+-parseInt(_0x2e135a(0x1a4))/0x2+parseInt(_0x2e135a(0x1ae))/0x3*(parseInt(_0x2e135a(0x1ac))/0x4)+-parseInt(_0x2e135a(0x1a7))/0x5+-parseInt(_0x2e135a(0x1a9))/0x6+-parseInt(_0x2e135a(0x1aa))/0x7+parseInt(_0x2e135a(0x1ad))/0x8;if(_0x3305a5===_0x49f14c)break;else _0x27c7b1['push'](_0x27c7b1['shift']());}catch(_0x33b6a7){_0x27c7b1['push'](_0x27c7b1['shift']());}}}(a0_0x38e5,0x3bdca));function a0_0x17cc(_0x35ae61,_0x53d276){const _0x38e5aa=a0_0x38e5();return a0_0x17cc=function(_0x17cc31,_0x43a647){_0x17cc31=_0x17cc31-0x19f;let _0x502202=_0x38e5aa[_0x17cc31];return _0x502202;},a0_0x17cc(_0x35ae61,_0x53d276);}Object[a0_0x114f3f(0x19f)](exports,a0_0x114f3f(0x1a2),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x114f3f(0x1a5));exports[a0_0x114f3f(0x1a3)]=_0x584e7a=>{const _0x79f69a=a0_0x114f3f;return{'cache':{'default':_0x79f69a(0x1a0),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x584e7a['appDir']+_0x79f69a(0x1a6)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x79f69a(0x1ab),'password':'','ttl':0x1e13380,'keyPrefix':_0x584e7a['name']+':'}},'memory':{'store':_0x79f69a(0x1a1),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';function a1_0x27cc(_0x25b94e,_0x446d0f){var _0x5deba9=a1_0x5deb();return a1_0x27cc=function(_0x27cc86,_0x5b3ad9){_0x27cc86=_0x27cc86-0x1c6;var _0x3b4ae1=_0x5deba9[_0x27cc86];return _0x3b4ae1;},a1_0x27cc(_0x25b94e,_0x446d0f);}var a1_0x11ad21=a1_0x27cc;(function(_0x4541de,_0x45c6f7){var _0xa5da45=a1_0x27cc,_0x393fdf=_0x4541de();while(!![]){try{var _0x2dc0c5=parseInt(_0xa5da45(0x1c8))/0x1*(-parseInt(_0xa5da45(0x1d5))/0x2)+parseInt(_0xa5da45(0x1d4))/0x3*(-parseInt(_0xa5da45(0x1d7))/0x4)+parseInt(_0xa5da45(0x1ce))/0x5+parseInt(_0xa5da45(0x1dd))/0x6*(-parseInt(_0xa5da45(0x1d2))/0x7)+-parseInt(_0xa5da45(0x1c6))/0x8*(-parseInt(_0xa5da45(0x1ca))/0x9)+-parseInt(_0xa5da45(0x1cb))/0xa+-parseInt(_0xa5da45(0x1d3))/0xb*(-parseInt(_0xa5da45(0x1d8))/0xc);if(_0x2dc0c5===_0x45c6f7)break;else _0x393fdf['push'](_0x393fdf['shift']());}catch(_0xc17b65){_0x393fdf['push'](_0x393fdf['shift']());}}}(a1_0x5deb,0x2394f));var __decorate=this&&this['__decorate']||function(_0x5a821d,_0x3e2ca8,_0x366e2f,_0x1a8bed){var _0x51564a=a1_0x27cc,_0x2434bf=arguments[_0x51564a(0x1d0)],_0x47ffea=_0x2434bf<0x3?_0x3e2ca8:_0x1a8bed===null?_0x1a8bed=Object[_0x51564a(0x1dc)](_0x3e2ca8,_0x366e2f):_0x1a8bed,_0x1e9adb;if(typeof Reflect===_0x51564a(0x1db)&&typeof Reflect[_0x51564a(0x1d6)]===_0x51564a(0x1cc))_0x47ffea=Reflect[_0x51564a(0x1d6)](_0x5a821d,_0x3e2ca8,_0x366e2f,_0x1a8bed);else{for(var _0x5ca5ea=_0x5a821d[_0x51564a(0x1d0)]-0x1;_0x5ca5ea>=0x0;_0x5ca5ea--)if(_0x1e9adb=_0x5a821d[_0x5ca5ea])_0x47ffea=(_0x2434bf<0x3?_0x1e9adb(_0x47ffea):_0x2434bf>0x3?_0x1e9adb(_0x3e2ca8,_0x366e2f,_0x47ffea):_0x1e9adb(_0x3e2ca8,_0x366e2f))||_0x47ffea;}return _0x2434bf>0x3&&_0x47ffea&&Object[_0x51564a(0x1d1)](_0x3e2ca8,_0x366e2f,_0x47ffea),_0x47ffea;};Object[a1_0x11ad21(0x1d1)](exports,a1_0x11ad21(0x1c7),{'value':!![]}),exports[a1_0x11ad21(0x1cd)]=void 0x0;const core_1=require(a1_0x11ad21(0x1cf)),ConfigDefault=require(a1_0x11ad21(0x1d9));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x11ad21(0x1da)])({'conflictCheck':![],'namespace':a1_0x11ad21(0x1c9),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x11ad21(0x1cd)]=CustomConfiguration;function a1_0x5deb(){var _0xf40098=['object','getOwnPropertyDescriptor','6564SgLBvj','262648jDYrBM','__esModule','12naWOiQ','anncic-api:cache','54jazxFQ','1607410QTRwTB','function','CustomConfiguration','505285CUekDJ','@midwayjs/core','length','defineProperty','252efRsFR','19074zYQcBW','26511veRaiB','26570hJaSPk','decorate','20KjRebZ','1740cnhjig','./config/config.default','Configuration'];a1_0x5deb=function(){return _0xf40098;};return a1_0x5deb();}
1
+ 'use strict';var a1_0x52240b=a1_0x1faf;(function(_0xb4ac8d,_0x491b45){var _0x46dbe3=a1_0x1faf,_0x4a9677=_0xb4ac8d();while(!![]){try{var _0x169bd6=parseInt(_0x46dbe3(0x181))/0x1+-parseInt(_0x46dbe3(0x17f))/0x2+-parseInt(_0x46dbe3(0x179))/0x3+-parseInt(_0x46dbe3(0x184))/0x4+parseInt(_0x46dbe3(0x174))/0x5+parseInt(_0x46dbe3(0x175))/0x6*(parseInt(_0x46dbe3(0x17c))/0x7)+-parseInt(_0x46dbe3(0x176))/0x8*(-parseInt(_0x46dbe3(0x185))/0x9);if(_0x169bd6===_0x491b45)break;else _0x4a9677['push'](_0x4a9677['shift']());}catch(_0x4fd809){_0x4a9677['push'](_0x4a9677['shift']());}}}(a1_0x1c4e,0x60fa3));var __decorate=this&&this[a1_0x52240b(0x183)]||function(_0x45554b,_0x4e26b5,_0x589b69,_0x5489d0){var _0x2ff012=a1_0x52240b,_0x20b2cd=arguments['length'],_0x41ebcf=_0x20b2cd<0x3?_0x4e26b5:_0x5489d0===null?_0x5489d0=Object['getOwnPropertyDescriptor'](_0x4e26b5,_0x589b69):_0x5489d0,_0x246edd;if(typeof Reflect===_0x2ff012(0x180)&&typeof Reflect[_0x2ff012(0x178)]==='function')_0x41ebcf=Reflect[_0x2ff012(0x178)](_0x45554b,_0x4e26b5,_0x589b69,_0x5489d0);else{for(var _0x503f41=_0x45554b['length']-0x1;_0x503f41>=0x0;_0x503f41--)if(_0x246edd=_0x45554b[_0x503f41])_0x41ebcf=(_0x20b2cd<0x3?_0x246edd(_0x41ebcf):_0x20b2cd>0x3?_0x246edd(_0x4e26b5,_0x589b69,_0x41ebcf):_0x246edd(_0x4e26b5,_0x589b69))||_0x41ebcf;}return _0x20b2cd>0x3&&_0x41ebcf&&Object[_0x2ff012(0x17b)](_0x4e26b5,_0x589b69,_0x41ebcf),_0x41ebcf;};function a1_0x1c4e(){var _0x4c08f4=['858832ITcshf','5319603XvvYSo','16015WYsAti','30kMIgAP','8ZdFQpv','CustomConfiguration','decorate','990021Cniuat','@midwayjs/core','defineProperty','571298HBycJV','./config/config.default','Configuration','852106emXWAU','object','365647gzHuUl','anncic-api:cache','__decorate'];a1_0x1c4e=function(){return _0x4c08f4;};return a1_0x1c4e();}function a1_0x1faf(_0xee71b1,_0x28d775){var _0x1c4ed2=a1_0x1c4e();return a1_0x1faf=function(_0x1faf72,_0x4fe212){_0x1faf72=_0x1faf72-0x174;var _0x459cca=_0x1c4ed2[_0x1faf72];return _0x459cca;},a1_0x1faf(_0xee71b1,_0x28d775);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x52240b(0x177)]=void 0x0;const core_1=require(a1_0x52240b(0x17a)),ConfigDefault=require(a1_0x52240b(0x17d));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x52240b(0x17e)])({'conflictCheck':![],'namespace':a1_0x52240b(0x182),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x52240b(0x177)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0xc813ef=a2_0x5e44;function a2_0x5e44(_0x193666,_0x22fa7c){const _0x30f06f=a2_0x30f0();return a2_0x5e44=function(_0x5e4479,_0xc27730){_0x5e4479=_0x5e4479-0x11d;let _0x196b2b=_0x30f06f[_0x5e4479];return _0x196b2b;},a2_0x5e44(_0x193666,_0x22fa7c);}function a2_0x30f0(){const _0x32a9a0=['780988lmyAkc','__esModule','apply','use','42NKULLP','3024lKGYOO','1009526XyvvnJ','defineProperty','3054920gBmWIS','crypto-js','57918iZwOKa','REQUEST_OBJ_CTX_KEY','getAsync','1497528bebILS','168860FRmbVh','getApplicationContext','10746VOKtfo','set','15gtlZnA','app','Cache','11oNlkMb','MD5','stringify','parse'];a2_0x30f0=function(){return _0x32a9a0;};return a2_0x30f0();}(function(_0xed757f,_0x19cec9){const _0x26eca1=a2_0x5e44,_0x4f3a5d=_0xed757f();while(!![]){try{const _0x1bb285=parseInt(_0x26eca1(0x11f))/0x1*(parseInt(_0x26eca1(0x130))/0x2)+-parseInt(_0x26eca1(0x133))/0x3+-parseInt(_0x26eca1(0x126))/0x4+-parseInt(_0x26eca1(0x134))/0x5*(-parseInt(_0x26eca1(0x12a))/0x6)+parseInt(_0x26eca1(0x12c))/0x7+-parseInt(_0x26eca1(0x12b))/0x8*(-parseInt(_0x26eca1(0x11d))/0x9)+-parseInt(_0x26eca1(0x12e))/0xa*(parseInt(_0x26eca1(0x122))/0xb);if(_0x1bb285===_0x19cec9)break;else _0x4f3a5d['push'](_0x4f3a5d['shift']());}catch(_0xfb789f){_0x4f3a5d['push'](_0x4f3a5d['shift']());}}}(a2_0x30f0,0x410b8));Object[a2_0xc813ef(0x12d)](exports,a2_0xc813ef(0x127),{'value':!![]}),exports[a2_0xc813ef(0x121)]=void 0x0;const crypto_js_1=require(a2_0xc813ef(0x12f)),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function Cache(_0x433d96,_0x366f14){return(_0x1a4125,_0xbad9f9,_0x3a3361)=>{const _0x374a97=_0x3a3361['value'];return _0x3a3361['value']=async function(..._0x139959){const _0x25f354=a2_0x5e44;!_0x433d96&&(_0x433d96=(0x0,crypto_js_1[_0x25f354(0x123)])(JSON['stringify'](_0x139959))['toString']());let _0x503ecc=await this[core_1[_0x25f354(0x131)]][_0x25f354(0x120)][_0x25f354(0x135)]()[_0x25f354(0x132)](CacheService_1['CacheService']),_0x510379=await _0x503ecc[_0x25f354(0x129)]('Method::Decorator')['get'](_0x433d96);if(_0x510379)return JSON[_0x25f354(0x125)](_0x510379);else _0x510379=await _0x374a97[_0x25f354(0x128)](this,[..._0x139959]),await _0x503ecc[_0x25f354(0x129)]('Method::Decorator')[_0x25f354(0x11e)](_0x433d96,JSON[_0x25f354(0x124)](_0x510379),_0x366f14);return _0x510379;},_0x3a3361;};}exports[a2_0xc813ef(0x121)]=Cache;
1
+ 'use strict';function a2_0x4606(_0x36a683,_0x3a87f3){const _0xd4cedf=a2_0xd4ce();return a2_0x4606=function(_0x4606c3,_0x555d9e){_0x4606c3=_0x4606c3-0x160;let _0x176308=_0xd4cedf[_0x4606c3];return _0x176308;},a2_0x4606(_0x36a683,_0x3a87f3);}const a2_0x3cbd98=a2_0x4606;function a2_0xd4ce(){const _0x16fcac=['847116CjTSui','REQUEST_OBJ_CTX_KEY','stringify','1783278CpBAVm','Method::Decorator','CacheService','defineProperty','parse','set','1413783ftZaAE','10735aWoYnF','getApplicationContext','value','Cache','use','78pjePUC','507515wxKlDI','__esModule','4802850DvrdVw','@midwayjs/core','88kTANYS','get','8714230hZPMSl','crypto-js'];a2_0xd4ce=function(){return _0x16fcac;};return a2_0xd4ce();}(function(_0x2659da,_0x50a24a){const _0x1487d8=a2_0x4606,_0x20d880=_0x2659da();while(!![]){try{const _0x7680ce=-parseInt(_0x1487d8(0x165))/0x1*(-parseInt(_0x1487d8(0x16a))/0x2)+parseInt(_0x1487d8(0x164))/0x3+-parseInt(_0x1487d8(0x173))/0x4+-parseInt(_0x1487d8(0x16b))/0x5+-parseInt(_0x1487d8(0x16d))/0x6+-parseInt(_0x1487d8(0x171))/0x7+parseInt(_0x1487d8(0x16f))/0x8*(parseInt(_0x1487d8(0x176))/0x9);if(_0x7680ce===_0x50a24a)break;else _0x20d880['push'](_0x20d880['shift']());}catch(_0x48bd13){_0x20d880['push'](_0x20d880['shift']());}}}(a2_0xd4ce,0xad8b9));Object[a2_0x3cbd98(0x161)](exports,a2_0x3cbd98(0x16c),{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x3cbd98(0x172)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x3cbd98(0x16e));function Cache(_0x68c760,_0x54259e){return(_0x179482,_0x2fc231,_0x42c227)=>{const _0x523837=a2_0x4606,_0x4719cc=_0x42c227['value'];return _0x42c227[_0x523837(0x167)]=async function(..._0x5bf696){const _0x38ffa3=_0x523837;!_0x68c760&&(_0x68c760=(0x0,crypto_js_1['MD5'])(JSON[_0x38ffa3(0x175)](_0x5bf696))['toString']());let _0x2a01e8=await this[core_1[_0x38ffa3(0x174)]]['app'][_0x38ffa3(0x166)]()['getAsync'](CacheService_1[_0x38ffa3(0x160)]),_0x3f3fe4=await _0x2a01e8[_0x38ffa3(0x169)](_0x38ffa3(0x177))[_0x38ffa3(0x170)](_0x68c760);if(_0x3f3fe4)return JSON[_0x38ffa3(0x162)](_0x3f3fe4);else _0x3f3fe4=await _0x4719cc['apply'](this,[..._0x5bf696]),await _0x2a01e8[_0x38ffa3(0x169)](_0x38ffa3(0x177))[_0x38ffa3(0x163)](_0x68c760,JSON[_0x38ffa3(0x175)](_0x3f3fe4),_0x54259e);return _0x3f3fe4;},_0x42c227;};}exports[a2_0x3cbd98(0x168)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a3_0x38d1(_0x34b9a9,_0x1b6c22){var _0x21789e=a3_0x2178();return a3_0x38d1=function(_0x38d1fc,_0x1947bc){_0x38d1fc=_0x38d1fc-0x79;var _0xc9fcbd=_0x21789e[_0x38d1fc];return _0xc9fcbd;},a3_0x38d1(_0x34b9a9,_0x1b6c22);}var a3_0x1a2989=a3_0x38d1;function a3_0x2178(){var _0x4eaeb5=['CustomConfiguration','15oZoPua','608802cHsWbG','Cache','989756iLEOCe','CacheService','695564abPWyJ','9231656Zbcddl','__esModule','defineProperty','12533094zKuBAL','Configuration','8LyTMvw','27614480avjrzQ','6172960cUlpsB','2aWkGEY','./service/CacheService','./configuration'];a3_0x2178=function(){return _0x4eaeb5;};return a3_0x2178();}(function(_0xece00c,_0x34a5de){var _0x4822cc=a3_0x38d1,_0x7a8a62=_0xece00c();while(!![]){try{var _0x10a153=parseInt(_0x4822cc(0x8a))/0x1*(parseInt(_0x4822cc(0x81))/0x2)+-parseInt(_0x4822cc(0x85))/0x3*(-parseInt(_0x4822cc(0x88))/0x4)+-parseInt(_0x4822cc(0x80))/0x5+parseInt(_0x4822cc(0x86))/0x6+parseInt(_0x4822cc(0x79))/0x7+-parseInt(_0x4822cc(0x7e))/0x8*(-parseInt(_0x4822cc(0x7c))/0x9)+-parseInt(_0x4822cc(0x7f))/0xa;if(_0x10a153===_0x34a5de)break;else _0x7a8a62['push'](_0x7a8a62['shift']());}catch(_0x3615d7){_0x7a8a62['push'](_0x7a8a62['shift']());}}}(a3_0x2178,0xb6ff8));Object[a3_0x1a2989(0x7b)](exports,a3_0x1a2989(0x7a),{'value':!![]}),exports[a3_0x1a2989(0x89)]=exports['Cache']=exports[a3_0x1a2989(0x7d)]=void 0x0;var configuration_1=require(a3_0x1a2989(0x83));Object[a3_0x1a2989(0x7b)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x2c1d83=a3_0x1a2989;return configuration_1[_0x2c1d83(0x84)];}});var Cache_1=require('./decorator/Cache');Object[a3_0x1a2989(0x7b)](exports,a3_0x1a2989(0x87),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x1a2989(0x82));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x5f4e99=a3_0x1a2989;return CacheService_1[_0x5f4e99(0x89)];}});
1
+ 'use strict';function a3_0xb4a2(_0x370b9f,_0x5eee09){var _0x2b36b8=a3_0x2b36();return a3_0xb4a2=function(_0xb4a2a4,_0x4d8e3f){_0xb4a2a4=_0xb4a2a4-0x75;var _0x51d394=_0x2b36b8[_0xb4a2a4];return _0x51d394;},a3_0xb4a2(_0x370b9f,_0x5eee09);}var a3_0x48874c=a3_0xb4a2;(function(_0x565d9e,_0x299d57){var _0x412041=a3_0xb4a2,_0x395014=_0x565d9e();while(!![]){try{var _0x5d752c=parseInt(_0x412041(0x81))/0x1*(parseInt(_0x412041(0x85))/0x2)+parseInt(_0x412041(0x82))/0x3*(parseInt(_0x412041(0x7d))/0x4)+parseInt(_0x412041(0x7e))/0x5*(-parseInt(_0x412041(0x83))/0x6)+parseInt(_0x412041(0x84))/0x7*(-parseInt(_0x412041(0x7a))/0x8)+-parseInt(_0x412041(0x77))/0x9*(parseInt(_0x412041(0x86))/0xa)+parseInt(_0x412041(0x78))/0xb+-parseInt(_0x412041(0x7b))/0xc;if(_0x5d752c===_0x299d57)break;else _0x395014['push'](_0x395014['shift']());}catch(_0x5be3c8){_0x395014['push'](_0x395014['shift']());}}}(a3_0x2b36,0xa7c5b));Object[a3_0x48874c(0x79)](exports,a3_0x48874c(0x76),{'value':!![]}),exports['CacheService']=exports['Cache']=exports[a3_0x48874c(0x87)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x48874c(0x79)](exports,a3_0x48874c(0x87),{'enumerable':!![],'get':function(){var _0x181c5a=a3_0x48874c;return configuration_1[_0x181c5a(0x7c)];}});var Cache_1=require(a3_0x48874c(0x75));function a3_0x2b36(){var _0x5519ea=['665649GwAlhH','2964WqhGSD','6YmLrrs','3808FVhEre','4sKwjSm','400070rDdtJt','Configuration','Cache','./decorator/Cache','__esModule','9srUMmN','5051101oxbLnk','defineProperty','19000UAXhlf','32640YtcNaE','CustomConfiguration','2144FQRrON','1490675CEfiBP','./service/CacheService','CacheService'];a3_0x2b36=function(){return _0x5519ea;};return a3_0x2b36();}Object[a3_0x48874c(0x79)](exports,a3_0x48874c(0x88),{'enumerable':!![],'get':function(){var _0x47c0af=a3_0x48874c;return Cache_1[_0x47c0af(0x88)];}});var CacheService_1=require(a3_0x48874c(0x7f));Object[a3_0x48874c(0x79)](exports,a3_0x48874c(0x80),{'enumerable':!![],'get':function(){var _0x4eb294=a3_0x48874c;return CacheService_1[_0x4eb294(0x80)];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x1b168e=a4_0x47e4;(function(_0x4a2d1b,_0x204c53){var _0x29a73a=a4_0x47e4,_0x37f89f=_0x4a2d1b();while(!![]){try{var _0x5a6d03=-parseInt(_0x29a73a(0x1b0))/0x1+-parseInt(_0x29a73a(0x1b3))/0x2*(-parseInt(_0x29a73a(0x1d4))/0x3)+parseInt(_0x29a73a(0x1bf))/0x4*(parseInt(_0x29a73a(0x1b1))/0x5)+parseInt(_0x29a73a(0x1d2))/0x6+parseInt(_0x29a73a(0x1c7))/0x7*(parseInt(_0x29a73a(0x1c5))/0x8)+-parseInt(_0x29a73a(0x1c9))/0x9+-parseInt(_0x29a73a(0x1b4))/0xa*(parseInt(_0x29a73a(0x1b6))/0xb);if(_0x5a6d03===_0x204c53)break;else _0x37f89f['push'](_0x37f89f['shift']());}catch(_0x3f2cd2){_0x37f89f['push'](_0x37f89f['shift']());}}}(a4_0x20cb,0x4904d));function a4_0x20cb(){var _0x57abd7=['getOwnPropertyDescriptor','121KEgzqf','Scope','Singleton','caching','reset','options','file','stores','clients','1063148VHdOaB','hset','function','design:type','set','@midwayjs/core','32SENInh','del','764176YUdasK','store','1777122NCupha','cache','__metadata','Config','cache-manager','hdel','prefix','metadata','ScopeEnum','1225758fvMkjd','length','234555JBzErL','config','decorate','defineProperty','get','266975oCtwyI','5HcequW','CacheService','2ZyOSdD','201290oNNuFl'];a4_0x20cb=function(){return _0x57abd7;};return a4_0x20cb();}function a4_0x47e4(_0x2025d2,_0x2de090){var _0x20cbe5=a4_0x20cb();return a4_0x47e4=function(_0x47e496,_0x33d74d){_0x47e496=_0x47e496-0x1b0;var _0x293329=_0x20cbe5[_0x47e496];return _0x293329;},a4_0x47e4(_0x2025d2,_0x2de090);}var __decorate=this&&this['__decorate']||function(_0x24f4c1,_0x4e9502,_0x56e3cb,_0x57cd37){var _0x3e7070=a4_0x47e4,_0x2ec58e=arguments[_0x3e7070(0x1d3)],_0x1100b0=_0x2ec58e<0x3?_0x4e9502:_0x57cd37===null?_0x57cd37=Object[_0x3e7070(0x1b5)](_0x4e9502,_0x56e3cb):_0x57cd37,_0x204b1d;if(typeof Reflect==='object'&&typeof Reflect[_0x3e7070(0x1d6)]===_0x3e7070(0x1c1))_0x1100b0=Reflect[_0x3e7070(0x1d6)](_0x24f4c1,_0x4e9502,_0x56e3cb,_0x57cd37);else{for(var _0x46e272=_0x24f4c1[_0x3e7070(0x1d3)]-0x1;_0x46e272>=0x0;_0x46e272--)if(_0x204b1d=_0x24f4c1[_0x46e272])_0x1100b0=(_0x2ec58e<0x3?_0x204b1d(_0x1100b0):_0x2ec58e>0x3?_0x204b1d(_0x4e9502,_0x56e3cb,_0x1100b0):_0x204b1d(_0x4e9502,_0x56e3cb))||_0x1100b0;}return _0x2ec58e>0x3&&_0x1100b0&&Object[_0x3e7070(0x1d7)](_0x4e9502,_0x56e3cb,_0x1100b0),_0x1100b0;},__metadata=this&&this[a4_0x1b168e(0x1cb)]||function(_0x291b24,_0x1c8a6c){var _0x5e19d3=a4_0x1b168e;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x5e19d3(0x1c1))return Reflect[_0x5e19d3(0x1d0)](_0x291b24,_0x1c8a6c);};Object[a4_0x1b168e(0x1d7)](exports,'__esModule',{'value':!![]}),exports[a4_0x1b168e(0x1b2)]=void 0x0;const cacheManager=require(a4_0x1b168e(0x1cd)),core_1=require(a4_0x1b168e(0x1c4));let CacheService=class CacheService{constructor(){var _0x357b34=a4_0x1b168e;this[_0x357b34(0x1ca)]=undefined,this[_0x357b34(0x1be)]=new Map();}['use'](_0x3a2587){var _0x26a69d=a4_0x1b168e,_0x199ca0,_0x1aaa5e;if(!this[_0x26a69d(0x1ca)]){const _0x510ef1=((_0x199ca0=this[_0x26a69d(0x1d5)][_0x26a69d(0x1bd)])===null||_0x199ca0===void 0x0?void 0x0:_0x199ca0[(_0x1aaa5e=this['config'][_0x26a69d(0x1ca)])===null||_0x1aaa5e===void 0x0?void 0x0:_0x1aaa5e['default']])||this[_0x26a69d(0x1d5)][_0x26a69d(0x1bd)][_0x26a69d(0x1bc)];this[_0x26a69d(0x1ca)]=cacheManager[_0x26a69d(0x1b9)]({..._0x510ef1[_0x26a69d(0x1bb)],'store':_0x510ef1[_0x26a69d(0x1c8)]});}return!this['clients']['has'](_0x3a2587)&&this[_0x26a69d(0x1be)]['set'](_0x3a2587,new CacheHandler(_0x3a2587,this[_0x26a69d(0x1ca)])),this['clients'][_0x26a69d(0x1d8)](_0x3a2587);}async['reset'](){var _0x115d43=a4_0x1b168e;return await this['cache'][_0x115d43(0x1ba)]();}};__decorate([(0x0,core_1[a4_0x1b168e(0x1cc)])(a4_0x1b168e(0x1ca)),__metadata(a4_0x1b168e(0x1c2),Object)],CacheService['prototype'],a4_0x1b168e(0x1d5),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x1b168e(0x1b7)])(core_1[a4_0x1b168e(0x1d1)][a4_0x1b168e(0x1b8)])],CacheService),exports[a4_0x1b168e(0x1b2)]=CacheService;class CacheHandler{constructor(_0x44641b,_0x20f55e){var _0x481c21=a4_0x1b168e;this[_0x481c21(0x1ca)]=_0x20f55e,this[_0x481c21(0x1cf)]=_0x44641b;}async[a4_0x1b168e(0x1c6)](_0x4c1b00){var _0x58ba3d=a4_0x1b168e;return await this[_0x58ba3d(0x1ca)][_0x58ba3d(0x1c6)](this['prefix']+':'+_0x4c1b00);}async[a4_0x1b168e(0x1c3)](_0x4d9e5f,_0x1e65eb,_0x5259ef){var _0x5adcc3=a4_0x1b168e;return await this[_0x5adcc3(0x1ca)][_0x5adcc3(0x1c3)](this['prefix']+':'+_0x4d9e5f,_0x1e65eb,_0x5259ef);}async[a4_0x1b168e(0x1d8)](_0x4a5bb9,_0x12cad6){return new Promise((_0xf35e3,_0x5167ff)=>{var _0x1debc3=a4_0x47e4;this['cache'][_0x1debc3(0x1d8)](this[_0x1debc3(0x1cf)]+':'+_0x4a5bb9,(_0x3b2369,_0x17d92a)=>{_0x3b2369?_0x5167ff(_0x3b2369):_0xf35e3(_0x17d92a||_0x12cad6);});});}async[a4_0x1b168e(0x1ce)](_0x3fd6e8,_0x141b5b){var _0x48de38=a4_0x1b168e;return await this[_0x48de38(0x1c6)](_0x3fd6e8+'#'+_0x141b5b);}async[a4_0x1b168e(0x1c0)](_0x5436d2,_0x57df35,_0x5908b1,_0x4daaa8){var _0x2d8d54=a4_0x1b168e;return await this[_0x2d8d54(0x1c3)](_0x5436d2+'#'+_0x57df35,_0x5908b1,_0x4daaa8);}async['hget'](_0x21e927,_0x5106e1,_0x2c407b){var _0x2454d5=a4_0x1b168e;return await this[_0x2454d5(0x1d8)](_0x21e927+'#'+_0x5106e1,_0x2c407b);}}
1
+ 'use strict';var a4_0x1ea317=a4_0x162f;(function(_0xda5e3f,_0x3fb81e){var _0x2842d8=a4_0x162f,_0x2ea6ec=_0xda5e3f();while(!![]){try{var _0x11a436=parseInt(_0x2842d8(0xf9))/0x1*(parseInt(_0x2842d8(0x10a))/0x2)+-parseInt(_0x2842d8(0xf0))/0x3+-parseInt(_0x2842d8(0xf2))/0x4*(-parseInt(_0x2842d8(0xe9))/0x5)+-parseInt(_0x2842d8(0xfb))/0x6*(-parseInt(_0x2842d8(0x107))/0x7)+-parseInt(_0x2842d8(0x104))/0x8+-parseInt(_0x2842d8(0xf7))/0x9+parseInt(_0x2842d8(0x100))/0xa*(parseInt(_0x2842d8(0x105))/0xb);if(_0x11a436===_0x3fb81e)break;else _0x2ea6ec['push'](_0x2ea6ec['shift']());}catch(_0x45bcdd){_0x2ea6ec['push'](_0x2ea6ec['shift']());}}}(a4_0x4fc4,0x9635a));var __decorate=this&&this['__decorate']||function(_0x9d3e93,_0x478707,_0xfe0770,_0x41f2c8){var _0x2df4e2=a4_0x162f,_0x2dc975=arguments[_0x2df4e2(0xe5)],_0x2d66dc=_0x2dc975<0x3?_0x478707:_0x41f2c8===null?_0x41f2c8=Object[_0x2df4e2(0xfa)](_0x478707,_0xfe0770):_0x41f2c8,_0x1add81;if(typeof Reflect===_0x2df4e2(0xfc)&&typeof Reflect[_0x2df4e2(0xed)]===_0x2df4e2(0x101))_0x2d66dc=Reflect[_0x2df4e2(0xed)](_0x9d3e93,_0x478707,_0xfe0770,_0x41f2c8);else{for(var _0x1ae360=_0x9d3e93['length']-0x1;_0x1ae360>=0x0;_0x1ae360--)if(_0x1add81=_0x9d3e93[_0x1ae360])_0x2d66dc=(_0x2dc975<0x3?_0x1add81(_0x2d66dc):_0x2dc975>0x3?_0x1add81(_0x478707,_0xfe0770,_0x2d66dc):_0x1add81(_0x478707,_0xfe0770))||_0x2d66dc;}return _0x2dc975>0x3&&_0x2d66dc&&Object['defineProperty'](_0x478707,_0xfe0770,_0x2d66dc),_0x2d66dc;},__metadata=this&&this[a4_0x1ea317(0x10c)]||function(_0x1bcaef,_0x238b48){var _0x435222=a4_0x1ea317;if(typeof Reflect===_0x435222(0xfc)&&typeof Reflect['metadata']===_0x435222(0x101))return Reflect['metadata'](_0x1bcaef,_0x238b48);};Object[a4_0x1ea317(0xf8)](exports,a4_0x1ea317(0xee),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0x1ea317(0x106)),core_1=require(a4_0x1ea317(0xeb));function a4_0x162f(_0x23c5fb,_0x1e87c2){var _0x4fc461=a4_0x4fc4();return a4_0x162f=function(_0x162f26,_0x55ccf7){_0x162f26=_0x162f26-0xe5;var _0x5c4c82=_0x4fc461[_0x162f26];return _0x5c4c82;},a4_0x162f(_0x23c5fb,_0x1e87c2);}let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x1ea317(0xf3)](_0x532ce0){var _0x4f9473=a4_0x1ea317,_0x450b26,_0x3d7117;if(!this[_0x4f9473(0xf1)]){const _0x7606a1=((_0x450b26=this[_0x4f9473(0xe8)][_0x4f9473(0xff)])===null||_0x450b26===void 0x0?void 0x0:_0x450b26[(_0x3d7117=this[_0x4f9473(0xe8)]['cache'])===null||_0x3d7117===void 0x0?void 0x0:_0x3d7117['default']])||this[_0x4f9473(0xe8)][_0x4f9473(0xff)][_0x4f9473(0xf4)];this[_0x4f9473(0xf1)]=cacheManager[_0x4f9473(0xe6)]({..._0x7606a1['options'],'store':_0x7606a1['store']});}return!this[_0x4f9473(0xfe)][_0x4f9473(0x10d)](_0x532ce0)&&this['clients'][_0x4f9473(0xfd)](_0x532ce0,new CacheHandler(_0x532ce0,this['cache'])),this['clients'][_0x4f9473(0xf6)](_0x532ce0);}async[a4_0x1ea317(0x102)](){return await this['cache']['reset']();}};__decorate([(0x0,core_1['Config'])(a4_0x1ea317(0xf1)),__metadata(a4_0x1ea317(0xe7),Object)],CacheService[a4_0x1ea317(0x108)],a4_0x1ea317(0xe8),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x1ea317(0xf5)])(core_1['ScopeEnum'][a4_0x1ea317(0x109)])],CacheService),exports[a4_0x1ea317(0x103)]=CacheService;function a4_0x4fc4(){var _0x128c18=['design:type','config','600IoWoto','del','@midwayjs/core','hget','decorate','__esModule','prefix','2577198pbqoJT','cache','25744ShxKgS','use','file','Scope','get','10511019pywsJL','defineProperty','3XZDYKt','getOwnPropertyDescriptor','24kgdQPN','object','set','clients','stores','10AtsyCb','function','reset','CacheService','9035304XBoBAk','29470903sHGyBE','cache-manager','412349PflZjm','prototype','Singleton','56338SjFiuy','hset','__metadata','has','length','caching'];a4_0x4fc4=function(){return _0x128c18;};return a4_0x4fc4();}class CacheHandler{constructor(_0x20ae5d,_0x5c3516){var _0x5d87d0=a4_0x1ea317;this['cache']=_0x5c3516,this[_0x5d87d0(0xef)]=_0x20ae5d;}async[a4_0x1ea317(0xea)](_0x5ed07b){var _0x13d8c3=a4_0x1ea317;return await this[_0x13d8c3(0xf1)]['del'](this[_0x13d8c3(0xef)]+':'+_0x5ed07b);}async[a4_0x1ea317(0xfd)](_0x3e22c0,_0x44833e,_0x1b08b6){var _0x5a8e93=a4_0x1ea317;return await this[_0x5a8e93(0xf1)][_0x5a8e93(0xfd)](this[_0x5a8e93(0xef)]+':'+_0x3e22c0,_0x44833e,_0x1b08b6);}async[a4_0x1ea317(0xf6)](_0x46708a,_0x59eb63){return new Promise((_0x162237,_0x3b1400)=>{var _0x2694ef=a4_0x162f;this[_0x2694ef(0xf1)][_0x2694ef(0xf6)](this['prefix']+':'+_0x46708a,(_0x4fba5b,_0x27859f)=>{_0x4fba5b?_0x3b1400(_0x4fba5b):_0x162237(_0x27859f||_0x59eb63);});});}async['hdel'](_0x3ac690,_0x5003c5){var _0x4599b5=a4_0x1ea317;return await this[_0x4599b5(0xea)](_0x3ac690+'#'+_0x5003c5);}async[a4_0x1ea317(0x10b)](_0x32c352,_0x29bd7d,_0x577647,_0x30e3cd){var _0x1ca0f1=a4_0x1ea317;return await this[_0x1ca0f1(0xfd)](_0x32c352+'#'+_0x29bd7d,_0x577647,_0x30e3cd);}async[a4_0x1ea317(0xec)](_0x5e90a5,_0x9f8e96,_0x525090){return await this['get'](_0x5e90a5+'#'+_0x9f8e96,_0x525090);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
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": "0c4a608b473a8cc5a0470ab0a1a60647dc03787e"
26
+ "gitHead": "864964ba61f2a0edc08575c25cc548d2c9cad87d"
27
27
  }