@anveroapi/cache 4.1.4 → 4.1.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
- const a0_0x224d65=a0_0x2b42;(function(_0x50c08e,_0x4b0600){const _0x8131a9=a0_0x2b42,_0x5a565f=_0x50c08e();while(!![]){try{const _0x1d8d22=-parseInt(_0x8131a9(0x154))/0x1*(parseInt(_0x8131a9(0x151))/0x2)+parseInt(_0x8131a9(0x14d))/0x3+parseInt(_0x8131a9(0x152))/0x4+-parseInt(_0x8131a9(0x155))/0x5*(-parseInt(_0x8131a9(0x14c))/0x6)+-parseInt(_0x8131a9(0x15c))/0x7+-parseInt(_0x8131a9(0x156))/0x8+parseInt(_0x8131a9(0x161))/0x9;if(_0x1d8d22===_0x4b0600)break;else _0x5a565f['push'](_0x5a565f['shift']());}catch(_0x233332){_0x5a565f['push'](_0x5a565f['shift']());}}}(a0_0x107e,0xd1e23));const a0_0x3d094b=(function(){let _0x472e27=!![];return function(_0x159933,_0x3bf34d){const _0x51d9c4=_0x472e27?function(){const _0x315e79=a0_0x2b42;if(_0x3bf34d){const _0xd4c721=_0x3bf34d[_0x315e79(0x15e)](_0x159933,arguments);return _0x3bf34d=null,_0xd4c721;}}:function(){};return _0x472e27=![],_0x51d9c4;};}()),a0_0x2b3658=a0_0x3d094b(this,function(){const _0x36c87e=a0_0x2b42;return a0_0x2b3658[_0x36c87e(0x15d)]()['search'](_0x36c87e(0x158))['toString']()[_0x36c87e(0x15b)](a0_0x2b3658)[_0x36c87e(0x153)](_0x36c87e(0x158));});function a0_0x107e(){const _0x3440d7=['cache-manager-ioredis','__esModule','memory','834478hajUXJ','4383308CmRpRw','search','2fNRpal','13785zkTnOd','11412072FJuXPF','cache-manager-fs-hash','(((.+)+)+)+$','appDir','defineProperty','constructor','8032920geeHNi','toString','apply','env','name','7372872kMSWUD','2154AfAKJE','4090296yWPmDM'];a0_0x107e=function(){return _0x3440d7;};return a0_0x107e();}a0_0x2b3658();'use strict';Object[a0_0x224d65(0x15a)](exports,a0_0x224d65(0x14f),{'value':!![]});function a0_0x2b42(_0x513ae8,_0x37bed9){_0x513ae8=_0x513ae8-0x14c;const _0x518026=a0_0x107e();let _0x2b3658=_0x518026[_0x513ae8];return _0x2b3658;}const fsStore=require(a0_0x224d65(0x157)),redisStore=require(a0_0x224d65(0x14e));exports['default']=_0x252c83=>{const _0x50edb2=a0_0x224d65;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x252c83[_0x50edb2(0x159)]+'/runtime/.cache'+((_0x252c83===null||_0x252c83===void 0x0?void 0x0:_0x252c83[_0x50edb2(0x15f)])?'-'+_0x252c83[_0x50edb2(0x15f)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x252c83[_0x50edb2(0x160)]+':'+((_0x252c83===null||_0x252c83===void 0x0?void 0x0:_0x252c83[_0x50edb2(0x15f)])?_0x252c83[_0x50edb2(0x15f)]+':':'')}},'memory':{'store':_0x50edb2(0x150),'options':{'max':0x64}}}}};};
1
+ const a0_0x1f1fa4=a0_0x175a;(function(_0x1a3a10,_0x22d0cf){const _0x29b6ad=a0_0x175a,_0x512a9e=_0x1a3a10();while(!![]){try{const _0x446336=-parseInt(_0x29b6ad(0x197))/0x1*(-parseInt(_0x29b6ad(0x189))/0x2)+parseInt(_0x29b6ad(0x196))/0x3+parseInt(_0x29b6ad(0x19b))/0x4+parseInt(_0x29b6ad(0x194))/0x5+parseInt(_0x29b6ad(0x190))/0x6+parseInt(_0x29b6ad(0x18a))/0x7*(parseInt(_0x29b6ad(0x193))/0x8)+-parseInt(_0x29b6ad(0x18f))/0x9;if(_0x446336===_0x22d0cf)break;else _0x512a9e['push'](_0x512a9e['shift']());}catch(_0x153cc1){_0x512a9e['push'](_0x512a9e['shift']());}}}(a0_0x26db,0xce4d7));const a0_0x382626=(function(){let _0x33afb5=!![];return function(_0x26377a,_0x1112c5){const _0x414e4f=_0x33afb5?function(){const _0x5b8f14=a0_0x175a;if(_0x1112c5){const _0x268af0=_0x1112c5[_0x5b8f14(0x19e)](_0x26377a,arguments);return _0x1112c5=null,_0x268af0;}}:function(){};return _0x33afb5=![],_0x414e4f;};}()),a0_0x2f8f03=a0_0x382626(this,function(){const _0x3cf874=a0_0x175a;return a0_0x2f8f03[_0x3cf874(0x188)]()[_0x3cf874(0x18b)](_0x3cf874(0x191))[_0x3cf874(0x188)]()[_0x3cf874(0x198)](a0_0x2f8f03)[_0x3cf874(0x18b)](_0x3cf874(0x191));});function a0_0x26db(){const _0x493be9=['46352016PDQhhy','1853208wwkIal','(((.+)+)+)+$','defineProperty','206992XxuRjQ','6514370sVnmvY','cache-manager-fs-hash','3863883XWHqGc','293OyJjvZ','constructor','name','cache-manager-ioredis','1437496wjOuIL','file','memory','apply','env','appDir','toString','10376GuVEAJ','329lUivtO','search','/runtime/.cache','default','__esModule'];a0_0x26db=function(){return _0x493be9;};return a0_0x26db();}a0_0x2f8f03();'use strict';function a0_0x175a(_0x11da83,_0x568443){_0x11da83=_0x11da83-0x187;const _0x4a68af=a0_0x26db();let _0x2f8f03=_0x4a68af[_0x11da83];return _0x2f8f03;}Object[a0_0x1f1fa4(0x192)](exports,a0_0x1f1fa4(0x18e),{'value':!![]});const fsStore=require(a0_0x1f1fa4(0x195)),redisStore=require(a0_0x1f1fa4(0x19a));exports[a0_0x1f1fa4(0x18d)]=_0x2c6b60=>{const _0x2f2e08=a0_0x1f1fa4;return{'cache':{'default':_0x2f2e08(0x19c),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x2c6b60[_0x2f2e08(0x187)]+_0x2f2e08(0x18c)+((_0x2c6b60===null||_0x2c6b60===void 0x0?void 0x0:_0x2c6b60[_0x2f2e08(0x19f)])?'-'+_0x2c6b60[_0x2f2e08(0x19f)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x2c6b60[_0x2f2e08(0x199)]+':'+((_0x2c6b60===null||_0x2c6b60===void 0x0?void 0x0:_0x2c6b60[_0x2f2e08(0x19f)])?_0x2c6b60[_0x2f2e08(0x19f)]+':':'')}},'memory':{'store':_0x2f2e08(0x19d),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x395ca2=a1_0x285c;(function(_0x2bc624,_0x4bcbc6){var _0x2f8d2d=a1_0x285c,_0x25c131=_0x2bc624();while(!![]){try{var _0x1efd8a=-parseInt(_0x2f8d2d(0x1e9))/0x1*(parseInt(_0x2f8d2d(0x1df))/0x2)+-parseInt(_0x2f8d2d(0x1e2))/0x3*(parseInt(_0x2f8d2d(0x1ee))/0x4)+-parseInt(_0x2f8d2d(0x1e0))/0x5*(-parseInt(_0x2f8d2d(0x1f0))/0x6)+-parseInt(_0x2f8d2d(0x1e6))/0x7+-parseInt(_0x2f8d2d(0x1de))/0x8+-parseInt(_0x2f8d2d(0x1e5))/0x9*(-parseInt(_0x2f8d2d(0x1f2))/0xa)+-parseInt(_0x2f8d2d(0x1e8))/0xb*(-parseInt(_0x2f8d2d(0x1ef))/0xc);if(_0x1efd8a===_0x4bcbc6)break;else _0x25c131['push'](_0x25c131['shift']());}catch(_0x331980){_0x25c131['push'](_0x25c131['shift']());}}}(a1_0x2ad2,0x34120));var a1_0x1aad7e=(function(){var _0x1ef180=!![];return function(_0x5ba2d4,_0x373fe3){var _0x30d83e=_0x1ef180?function(){if(_0x373fe3){var _0x526855=_0x373fe3['apply'](_0x5ba2d4,arguments);return _0x373fe3=null,_0x526855;}}:function(){};return _0x1ef180=![],_0x30d83e;};}()),a1_0x4cee39=a1_0x1aad7e(this,function(){var _0x327844=a1_0x285c;return a1_0x4cee39[_0x327844(0x1ec)]()[_0x327844(0x1e1)]('(((.+)+)+)+$')[_0x327844(0x1ec)]()[_0x327844(0x1e3)](a1_0x4cee39)[_0x327844(0x1e1)](_0x327844(0x1ea));});a1_0x4cee39();'use strict';var __decorate=this&&this[a1_0x395ca2(0x1f5)]||function(_0x211d0e,_0x3bcc12,_0x2bbd1a,_0x5b0663){var _0x34d9b8=a1_0x395ca2,_0x528aeb=arguments[_0x34d9b8(0x1f4)],_0x4a357c=_0x528aeb<0x3?_0x3bcc12:_0x5b0663===null?_0x5b0663=Object[_0x34d9b8(0x1f3)](_0x3bcc12,_0x2bbd1a):_0x5b0663,_0x231533;if(typeof Reflect===_0x34d9b8(0x1dd)&&typeof Reflect[_0x34d9b8(0x1eb)]==='function')_0x4a357c=Reflect[_0x34d9b8(0x1eb)](_0x211d0e,_0x3bcc12,_0x2bbd1a,_0x5b0663);else{for(var _0x1d1740=_0x211d0e[_0x34d9b8(0x1f4)]-0x1;_0x1d1740>=0x0;_0x1d1740--)if(_0x231533=_0x211d0e[_0x1d1740])_0x4a357c=(_0x528aeb<0x3?_0x231533(_0x4a357c):_0x528aeb>0x3?_0x231533(_0x3bcc12,_0x2bbd1a,_0x4a357c):_0x231533(_0x3bcc12,_0x2bbd1a))||_0x4a357c;}return _0x528aeb>0x3&&_0x4a357c&&Object['defineProperty'](_0x3bcc12,_0x2bbd1a,_0x4a357c),_0x4a357c;};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x395ca2(0x1f1)]=void 0x0;const core_1=require(a1_0x395ca2(0x1e7)),ConfigDefault=require(a1_0x395ca2(0x1f6));function a1_0x285c(_0x13bea7,_0x56a655){_0x13bea7=_0x13bea7-0x1dd;var _0x34a2ec=a1_0x2ad2();var _0x4cee39=_0x34a2ec[_0x13bea7];return _0x4cee39;}let CustomConfiguration=class CustomConfiguration{};function a1_0x2ad2(){var _0x2c64eb=['length','__decorate','./config/config.default','object','2413408rjfNNG','86088ZGQKxp','55tSuuHE','search','34665kHHpXR','constructor','Configuration','144LLocPc','1651153ReAklp','@midwayjs/core','11XnNDFL','4VvlDDi','(((.+)+)+)+$','decorate','toString','anvero-api:cache','40XqwRnU','9433692sKlQKs','112488fRIwXP','CustomConfiguration','28870QwCpmy','getOwnPropertyDescriptor'];a1_0x2ad2=function(){return _0x2c64eb;};return a1_0x2ad2();}exports[a1_0x395ca2(0x1f1)]=CustomConfiguration,exports[a1_0x395ca2(0x1f1)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x395ca2(0x1e4)])({'namespace':a1_0x395ca2(0x1ed),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ function a1_0x19cf(_0x3cc3b2,_0x544a5f){_0x3cc3b2=_0x3cc3b2-0x95;var _0x1b7396=a1_0x5a68();var _0x2b83e4=_0x1b7396[_0x3cc3b2];return _0x2b83e4;}var a1_0x5d3e80=a1_0x19cf;function a1_0x5a68(){var _0x271b40=['search','defineProperty','__esModule','decorate','anvero-api:cache','toString','2zKHtAn','(((.+)+)+)+$','26559648nqADSo','length','1253718gBNtNl','CustomConfiguration','1613248ktZybU','7087520ITURZB','4064856AMWcvG','Configuration','apply','2956468bXWwXW','__decorate','5khZgcO','1321212AfmTOr','function','@midwayjs/core'];a1_0x5a68=function(){return _0x271b40;};return a1_0x5a68();}(function(_0x13207a,_0x3699a6){var _0x4a877a=a1_0x19cf,_0xa80360=_0x13207a();while(!![]){try{var _0x4fdec1=-parseInt(_0x4a877a(0x9f))/0x1+-parseInt(_0x4a877a(0x9b))/0x2*(parseInt(_0x4a877a(0xa9))/0x3)+-parseInt(_0x4a877a(0xa6))/0x4*(-parseInt(_0x4a877a(0xa8))/0x5)+-parseInt(_0x4a877a(0xa3))/0x6+parseInt(_0x4a877a(0xa1))/0x7+-parseInt(_0x4a877a(0xa2))/0x8+parseInt(_0x4a877a(0x9d))/0x9;if(_0x4fdec1===_0x3699a6)break;else _0xa80360['push'](_0xa80360['shift']());}catch(_0x418ee5){_0xa80360['push'](_0xa80360['shift']());}}}(a1_0x5a68,0xa1e4b));var a1_0x1f1392=(function(){var _0x8c31b4=!![];return function(_0x4bb559,_0x1f5200){var _0x1c10ff=_0x8c31b4?function(){var _0x3c9ba3=a1_0x19cf;if(_0x1f5200){var _0x436870=_0x1f5200[_0x3c9ba3(0xa5)](_0x4bb559,arguments);return _0x1f5200=null,_0x436870;}}:function(){};return _0x8c31b4=![],_0x1c10ff;};}()),a1_0x2b83e4=a1_0x1f1392(this,function(){var _0x54dbc5=a1_0x19cf;return a1_0x2b83e4[_0x54dbc5(0x9a)]()['search'](_0x54dbc5(0x9c))['toString']()['constructor'](a1_0x2b83e4)[_0x54dbc5(0x95)]('(((.+)+)+)+$');});a1_0x2b83e4();'use strict';var __decorate=this&&this[a1_0x5d3e80(0xa7)]||function(_0x1e69f1,_0x410853,_0x47013a,_0x381900){var _0x3ce31c=a1_0x5d3e80,_0x5270e3=arguments[_0x3ce31c(0x9e)],_0x1c44e4=_0x5270e3<0x3?_0x410853:_0x381900===null?_0x381900=Object['getOwnPropertyDescriptor'](_0x410853,_0x47013a):_0x381900,_0x3a4eaa;if(typeof Reflect==='object'&&typeof Reflect[_0x3ce31c(0x98)]===_0x3ce31c(0xaa))_0x1c44e4=Reflect['decorate'](_0x1e69f1,_0x410853,_0x47013a,_0x381900);else{for(var _0x647b68=_0x1e69f1[_0x3ce31c(0x9e)]-0x1;_0x647b68>=0x0;_0x647b68--)if(_0x3a4eaa=_0x1e69f1[_0x647b68])_0x1c44e4=(_0x5270e3<0x3?_0x3a4eaa(_0x1c44e4):_0x5270e3>0x3?_0x3a4eaa(_0x410853,_0x47013a,_0x1c44e4):_0x3a4eaa(_0x410853,_0x47013a))||_0x1c44e4;}return _0x5270e3>0x3&&_0x1c44e4&&Object[_0x3ce31c(0x96)](_0x410853,_0x47013a,_0x1c44e4),_0x1c44e4;};Object[a1_0x5d3e80(0x96)](exports,a1_0x5d3e80(0x97),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x5d3e80(0xab)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports[a1_0x5d3e80(0xa0)]=CustomConfiguration,exports[a1_0x5d3e80(0xa0)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x5d3e80(0xa4)])({'namespace':a1_0x5d3e80(0x99),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x201e85=a2_0x5c3e;(function(_0x495e60,_0x22da00){const _0x5e82fe=a2_0x5c3e,_0x1da484=_0x495e60();while(!![]){try{const _0x1d8cd9=-parseInt(_0x5e82fe(0xaa))/0x1+parseInt(_0x5e82fe(0xbf))/0x2+-parseInt(_0x5e82fe(0xc2))/0x3*(-parseInt(_0x5e82fe(0xa8))/0x4)+-parseInt(_0x5e82fe(0xa7))/0x5+-parseInt(_0x5e82fe(0xb6))/0x6+-parseInt(_0x5e82fe(0xbe))/0x7+parseInt(_0x5e82fe(0xbd))/0x8*(parseInt(_0x5e82fe(0xb7))/0x9);if(_0x1d8cd9===_0x22da00)break;else _0x1da484['push'](_0x1da484['shift']());}catch(_0x547c9a){_0x1da484['push'](_0x1da484['shift']());}}}(a2_0x2248,0xf1f2a));const a2_0x533004=(function(){let _0x1b41de=!![];return function(_0x5d2606,_0x22fce2){const _0x464f5e=_0x1b41de?function(){const _0x1555d7=a2_0x5c3e;if(_0x22fce2){const _0x485755=_0x22fce2[_0x1555d7(0xb5)](_0x5d2606,arguments);return _0x22fce2=null,_0x485755;}}:function(){};return _0x1b41de=![],_0x464f5e;};}()),a2_0x28ffd6=a2_0x533004(this,function(){const _0x550398=a2_0x5c3e;return a2_0x28ffd6[_0x550398(0xb2)]()[_0x550398(0xaf)]('(((.+)+)+)+$')[_0x550398(0xb2)]()[_0x550398(0xab)](a2_0x28ffd6)[_0x550398(0xaf)](_0x550398(0xa9));});function a2_0x2248(){const _0x40b7f1=['2279876nnGnhL','getApplicationContext','@midwayjs/core','3kCcASo','set','8203860WeJhZI','4178652KyEFRq','(((.+)+)+)+$','1478100QQDOKN','constructor','get','CacheService','MD5','search','value','../service/CacheService','toString','use','Method::Decorator','apply','1130754zdVpuh','369joDUeL','stringify','getAsync','parse','app','REQUEST_OBJ_CTX_KEY','782096INDEhH','13261458upnHNC'];a2_0x2248=function(){return _0x40b7f1;};return a2_0x2248();}a2_0x28ffd6();'use strict';function a2_0x5c3e(_0x356faf,_0x2fa79d){_0x356faf=_0x356faf-0xa6;const _0x121e4b=a2_0x2248();let _0x28ffd6=_0x121e4b[_0x356faf];return _0x28ffd6;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x201e85(0xb1)),core_1=require(a2_0x201e85(0xc1));function json_encode(_0x147f39){const _0x4f608f=a2_0x201e85;try{return JSON[_0x4f608f(0xb8)](_0x147f39);}catch(_0x1b5e48){return undefined;}}function Cache(_0x25b05f,_0x354759){return(_0x1554f1,_0x47b679,_0x1d9f9d)=>{const _0x58d54e=a2_0x5c3e,_0x24bc28=_0x1d9f9d[_0x58d54e(0xb0)];return _0x1d9f9d[_0x58d54e(0xb0)]=async function(..._0x4e3a98){const _0x30290e=_0x58d54e;_0x25b05f=(_0x25b05f?''+_0x25b05f:''+(_0x47b679||''))+'.'+(0x0,crypto_js_1[_0x30290e(0xae)])(json_encode(_0x4e3a98))[_0x30290e(0xb2)]();let _0x21d01c=await this[core_1[_0x30290e(0xbc)]][_0x30290e(0xbb)][_0x30290e(0xc0)]()[_0x30290e(0xb9)](CacheService_1[_0x30290e(0xad)]),_0x258d1a=await _0x21d01c[_0x30290e(0xb3)](_0x30290e(0xb4))[_0x30290e(0xac)](_0x25b05f);if(_0x258d1a)return JSON[_0x30290e(0xba)](_0x258d1a);else _0x258d1a=await _0x24bc28['apply'](this,[..._0x4e3a98]),await _0x21d01c[_0x30290e(0xb3)]('Method::Decorator')[_0x30290e(0xa6)](_0x25b05f,JSON[_0x30290e(0xb8)](_0x258d1a),_0x354759);return _0x258d1a;},_0x1d9f9d;};}
1
+ const a2_0x8bc430=a2_0x3cd2;(function(_0xef51f0,_0x59fdc4){const _0x2375d5=a2_0x3cd2,_0x54c793=_0xef51f0();while(!![]){try{const _0xe257ef=parseInt(_0x2375d5(0x165))/0x1+-parseInt(_0x2375d5(0x167))/0x2*(-parseInt(_0x2375d5(0x16e))/0x3)+-parseInt(_0x2375d5(0x175))/0x4+-parseInt(_0x2375d5(0x16f))/0x5+parseInt(_0x2375d5(0x169))/0x6+parseInt(_0x2375d5(0x170))/0x7+parseInt(_0x2375d5(0x168))/0x8*(-parseInt(_0x2375d5(0x16a))/0x9);if(_0xe257ef===_0x59fdc4)break;else _0x54c793['push'](_0x54c793['shift']());}catch(_0x4c27f1){_0x54c793['push'](_0x54c793['shift']());}}}(a2_0x5ec4,0xa1ced));const a2_0x43c259=(function(){let _0x5b7ebb=!![];return function(_0x4b1dfb,_0x5f0025){const _0x5d6c56=_0x5b7ebb?function(){const _0x477fdf=a2_0x3cd2;if(_0x5f0025){const _0x1978ae=_0x5f0025[_0x477fdf(0x163)](_0x4b1dfb,arguments);return _0x5f0025=null,_0x1978ae;}}:function(){};return _0x5b7ebb=![],_0x5d6c56;};}()),a2_0x60252e=a2_0x43c259(this,function(){const _0x503d17=a2_0x3cd2;return a2_0x60252e['toString']()[_0x503d17(0x179)](_0x503d17(0x176))['toString']()[_0x503d17(0x164)](a2_0x60252e)[_0x503d17(0x179)]('(((.+)+)+)+$');});a2_0x60252e();'use strict';Object[a2_0x8bc430(0x15f)](exports,a2_0x8bc430(0x178),{'value':!![]}),exports[a2_0x8bc430(0x16d)]=Cache;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x8bc430(0x174)),core_1=require(a2_0x8bc430(0x16c));function json_encode(_0x4c9f5f){const _0x268cce=a2_0x8bc430;try{return JSON[_0x268cce(0x160)](_0x4c9f5f);}catch(_0x23e9ee){return undefined;}}function a2_0x5ec4(){const _0x4bd97f=['apply','constructor','1212459evSPoP','get','6CQuTrE','54440hybLiT','5225640sXDzpu','630tXVOub','set','@midwayjs/core','Cache','552003CrNdBf','5138580WOlvYo','5498759BMrtvD','CacheService','REQUEST_OBJ_CTX_KEY','getApplicationContext','../service/CacheService','5016432dMzFMh','(((.+)+)+)+$','use','__esModule','search','Method::Decorator','toString','MD5','defineProperty','stringify','value','getAsync'];a2_0x5ec4=function(){return _0x4bd97f;};return a2_0x5ec4();}function a2_0x3cd2(_0x1afad2,_0x41fffe){_0x1afad2=_0x1afad2-0x15d;const _0x319d78=a2_0x5ec4();let _0x60252e=_0x319d78[_0x1afad2];return _0x60252e;}function Cache(_0x36c031,_0x3cf335){return(_0x2d2032,_0x2bea61,_0x4222e2)=>{const _0x1443c4=a2_0x3cd2,_0x5a5a04=_0x4222e2['value'];return _0x4222e2[_0x1443c4(0x161)]=async function(..._0x64374b){const _0x2d15bc=_0x1443c4;_0x36c031=(_0x36c031?''+_0x36c031:''+(_0x2bea61||''))+'.'+(0x0,crypto_js_1[_0x2d15bc(0x15e)])(json_encode(_0x64374b))[_0x2d15bc(0x15d)]();let _0x137c23=await this[core_1[_0x2d15bc(0x172)]]['app'][_0x2d15bc(0x173)]()[_0x2d15bc(0x162)](CacheService_1[_0x2d15bc(0x171)]),_0x42a8bd=await _0x137c23['use'](_0x2d15bc(0x17a))[_0x2d15bc(0x166)](_0x36c031);if(_0x42a8bd)return JSON['parse'](_0x42a8bd);else _0x42a8bd=await _0x5a5a04[_0x2d15bc(0x163)](this,[..._0x64374b]),await _0x137c23[_0x2d15bc(0x177)](_0x2d15bc(0x17a))[_0x2d15bc(0x16b)](_0x36c031,JSON['stringify'](_0x42a8bd),_0x3cf335);return _0x42a8bd;},_0x4222e2;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x4fdc3b=a3_0x4c01;(function(_0x56df38,_0x3c0931){var _0x25e2f1=a3_0x4c01,_0x2c24fa=_0x56df38();while(!![]){try{var _0xf011fd=-parseInt(_0x25e2f1(0xd0))/0x1+-parseInt(_0x25e2f1(0xc6))/0x2+-parseInt(_0x25e2f1(0xc0))/0x3*(parseInt(_0x25e2f1(0xc7))/0x4)+parseInt(_0x25e2f1(0xd1))/0x5+parseInt(_0x25e2f1(0xc5))/0x6+parseInt(_0x25e2f1(0xcc))/0x7*(parseInt(_0x25e2f1(0xca))/0x8)+-parseInt(_0x25e2f1(0xc3))/0x9*(-parseInt(_0x25e2f1(0xcd))/0xa);if(_0xf011fd===_0x3c0931)break;else _0x2c24fa['push'](_0x2c24fa['shift']());}catch(_0x12d393){_0x2c24fa['push'](_0x2c24fa['shift']());}}}(a3_0x7d80,0x752bf));var a3_0x186877=(function(){var _0xfc0008=!![];return function(_0x17d467,_0x36506f){var _0x41838e=_0xfc0008?function(){if(_0x36506f){var _0x5809e4=_0x36506f['apply'](_0x17d467,arguments);return _0x36506f=null,_0x5809e4;}}:function(){};return _0xfc0008=![],_0x41838e;};}()),a3_0x5dad21=a3_0x186877(this,function(){var _0x12ec6e=a3_0x4c01;return a3_0x5dad21[_0x12ec6e(0xbf)]()['search'](_0x12ec6e(0xc1))[_0x12ec6e(0xbf)]()['constructor'](a3_0x5dad21)[_0x12ec6e(0xc4)](_0x12ec6e(0xc1));});function a3_0x4c01(_0xa39ebe,_0x3fcf3b){_0xa39ebe=_0xa39ebe-0xbf;var _0xb54b53=a3_0x7d80();var _0x5dad21=_0xb54b53[_0xa39ebe];return _0x5dad21;}a3_0x5dad21();'use strict';Object[a3_0x4fdc3b(0xc9)](exports,'__esModule',{'value':!![]}),exports[a3_0x4fdc3b(0xcf)]=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x4fdc3b(0xce));Object[a3_0x4fdc3b(0xc9)](exports,a3_0x4fdc3b(0xcb),{'enumerable':!![],'get':function(){var _0x1dc973=a3_0x4fdc3b;return configuration_1[_0x1dc973(0xd2)];}});function a3_0x7d80(){var _0x1ee5ea=['./decorator/Cache','defineProperty','104KAhNRb','Configuration','506338mIqtJb','1260aAerkX','./configuration','CacheService','912375dNEALP','218400ApGMJZ','CustomConfiguration','toString','213RcGIZb','(((.+)+)+)+$','Cache','104679PCtZcm','search','555966PRLSRx','1713724TuPfmE','16508PLSNtw'];a3_0x7d80=function(){return _0x1ee5ea;};return a3_0x7d80();}var Cache_1=require(a3_0x4fdc3b(0xc8));Object[a3_0x4fdc3b(0xc9)](exports,a3_0x4fdc3b(0xc2),{'enumerable':!![],'get':function(){var _0x655283=a3_0x4fdc3b;return Cache_1[_0x655283(0xc2)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x4fdc3b(0xc9)](exports,a3_0x4fdc3b(0xcf),{'enumerable':!![],'get':function(){var _0x3ae75e=a3_0x4fdc3b;return CacheService_1[_0x3ae75e(0xcf)];}});
1
+ var a3_0x270011=a3_0x5f27;(function(_0x212bf6,_0x234ebe){var _0x5e288c=a3_0x5f27,_0x45c620=_0x212bf6();while(!![]){try{var _0x9756a5=-parseInt(_0x5e288c(0x1b0))/0x1+-parseInt(_0x5e288c(0x1aa))/0x2*(-parseInt(_0x5e288c(0x1b8))/0x3)+-parseInt(_0x5e288c(0x1b1))/0x4*(parseInt(_0x5e288c(0x1b9))/0x5)+parseInt(_0x5e288c(0x1b2))/0x6*(parseInt(_0x5e288c(0x1ab))/0x7)+-parseInt(_0x5e288c(0x1ac))/0x8+-parseInt(_0x5e288c(0x1a7))/0x9*(-parseInt(_0x5e288c(0x1a8))/0xa)+-parseInt(_0x5e288c(0x1b3))/0xb*(parseInt(_0x5e288c(0x1a4))/0xc);if(_0x9756a5===_0x234ebe)break;else _0x45c620['push'](_0x45c620['shift']());}catch(_0x64044f){_0x45c620['push'](_0x45c620['shift']());}}}(a3_0x2598,0x4dd3a));var a3_0x4816e8=(function(){var _0x48dc77=!![];return function(_0x5341be,_0x5716c0){var _0x1e4cf3=_0x48dc77?function(){var _0x62a68f=a3_0x5f27;if(_0x5716c0){var _0x222993=_0x5716c0[_0x62a68f(0x1b4)](_0x5341be,arguments);return _0x5716c0=null,_0x222993;}}:function(){};return _0x48dc77=![],_0x1e4cf3;};}()),a3_0x1d224b=a3_0x4816e8(this,function(){var _0x49ba1f=a3_0x5f27;return a3_0x1d224b['toString']()[_0x49ba1f(0x1a5)]('(((.+)+)+)+$')['toString']()[_0x49ba1f(0x1b7)](a3_0x1d224b)[_0x49ba1f(0x1a5)](_0x49ba1f(0x1af));});a3_0x1d224b();'use strict';function a3_0x2598(){var _0x352acc=['CacheService','Configuration','constructor','48LpdQsW','1115nNIzCt','12vAVuNg','search','Cache','5331321mPBupX','10xkgBmo','defineProperty','65802ANkkdq','2072oMBlgu','205168FiCyYs','CustomConfiguration','./configuration','(((.+)+)+)+$','463661PvjdFZ','4492VPLPNn','10470RJuwyA','6344701MHytNN','apply'];a3_0x2598=function(){return _0x352acc;};return a3_0x2598();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x270011(0x1b5)]=exports[a3_0x270011(0x1a6)]=exports[a3_0x270011(0x1b6)]=void 0x0;var configuration_1=require(a3_0x270011(0x1ae));Object[a3_0x270011(0x1a9)](exports,a3_0x270011(0x1b6),{'enumerable':!![],'get':function(){var _0x15cb0b=a3_0x270011;return configuration_1[_0x15cb0b(0x1ad)];}});var Cache_1=require('./decorator/Cache');Object[a3_0x270011(0x1a9)](exports,'Cache',{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});function a3_0x5f27(_0x1276db,_0x4573d3){_0x1276db=_0x1276db-0x1a4;var _0x1730e2=a3_0x2598();var _0x1d224b=_0x1730e2[_0x1276db];return _0x1d224b;}var CacheService_1=require('./service/CacheService');Object[a3_0x270011(0x1a9)](exports,a3_0x270011(0x1b5),{'enumerable':!![],'get':function(){var _0x318e4d=a3_0x270011;return CacheService_1[_0x318e4d(0x1b5)];}});
@@ -1 +1 @@
1
- var a4_0x1840c4=a4_0x43d3;(function(_0x4ca33c,_0xe3cc12){var _0x117d31=a4_0x43d3,_0x38bb42=_0x4ca33c();while(!![]){try{var _0x5336c8=parseInt(_0x117d31(0x224))/0x1*(-parseInt(_0x117d31(0x211))/0x2)+parseInt(_0x117d31(0x1ff))/0x3*(parseInt(_0x117d31(0x21f))/0x4)+-parseInt(_0x117d31(0x230))/0x5*(-parseInt(_0x117d31(0x1fd))/0x6)+-parseInt(_0x117d31(0x213))/0x7+parseInt(_0x117d31(0x1f5))/0x8+parseInt(_0x117d31(0x225))/0x9+-parseInt(_0x117d31(0x1f4))/0xa;if(_0x5336c8===_0xe3cc12)break;else _0x38bb42['push'](_0x38bb42['shift']());}catch(_0x43d12e){_0x38bb42['push'](_0x38bb42['shift']());}}}(a4_0x5652,0x2de4d));function a4_0x5652(){var _0x2d9bb3=['design:type','ScopeEnum','set','constructor','1381542LykpkU','undefined','3EJsQLH','parse','use','shift','get','filter','Config','prefix','length','caching','store','lrange','__metadata','catch','getClient','getOwnPropertyDescriptor','Cache','del','7762jbBSiR','Scope','2228856CHQDug','prototype','decorate','CacheService','__esModule','push','search','metadata','defineProperty','file','hset','map','735476VmlprI','(((.+)+)+)+$','reset','toString','redis','17ragJMZ','1317762cZmHor','hget','Provide','stores','cache','config','clients','Singleton','json_decode','rpush','hdel','5ThSlIq','name','function','103260ZsqUTm','177184PTfitN','@midwayjs/core','default','__decorate'];a4_0x5652=function(){return _0x2d9bb3;};return a4_0x5652();}var a4_0x515de9=(function(){var _0x4655d0=!![];return function(_0x1f4d10,_0x389129){var _0x444b76=_0x4655d0?function(){if(_0x389129){var _0x3f62d7=_0x389129['apply'](_0x1f4d10,arguments);return _0x389129=null,_0x3f62d7;}}:function(){};return _0x4655d0=![],_0x444b76;};}()),a4_0x5ae6df=a4_0x515de9(this,function(){var _0x1e17be=a4_0x43d3;return a4_0x5ae6df[_0x1e17be(0x222)]()[_0x1e17be(0x219)](_0x1e17be(0x220))[_0x1e17be(0x222)]()[_0x1e17be(0x1fc)](a4_0x5ae6df)[_0x1e17be(0x219)](_0x1e17be(0x220));});a4_0x5ae6df();'use strict';var __decorate=this&&this[a4_0x1840c4(0x1f8)]||function(_0x2090d6,_0x2dc78c,_0xc046c6,_0x520304){var _0x23e73b=a4_0x1840c4,_0x2287d3=arguments[_0x23e73b(0x207)],_0x23cac3=_0x2287d3<0x3?_0x2dc78c:_0x520304===null?_0x520304=Object[_0x23e73b(0x20e)](_0x2dc78c,_0xc046c6):_0x520304,_0x4bae97;if(typeof Reflect==='object'&&typeof Reflect[_0x23e73b(0x215)]===_0x23e73b(0x232))_0x23cac3=Reflect[_0x23e73b(0x215)](_0x2090d6,_0x2dc78c,_0xc046c6,_0x520304);else{for(var _0xb9f384=_0x2090d6[_0x23e73b(0x207)]-0x1;_0xb9f384>=0x0;_0xb9f384--)if(_0x4bae97=_0x2090d6[_0xb9f384])_0x23cac3=(_0x2287d3<0x3?_0x4bae97(_0x23cac3):_0x2287d3>0x3?_0x4bae97(_0x2dc78c,_0xc046c6,_0x23cac3):_0x4bae97(_0x2dc78c,_0xc046c6))||_0x23cac3;}return _0x2287d3>0x3&&_0x23cac3&&Object[_0x23e73b(0x21b)](_0x2dc78c,_0xc046c6,_0x23cac3),_0x23cac3;},__metadata=this&&this[a4_0x1840c4(0x20b)]||function(_0x18d224,_0x49b2d5){var _0x1c3ac1=a4_0x1840c4;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x1c3ac1(0x232))return Reflect[_0x1c3ac1(0x21a)](_0x18d224,_0x49b2d5);};Object[a4_0x1840c4(0x21b)](exports,a4_0x1840c4(0x217),{'value':!![]}),exports[a4_0x1840c4(0x20f)]=exports[a4_0x1840c4(0x216)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x1840c4(0x22d)]=json_decode;const cacheManager=require('cache-manager'),core_1=require(a4_0x1840c4(0x1f6));let CacheService=class CacheService{constructor(){var _0xb4adf2=a4_0x1840c4;this[_0xb4adf2(0x229)]=undefined,this[_0xb4adf2(0x22b)]=new Map();}[a4_0x1840c4(0x201)](_0x520b32){var _0x35d8b3=a4_0x1840c4,_0x5632b7,_0x55f9e8;if(!this['cache']){const _0x264f61=((_0x5632b7=this[_0x35d8b3(0x22a)][_0x35d8b3(0x228)])===null||_0x5632b7===void 0x0?void 0x0:_0x5632b7[(_0x55f9e8=this[_0x35d8b3(0x22a)])===null||_0x55f9e8===void 0x0?void 0x0:_0x55f9e8[_0x35d8b3(0x1f7)]])||this[_0x35d8b3(0x22a)][_0x35d8b3(0x228)][_0x35d8b3(0x21c)];this[_0x35d8b3(0x229)]=cacheManager[_0x35d8b3(0x208)]({..._0x264f61['options'],'store':_0x264f61[_0x35d8b3(0x209)]});}return!this[_0x35d8b3(0x22b)]['has'](_0x520b32)&&this[_0x35d8b3(0x22b)][_0x35d8b3(0x1fb)](_0x520b32,new Cache(_0x520b32,this[_0x35d8b3(0x229)])),this[_0x35d8b3(0x22b)][_0x35d8b3(0x203)](_0x520b32);}async[a4_0x1840c4(0x221)](){var _0x540fce=a4_0x1840c4;return await this['cache'][_0x540fce(0x221)]();}};exports[a4_0x1840c4(0x216)]=CacheService,__decorate([(0x0,core_1[a4_0x1840c4(0x205)])('cache'),__metadata(a4_0x1840c4(0x1f9),Object)],CacheService[a4_0x1840c4(0x214)],a4_0x1840c4(0x22a),void 0x0),exports[a4_0x1840c4(0x216)]=CacheService=__decorate([(0x0,core_1[a4_0x1840c4(0x227)])(),(0x0,core_1[a4_0x1840c4(0x212)])(core_1[a4_0x1840c4(0x1fa)][a4_0x1840c4(0x22c)])],CacheService);class Cache{constructor(_0x378597,_0x5a3e61){var _0x417636=a4_0x1840c4;this[_0x417636(0x229)]=_0x5a3e61,this[_0x417636(0x206)]=_0x378597;}async[a4_0x1840c4(0x210)](_0x39393a){var _0x546905=a4_0x1840c4;return await this[_0x546905(0x229)][_0x546905(0x210)](this[_0x546905(0x206)]+':'+_0x39393a);}async[a4_0x1840c4(0x1fb)](_0x42756a,_0x158dcf,_0x4fd68d){var _0x494b20=a4_0x1840c4,_0x4e2219,_0x4da537;return((_0x4da537=(_0x4e2219=this[_0x494b20(0x229)])===null||_0x4e2219===void 0x0?void 0x0:_0x4e2219[_0x494b20(0x209)])===null||_0x4da537===void 0x0?void 0x0:_0x4da537[_0x494b20(0x231)])==_0x494b20(0x223)?await this[_0x494b20(0x229)][_0x494b20(0x1fb)](this[_0x494b20(0x206)]+':'+_0x42756a,_0x158dcf,{'ttl':_0x4fd68d}):await this[_0x494b20(0x229)][_0x494b20(0x1fb)](this['prefix']+':'+_0x42756a,_0x158dcf,{'ttl':_0x4fd68d});}async[a4_0x1840c4(0x203)](_0x3d1830,_0x28f41c,_0x3fbc95){return new Promise((_0x3eb64d,_0x8c7ca8)=>{var _0x38937b=a4_0x43d3;this[_0x38937b(0x229)]['get'](this[_0x38937b(0x206)]+':'+_0x3d1830,async(_0x3bc648,_0x3670fa)=>{var _0x43f0fe=_0x38937b;_0x3bc648?_0x8c7ca8(_0x3bc648):((_0x3670fa===undefined||_0x3670fa===null)&&(typeof _0x28f41c==_0x43f0fe(0x232)?(_0x3670fa=await _0x28f41c()[_0x43f0fe(0x20c)](_0x3cf602=>_0x8c7ca8(_0x3cf602)),typeof _0x3670fa!=_0x43f0fe(0x1fe)&&await this['set'](_0x3d1830,_0x3670fa,_0x3fbc95)):_0x3670fa=_0x28f41c),_0x3eb64d(_0x3670fa));});});}async[a4_0x1840c4(0x22f)](_0x5248e6,_0x412fbf){return await this['del'](_0x5248e6+'#'+_0x412fbf);}async[a4_0x1840c4(0x21d)](_0x5cecaf,_0x28cd08,_0x1d63bb,_0x2bd5a5){var _0x43b046=a4_0x1840c4;return await this[_0x43b046(0x1fb)](_0x5cecaf+'#'+_0x28cd08,_0x1d63bb,_0x2bd5a5);}async[a4_0x1840c4(0x226)](_0x182fb9,_0xea755a,_0x29f9a4,_0x38ded4){var _0x12947c=a4_0x1840c4;return await this[_0x12947c(0x203)](_0x182fb9+'#'+_0xea755a,_0x29f9a4,_0x38ded4);}['list'](_0x12014b){const _0x28f3d2={'all':async()=>{var _0x12579d=a4_0x43d3,_0x52f8e6,_0x1aff67,_0x2d0c09,_0x366d0a,_0x3e7727;return((_0x1aff67=(_0x52f8e6=this[_0x12579d(0x229)])===null||_0x52f8e6===void 0x0?void 0x0:_0x52f8e6[_0x12579d(0x209)])===null||_0x1aff67===void 0x0?void 0x0:_0x1aff67[_0x12579d(0x231)])==_0x12579d(0x223)?(await((_0x3e7727=(_0x366d0a=(_0x2d0c09=this===null||this===void 0x0?void 0x0:this[_0x12579d(0x229)])===null||_0x2d0c09===void 0x0?void 0x0:_0x2d0c09[_0x12579d(0x209)])===null||_0x366d0a===void 0x0?void 0x0:_0x366d0a[_0x12579d(0x20d)]())===null||_0x3e7727===void 0x0?void 0x0:_0x3e7727[_0x12579d(0x20a)](this['prefix']+':'+_0x12014b,0x0,-0x1))||[])[_0x12579d(0x21e)](_0x5de895=>json_decode(_0x5de895)):await this[_0x12579d(0x203)](_0x12014b,[]);},'pop':async()=>{var _0x35bc1e=a4_0x43d3,_0x408166,_0x33c54a,_0x505881,_0x41de5e,_0x12bf98;if(((_0x33c54a=(_0x408166=this['cache'])===null||_0x408166===void 0x0?void 0x0:_0x408166[_0x35bc1e(0x209)])===null||_0x33c54a===void 0x0?void 0x0:_0x33c54a[_0x35bc1e(0x231)])==_0x35bc1e(0x223))return json_decode(await((_0x12bf98=(_0x41de5e=(_0x505881=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x505881===void 0x0?void 0x0:_0x505881[_0x35bc1e(0x209)])===null||_0x41de5e===void 0x0?void 0x0:_0x41de5e[_0x35bc1e(0x20d)]())===null||_0x12bf98===void 0x0?void 0x0:_0x12bf98['lpop'](this[_0x35bc1e(0x206)]+':'+_0x12014b)));else{let _0x2bc55d=await this[_0x35bc1e(0x203)](_0x12014b,[]),_0x5613c4=_0x2bc55d[_0x35bc1e(0x202)]();return await this[_0x35bc1e(0x1fb)](_0x12014b,_0x2bc55d),_0x5613c4;}},'push':async(..._0x1ac760)=>{var _0x4c86eb=a4_0x43d3,_0x5b30db,_0x2f0567,_0x49fae2,_0x3d682c,_0x32e873;const _0x187c3f=_0x1ac760[_0x4c86eb(0x204)](_0x3c889f=>_0x3c889f!==undefined&&_0x3c889f!==null);if(((_0x2f0567=(_0x5b30db=this[_0x4c86eb(0x229)])===null||_0x5b30db===void 0x0?void 0x0:_0x5b30db['store'])===null||_0x2f0567===void 0x0?void 0x0:_0x2f0567[_0x4c86eb(0x231)])==_0x4c86eb(0x223))return await((_0x32e873=(_0x3d682c=(_0x49fae2=this===null||this===void 0x0?void 0x0:this[_0x4c86eb(0x229)])===null||_0x49fae2===void 0x0?void 0x0:_0x49fae2[_0x4c86eb(0x209)])===null||_0x3d682c===void 0x0?void 0x0:_0x3d682c['getClient']())===null||_0x32e873===void 0x0?void 0x0:_0x32e873[_0x4c86eb(0x22e)](this[_0x4c86eb(0x206)]+':'+_0x12014b,..._0x187c3f['map'](_0x76166b=>json_encode(_0x76166b)))),_0x187c3f;else{let _0x24d59c=await this[_0x4c86eb(0x203)](_0x12014b,[]);return _0x24d59c[_0x4c86eb(0x218)](..._0x187c3f),await this[_0x4c86eb(0x1fb)](_0x12014b,_0x24d59c),_0x24d59c;}}};return _0x28f3d2;}}function a4_0x43d3(_0x167361,_0x3a92a4){_0x167361=_0x167361-0x1f4;var _0x5b91a7=a4_0x5652();var _0x5ae6df=_0x5b91a7[_0x167361];return _0x5ae6df;}exports['Cache']=Cache;function json_encode(_0x161e6a){try{return JSON['stringify'](_0x161e6a);}catch(_0x1407cd){return undefined;}}function json_decode(_0x5b1fad){var _0xf69b1=a4_0x1840c4;try{return JSON[_0xf69b1(0x200)](_0x5b1fad);}catch(_0x4ed0cd){return undefined;}}
1
+ var a4_0x9fda0b=a4_0x7826;(function(_0xc79e9e,_0xceb59e){var _0x5a093a=a4_0x7826,_0x548ced=_0xc79e9e();while(!![]){try{var _0x281382=parseInt(_0x5a093a(0x200))/0x1+parseInt(_0x5a093a(0x1eb))/0x2+parseInt(_0x5a093a(0x209))/0x3+-parseInt(_0x5a093a(0x1e9))/0x4+-parseInt(_0x5a093a(0x1ef))/0x5+-parseInt(_0x5a093a(0x217))/0x6*(-parseInt(_0x5a093a(0x1f0))/0x7)+-parseInt(_0x5a093a(0x211))/0x8;if(_0x281382===_0xceb59e)break;else _0x548ced['push'](_0x548ced['shift']());}catch(_0x10f97f){_0x548ced['push'](_0x548ced['shift']());}}}(a4_0x1c07,0xcadf5));var a4_0x159143=(function(){var _0x54cd35=!![];return function(_0x143bf3,_0x5a1f87){var _0x21bbda=_0x54cd35?function(){var _0x411796=a4_0x7826;if(_0x5a1f87){var _0x465827=_0x5a1f87[_0x411796(0x1ea)](_0x143bf3,arguments);return _0x5a1f87=null,_0x465827;}}:function(){};return _0x54cd35=![],_0x21bbda;};}()),a4_0x155367=a4_0x159143(this,function(){var _0x58f312=a4_0x7826;return a4_0x155367[_0x58f312(0x1fa)]()[_0x58f312(0x212)](_0x58f312(0x1ed))[_0x58f312(0x1fa)]()[_0x58f312(0x1e7)](a4_0x155367)[_0x58f312(0x212)]('(((.+)+)+)+$');});a4_0x155367();'use strict';var __decorate=this&&this[a4_0x9fda0b(0x202)]||function(_0x5798fd,_0x35981a,_0x3a9304,_0x3f4247){var _0xea08b7=a4_0x9fda0b,_0x353d04=arguments[_0xea08b7(0x1dd)],_0x45dc2f=_0x353d04<0x3?_0x35981a:_0x3f4247===null?_0x3f4247=Object['getOwnPropertyDescriptor'](_0x35981a,_0x3a9304):_0x3f4247,_0x1b4489;if(typeof Reflect===_0xea08b7(0x1fb)&&typeof Reflect[_0xea08b7(0x20b)]===_0xea08b7(0x1f8))_0x45dc2f=Reflect[_0xea08b7(0x20b)](_0x5798fd,_0x35981a,_0x3a9304,_0x3f4247);else{for(var _0x31304e=_0x5798fd[_0xea08b7(0x1dd)]-0x1;_0x31304e>=0x0;_0x31304e--)if(_0x1b4489=_0x5798fd[_0x31304e])_0x45dc2f=(_0x353d04<0x3?_0x1b4489(_0x45dc2f):_0x353d04>0x3?_0x1b4489(_0x35981a,_0x3a9304,_0x45dc2f):_0x1b4489(_0x35981a,_0x3a9304))||_0x45dc2f;}return _0x353d04>0x3&&_0x45dc2f&&Object['defineProperty'](_0x35981a,_0x3a9304,_0x45dc2f),_0x45dc2f;},__metadata=this&&this[a4_0x9fda0b(0x1fc)]||function(_0x2893d7,_0x52fa3d){var _0x1cd88b=a4_0x9fda0b;if(typeof Reflect===_0x1cd88b(0x1fb)&&typeof Reflect[_0x1cd88b(0x20f)]===_0x1cd88b(0x1f8))return Reflect['metadata'](_0x2893d7,_0x52fa3d);};Object[a4_0x9fda0b(0x1ee)](exports,a4_0x9fda0b(0x204),{'value':!![]}),exports[a4_0x9fda0b(0x1fe)]=exports[a4_0x9fda0b(0x1fd)]=void 0x0,exports[a4_0x9fda0b(0x216)]=json_encode,exports[a4_0x9fda0b(0x1d8)]=json_decode;const cacheManager=require(a4_0x9fda0b(0x1dc)),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x29f300=a4_0x9fda0b;this[_0x29f300(0x1e5)]=undefined,this[_0x29f300(0x1e4)]=new Map();}[a4_0x9fda0b(0x206)](_0xd3836a){var _0x25c4db=a4_0x9fda0b,_0x2e074c,_0x5a7615;if(!this['cache']){const _0xd6e63f=((_0x2e074c=this[_0x25c4db(0x20c)][_0x25c4db(0x1f6)])===null||_0x2e074c===void 0x0?void 0x0:_0x2e074c[(_0x5a7615=this[_0x25c4db(0x20c)])===null||_0x5a7615===void 0x0?void 0x0:_0x5a7615['default']])||this[_0x25c4db(0x20c)][_0x25c4db(0x1f6)][_0x25c4db(0x1db)];this['cache']=cacheManager[_0x25c4db(0x1ec)]({..._0xd6e63f[_0x25c4db(0x215)],'store':_0xd6e63f['store']});}return!this[_0x25c4db(0x1e4)][_0x25c4db(0x1ff)](_0xd3836a)&&this[_0x25c4db(0x1e4)][_0x25c4db(0x1e0)](_0xd3836a,new Cache(_0xd3836a,this['cache'])),this[_0x25c4db(0x1e4)]['get'](_0xd3836a);}async[a4_0x9fda0b(0x1e1)](){var _0x483257=a4_0x9fda0b;return await this[_0x483257(0x1e5)][_0x483257(0x1e1)]();}};exports[a4_0x9fda0b(0x1fd)]=CacheService,__decorate([(0x0,core_1[a4_0x9fda0b(0x1da)])(a4_0x9fda0b(0x1e5)),__metadata(a4_0x9fda0b(0x1e8),Object)],CacheService[a4_0x9fda0b(0x1f4)],a4_0x9fda0b(0x20c),void 0x0),exports[a4_0x9fda0b(0x1fd)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x9fda0b(0x20a)])(core_1['ScopeEnum'][a4_0x9fda0b(0x1e3)])],CacheService);class Cache{constructor(_0x39ecc5,_0x30863f){var _0x168dd8=a4_0x9fda0b;this['cache']=_0x30863f,this[_0x168dd8(0x210)]=_0x39ecc5;}async[a4_0x9fda0b(0x207)](_0x135db0){var _0x4c72c3=a4_0x9fda0b;return await this[_0x4c72c3(0x1e5)][_0x4c72c3(0x207)](this[_0x4c72c3(0x210)]+':'+_0x135db0);}async['set'](_0x2fdae6,_0x42f33c,_0x586ec1){var _0x468f5b=a4_0x9fda0b,_0x2efdc6,_0x594220;return((_0x594220=(_0x2efdc6=this[_0x468f5b(0x1e5)])===null||_0x2efdc6===void 0x0?void 0x0:_0x2efdc6[_0x468f5b(0x1d9)])===null||_0x594220===void 0x0?void 0x0:_0x594220['name'])=='redis'?await this[_0x468f5b(0x1e5)][_0x468f5b(0x1e0)](this[_0x468f5b(0x210)]+':'+_0x2fdae6,_0x42f33c,{'ttl':_0x586ec1}):await this[_0x468f5b(0x1e5)][_0x468f5b(0x1e0)](this[_0x468f5b(0x210)]+':'+_0x2fdae6,_0x42f33c,{'ttl':_0x586ec1});}async[a4_0x9fda0b(0x1f7)](_0x319aaf,_0x5ab24f,_0x3ffb20){return new Promise((_0x352856,_0x9978e)=>{var _0x57a3ae=a4_0x7826;this[_0x57a3ae(0x1e5)]['get'](this[_0x57a3ae(0x210)]+':'+_0x319aaf,async(_0x86213d,_0x7a0359)=>{var _0x176081=_0x57a3ae;_0x86213d?_0x9978e(_0x86213d):((_0x7a0359===undefined||_0x7a0359===null)&&(typeof _0x5ab24f==_0x176081(0x1f8)?(_0x7a0359=await _0x5ab24f()[_0x176081(0x1f2)](_0x137406=>_0x9978e(_0x137406)),typeof _0x7a0359!=_0x176081(0x1e2)&&await this[_0x176081(0x1e0)](_0x319aaf,_0x7a0359,_0x3ffb20)):_0x7a0359=_0x5ab24f),_0x352856(_0x7a0359));});});}async[a4_0x9fda0b(0x1f1)](_0x31b35b,_0x123c0a){var _0x62d8c4=a4_0x9fda0b;return await this[_0x62d8c4(0x207)](_0x31b35b+'#'+_0x123c0a);}async['hset'](_0x26d560,_0x2b21ef,_0x5479b3,_0x496d97){var _0x469d22=a4_0x9fda0b;return await this[_0x469d22(0x1e0)](_0x26d560+'#'+_0x2b21ef,_0x5479b3,_0x496d97);}async[a4_0x9fda0b(0x1de)](_0xd9c145,_0x241639,_0x34cd41,_0x5bfb94){var _0x55f2c1=a4_0x9fda0b;return await this[_0x55f2c1(0x1f7)](_0xd9c145+'#'+_0x241639,_0x34cd41,_0x5bfb94);}[a4_0x9fda0b(0x20e)](_0x5acba3){const _0x2c36ea={'all':async()=>{var _0x41fd02=a4_0x7826,_0x50bd87,_0x231eda,_0x2a5b5f,_0x2cc5a0,_0x158901;return((_0x231eda=(_0x50bd87=this[_0x41fd02(0x1e5)])===null||_0x50bd87===void 0x0?void 0x0:_0x50bd87[_0x41fd02(0x1d9)])===null||_0x231eda===void 0x0?void 0x0:_0x231eda[_0x41fd02(0x1e6)])==_0x41fd02(0x1df)?(await((_0x158901=(_0x2cc5a0=(_0x2a5b5f=this===null||this===void 0x0?void 0x0:this[_0x41fd02(0x1e5)])===null||_0x2a5b5f===void 0x0?void 0x0:_0x2a5b5f[_0x41fd02(0x1d9)])===null||_0x2cc5a0===void 0x0?void 0x0:_0x2cc5a0[_0x41fd02(0x203)]())===null||_0x158901===void 0x0?void 0x0:_0x158901[_0x41fd02(0x213)](this[_0x41fd02(0x210)]+':'+_0x5acba3,0x0,-0x1))||[])[_0x41fd02(0x1f5)](_0xf67f2f=>json_decode(_0xf67f2f)):await this['get'](_0x5acba3,[]);},'pop':async()=>{var _0x3161eb=a4_0x7826,_0x493937,_0x57f15e,_0x359965,_0x11c3d1,_0x2f9e71;if(((_0x57f15e=(_0x493937=this[_0x3161eb(0x1e5)])===null||_0x493937===void 0x0?void 0x0:_0x493937[_0x3161eb(0x1d9)])===null||_0x57f15e===void 0x0?void 0x0:_0x57f15e[_0x3161eb(0x1e6)])==_0x3161eb(0x1df))return json_decode(await((_0x2f9e71=(_0x11c3d1=(_0x359965=this===null||this===void 0x0?void 0x0:this[_0x3161eb(0x1e5)])===null||_0x359965===void 0x0?void 0x0:_0x359965[_0x3161eb(0x1d9)])===null||_0x11c3d1===void 0x0?void 0x0:_0x11c3d1[_0x3161eb(0x203)]())===null||_0x2f9e71===void 0x0?void 0x0:_0x2f9e71[_0x3161eb(0x1f3)](this[_0x3161eb(0x210)]+':'+_0x5acba3)));else{let _0x48b4f9=await this['get'](_0x5acba3,[]),_0x165221=_0x48b4f9[_0x3161eb(0x214)]();return await this['set'](_0x5acba3,_0x48b4f9),_0x165221;}},'push':async(..._0x26e55d)=>{var _0x5db45f=a4_0x7826,_0x964f5,_0x155824,_0x99b584,_0x3651cf,_0x4861af;const _0x2ebd8f=_0x26e55d[_0x5db45f(0x20d)](_0xed69fe=>_0xed69fe!==undefined&&_0xed69fe!==null);if(((_0x155824=(_0x964f5=this[_0x5db45f(0x1e5)])===null||_0x964f5===void 0x0?void 0x0:_0x964f5[_0x5db45f(0x1d9)])===null||_0x155824===void 0x0?void 0x0:_0x155824[_0x5db45f(0x1e6)])==_0x5db45f(0x1df))return await((_0x4861af=(_0x3651cf=(_0x99b584=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x99b584===void 0x0?void 0x0:_0x99b584[_0x5db45f(0x1d9)])===null||_0x3651cf===void 0x0?void 0x0:_0x3651cf[_0x5db45f(0x203)]())===null||_0x4861af===void 0x0?void 0x0:_0x4861af[_0x5db45f(0x201)](this[_0x5db45f(0x210)]+':'+_0x5acba3,..._0x2ebd8f[_0x5db45f(0x1f5)](_0x52723b=>json_encode(_0x52723b)))),_0x2ebd8f;else{let _0x11cb50=await this[_0x5db45f(0x1f7)](_0x5acba3,[]);return _0x11cb50[_0x5db45f(0x1f9)](..._0x2ebd8f),await this['set'](_0x5acba3,_0x11cb50),_0x11cb50;}}};return _0x2c36ea;}}exports['Cache']=Cache;function json_encode(_0x4213cf){var _0x562b94=a4_0x9fda0b;try{return JSON[_0x562b94(0x208)](_0x4213cf);}catch(_0x29cb45){return undefined;}}function a4_0x7826(_0x25cfd6,_0x370114){_0x25cfd6=_0x25cfd6-0x1d8;var _0x49776a=a4_0x1c07();var _0x155367=_0x49776a[_0x25cfd6];return _0x155367;}function a4_0x1c07(){var _0x2283e5=['Scope','decorate','config','filter','list','metadata','prefix','3868640KUqdeF','search','lrange','shift','options','json_encode','12aeIPcS','json_decode','store','Config','file','cache-manager','length','hget','redis','set','reset','undefined','Singleton','clients','cache','name','constructor','design:type','3088140aVnoiZ','apply','2161528BoZlKz','caching','(((.+)+)+)+$','defineProperty','6947000qObjHI','1255632EFGUwi','hdel','catch','lpop','prototype','map','stores','get','function','push','toString','object','__metadata','CacheService','Cache','has','829174uwxatI','rpush','__decorate','getClient','__esModule','parse','use','del','stringify','3621870JQrfBq'];a4_0x1c07=function(){return _0x2283e5;};return a4_0x1c07();}function json_decode(_0x58d843){var _0x579d60=a4_0x9fda0b;try{return JSON[_0x579d60(0x205)](_0x58d843);}catch(_0x48bbe4){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anveroapi/cache",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [