@anveroapi/cache 4.1.4 → 4.1.6

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_0x194188=a0_0x1bfb;(function(_0x55865d,_0x5b9352){const _0x2d0552=a0_0x1bfb,_0x3e5ba3=_0x55865d();while(!![]){try{const _0x536e74=parseInt(_0x2d0552(0xcb))/0x1+-parseInt(_0x2d0552(0xba))/0x2*(parseInt(_0x2d0552(0xc7))/0x3)+parseInt(_0x2d0552(0xc3))/0x4+-parseInt(_0x2d0552(0xbc))/0x5*(parseInt(_0x2d0552(0xc8))/0x6)+parseInt(_0x2d0552(0xbe))/0x7+parseInt(_0x2d0552(0xc5))/0x8+-parseInt(_0x2d0552(0xca))/0x9;if(_0x536e74===_0x5b9352)break;else _0x3e5ba3['push'](_0x3e5ba3['shift']());}catch(_0x51a6c8){_0x3e5ba3['push'](_0x3e5ba3['shift']());}}}(a0_0x3d50,0x5086f));function a0_0x1bfb(_0x586d43,_0x4bfbcf){_0x586d43=_0x586d43-0xb8;const _0x2fd29e=a0_0x3d50();let _0xd8c4c6=_0x2fd29e[_0x586d43];return _0xd8c4c6;}function a0_0x3d50(){const _0x40f1e3=['534555lNXMgg','search','name','defineProperty','default','571700BmOMaY','env','4786624kOUpnI','cache-manager-ioredis','1582347adfqzP','512508eZaCcp','/runtime/.cache','3969792TbIaml','566176IfIzHe','file','(((.+)+)+)+$','apply','constructor','toString','2phkERq','127.0.0.1','5XwwTvI','cache-manager-fs-hash'];a0_0x3d50=function(){return _0x40f1e3;};return a0_0x3d50();}const a0_0x5689f1=(function(){let _0x1069c3=!![];return function(_0x209f48,_0x48c239){const _0x15e55b=_0x1069c3?function(){const _0xa0cbc5=a0_0x1bfb;if(_0x48c239){const _0x252f30=_0x48c239[_0xa0cbc5(0xce)](_0x209f48,arguments);return _0x48c239=null,_0x252f30;}}:function(){};return _0x1069c3=![],_0x15e55b;};}()),a0_0xd8c4c6=a0_0x5689f1(this,function(){const _0x505a39=a0_0x1bfb;return a0_0xd8c4c6[_0x505a39(0xb9)]()[_0x505a39(0xbf)](_0x505a39(0xcd))['toString']()[_0x505a39(0xb8)](a0_0xd8c4c6)['search'](_0x505a39(0xcd));});a0_0xd8c4c6();'use strict';Object[a0_0x194188(0xc1)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x194188(0xbd)),redisStore=require(a0_0x194188(0xc6));exports[a0_0x194188(0xc2)]=_0x37d65f=>{const _0x26dbd9=a0_0x194188;return{'cache':{'default':_0x26dbd9(0xcc),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x37d65f['appDir']+_0x26dbd9(0xc9)+((_0x37d65f===null||_0x37d65f===void 0x0?void 0x0:_0x37d65f[_0x26dbd9(0xc4)])?'-'+_0x37d65f[_0x26dbd9(0xc4)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x26dbd9(0xbb),'password':'','keyPrefix':_0x37d65f[_0x26dbd9(0xc0)]+':'+((_0x37d65f===null||_0x37d65f===void 0x0?void 0x0:_0x37d65f[_0x26dbd9(0xc4)])?_0x37d65f['env']+':':'')}},'memory':{'store':'memory','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
+ var a1_0x1872ed=a1_0x2c15;function a1_0x2724(){var _0x40d519=['7416150MRdUPX','search','8bQGqnT','620dLGhwk','decorate','2815OiZBTm','toString','3486660qBxCmG','10936251cElqKT','apply','object','getOwnPropertyDescriptor','CustomConfiguration','736599dZUwzl','constructor','(((.+)+)+)+$','defineProperty','@midwayjs/core','10vqLFWO','./config/config.default','length','15919890ufuDqa','Configuration','92368RYOyrJ'];a1_0x2724=function(){return _0x40d519;};return a1_0x2724();}(function(_0x5eea94,_0x5c53cb){var _0xe41197=a1_0x2c15,_0x1c4129=_0x5eea94();while(!![]){try{var _0x428edf=parseInt(_0xe41197(0x72))/0x1+-parseInt(_0xe41197(0x6d))/0x2*(parseInt(_0xe41197(0x80))/0x3)+parseInt(_0xe41197(0x76))/0x4*(-parseInt(_0xe41197(0x78))/0x5)+parseInt(_0xe41197(0x7a))/0x6+parseInt(_0xe41197(0x73))/0x7+parseInt(_0xe41197(0x75))/0x8*(-parseInt(_0xe41197(0x7b))/0x9)+parseInt(_0xe41197(0x70))/0xa;if(_0x428edf===_0x5c53cb)break;else _0x1c4129['push'](_0x1c4129['shift']());}catch(_0x3d2d6c){_0x1c4129['push'](_0x1c4129['shift']());}}}(a1_0x2724,0xc20e0));var a1_0x587915=(function(){var _0x2f3f6c=!![];return function(_0x2724d4,_0x6e838a){var _0x2c9ea6=_0x2f3f6c?function(){var _0x150b81=a1_0x2c15;if(_0x6e838a){var _0xae9c34=_0x6e838a[_0x150b81(0x7c)](_0x2724d4,arguments);return _0x6e838a=null,_0xae9c34;}}:function(){};return _0x2f3f6c=![],_0x2c9ea6;};}()),a1_0x36428f=a1_0x587915(this,function(){var _0x5a21d3=a1_0x2c15;return a1_0x36428f[_0x5a21d3(0x79)]()[_0x5a21d3(0x74)]('(((.+)+)+)+$')[_0x5a21d3(0x79)]()[_0x5a21d3(0x69)](a1_0x36428f)[_0x5a21d3(0x74)](_0x5a21d3(0x6a));});a1_0x36428f();'use strict';function a1_0x2c15(_0x5478c0,_0x1dfcaa){_0x5478c0=_0x5478c0-0x69;var _0x192c6b=a1_0x2724();var _0x36428f=_0x192c6b[_0x5478c0];return _0x36428f;}var __decorate=this&&this['__decorate']||function(_0x3b2e2a,_0x5b6913,_0x1a1b6c,_0x5c2c13){var _0x5bd69a=a1_0x2c15,_0x489e94=arguments[_0x5bd69a(0x6f)],_0x437848=_0x489e94<0x3?_0x5b6913:_0x5c2c13===null?_0x5c2c13=Object[_0x5bd69a(0x7e)](_0x5b6913,_0x1a1b6c):_0x5c2c13,_0x4ed5eb;if(typeof Reflect===_0x5bd69a(0x7d)&&typeof Reflect[_0x5bd69a(0x77)]==='function')_0x437848=Reflect[_0x5bd69a(0x77)](_0x3b2e2a,_0x5b6913,_0x1a1b6c,_0x5c2c13);else{for(var _0x1433a6=_0x3b2e2a[_0x5bd69a(0x6f)]-0x1;_0x1433a6>=0x0;_0x1433a6--)if(_0x4ed5eb=_0x3b2e2a[_0x1433a6])_0x437848=(_0x489e94<0x3?_0x4ed5eb(_0x437848):_0x489e94>0x3?_0x4ed5eb(_0x5b6913,_0x1a1b6c,_0x437848):_0x4ed5eb(_0x5b6913,_0x1a1b6c))||_0x437848;}return _0x489e94>0x3&&_0x437848&&Object[_0x5bd69a(0x6b)](_0x5b6913,_0x1a1b6c,_0x437848),_0x437848;};Object[a1_0x1872ed(0x6b)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x1872ed(0x6c)),ConfigDefault=require(a1_0x1872ed(0x6e));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x1872ed(0x7f)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1872ed(0x71)])({'namespace':'anvero-api:cache','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_0x3b8bab=a2_0x32a4;(function(_0x3f3fee,_0x3d1fe2){const _0x1a9d57=a2_0x32a4,_0x16c934=_0x3f3fee();while(!![]){try{const _0x596b58=-parseInt(_0x1a9d57(0x1eb))/0x1*(-parseInt(_0x1a9d57(0x1e3))/0x2)+-parseInt(_0x1a9d57(0x1d2))/0x3*(parseInt(_0x1a9d57(0x1ec))/0x4)+-parseInt(_0x1a9d57(0x1d9))/0x5+parseInt(_0x1a9d57(0x1d4))/0x6*(parseInt(_0x1a9d57(0x1e5))/0x7)+parseInt(_0x1a9d57(0x1da))/0x8+-parseInt(_0x1a9d57(0x1d7))/0x9+-parseInt(_0x1a9d57(0x1e6))/0xa*(-parseInt(_0x1a9d57(0x1e4))/0xb);if(_0x596b58===_0x3d1fe2)break;else _0x16c934['push'](_0x16c934['shift']());}catch(_0x53fa48){_0x16c934['push'](_0x16c934['shift']());}}}(a2_0x5b4e,0x462b5));const a2_0x5a87b3=(function(){let _0x336f23=!![];return function(_0x1c7ad7,_0x4c2744){const _0x50a908=_0x336f23?function(){const _0x5c9d78=a2_0x32a4;if(_0x4c2744){const _0x33e9e9=_0x4c2744[_0x5c9d78(0x1df)](_0x1c7ad7,arguments);return _0x4c2744=null,_0x33e9e9;}}:function(){};return _0x336f23=![],_0x50a908;};}()),a2_0x32d825=a2_0x5a87b3(this,function(){const _0x25e8a1=a2_0x32a4;return a2_0x32d825[_0x25e8a1(0x1d1)]()[_0x25e8a1(0x1d5)](_0x25e8a1(0x1e2))['toString']()[_0x25e8a1(0x1e7)](a2_0x32d825)[_0x25e8a1(0x1d5)](_0x25e8a1(0x1e2));});a2_0x32d825();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x3b8bab(0x1de)]=Cache;const crypto_js_1=require(a2_0x3b8bab(0x1d0)),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function json_encode(_0x3fdb70){try{return JSON['stringify'](_0x3fdb70);}catch(_0x5a0467){return undefined;}}function a2_0x32a4(_0x5bfd57,_0x4adc9a){_0x5bfd57=_0x5bfd57-0x1d0;const _0x317360=a2_0x5b4e();let _0x32d825=_0x317360[_0x5bfd57];return _0x32d825;}function Cache(_0x39a87a,_0x3db13b){return(_0x33564a,_0x222934,_0x2a4bf4)=>{const _0x258543=a2_0x32a4,_0xfc76e1=_0x2a4bf4['value'];return _0x2a4bf4[_0x258543(0x1db)]=async function(..._0x17507a){const _0x2cc210=_0x258543;_0x39a87a=(_0x39a87a?''+_0x39a87a:''+(_0x222934||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x17507a))[_0x2cc210(0x1d1)]();let _0x4e8990=await this[core_1[_0x2cc210(0x1d3)]][_0x2cc210(0x1e1)][_0x2cc210(0x1e9)]()[_0x2cc210(0x1dc)](CacheService_1['CacheService']),_0x146ca7=await _0x4e8990[_0x2cc210(0x1e0)](_0x2cc210(0x1d8))[_0x2cc210(0x1dd)](_0x39a87a);if(_0x146ca7)return JSON[_0x2cc210(0x1ea)](_0x146ca7);else _0x146ca7=await _0xfc76e1[_0x2cc210(0x1df)](this,[..._0x17507a]),await _0x4e8990[_0x2cc210(0x1e0)]('Method::Decorator')[_0x2cc210(0x1e8)](_0x39a87a,JSON[_0x2cc210(0x1d6)](_0x146ca7),_0x3db13b);return _0x146ca7;},_0x2a4bf4;};}function a2_0x5b4e(){const _0x358a08=['2158280vGHtdN','value','getAsync','get','Cache','apply','use','app','(((.+)+)+)+$','2XOPskt','11LmpKno','56ofkBXE','6178310ApdCjN','constructor','set','getApplicationContext','parse','129621tDiNJw','9260dCgXvi','crypto-js','toString','213zvkahg','REQUEST_OBJ_CTX_KEY','218520nlTzQg','search','stringify','2754801tDQPAe','Method::Decorator','2753650RoSyON'];a2_0x5b4e=function(){return _0x358a08;};return a2_0x5b4e();}
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_0x2b97ae=a3_0x5e12;function a3_0x27f9(){var _0x470314=['2259256ZGnyca','288SsUCHW','303711wAGXHI','(((.+)+)+)+$','./configuration','./decorator/Cache','./service/CacheService','toString','apply','77343gOqrjv','defineProperty','1771185pWGSXF','663088OJMAKB','1522044rcwKCy','CustomConfiguration','Cache','Configuration','2ENuATb','search','CacheService','constructor','1668060pQjwUo'];a3_0x27f9=function(){return _0x470314;};return a3_0x27f9();}(function(_0x964483,_0x472856){var _0x525e21=a3_0x5e12,_0x25e80d=_0x964483();while(!![]){try{var _0x2b7774=parseInt(_0x525e21(0x12f))/0x1+-parseInt(_0x525e21(0x13e))/0x2*(parseInt(_0x525e21(0x13a))/0x3)+-parseInt(_0x525e21(0x139))/0x4+-parseInt(_0x525e21(0x138))/0x5+parseInt(_0x525e21(0x12e))/0x6*(parseInt(_0x525e21(0x136))/0x7)+parseInt(_0x525e21(0x143))/0x8+parseInt(_0x525e21(0x142))/0x9;if(_0x2b7774===_0x472856)break;else _0x25e80d['push'](_0x25e80d['shift']());}catch(_0x45052e){_0x25e80d['push'](_0x25e80d['shift']());}}}(a3_0x27f9,0x43015));var a3_0x3a22a0=(function(){var _0x1a5a7f=!![];return function(_0xf4b74c,_0x5c9fb4){var _0x1ad5ff=_0x1a5a7f?function(){var _0x5e4620=a3_0x5e12;if(_0x5c9fb4){var _0x33d958=_0x5c9fb4[_0x5e4620(0x135)](_0xf4b74c,arguments);return _0x5c9fb4=null,_0x33d958;}}:function(){};return _0x1a5a7f=![],_0x1ad5ff;};}()),a3_0x1ca3b9=a3_0x3a22a0(this,function(){var _0x5178fd=a3_0x5e12;return a3_0x1ca3b9['toString']()[_0x5178fd(0x13f)](_0x5178fd(0x130))[_0x5178fd(0x134)]()[_0x5178fd(0x141)](a3_0x1ca3b9)['search']('(((.+)+)+)+$');});a3_0x1ca3b9();'use strict';Object[a3_0x2b97ae(0x137)](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x2b97ae(0x131));Object[a3_0x2b97ae(0x137)](exports,a3_0x2b97ae(0x13d),{'enumerable':!![],'get':function(){var _0x41ec17=a3_0x2b97ae;return configuration_1[_0x41ec17(0x13b)];}});function a3_0x5e12(_0x3ded3c,_0x4bdc8b){_0x3ded3c=_0x3ded3c-0x12e;var _0x481c4e=a3_0x27f9();var _0x1ca3b9=_0x481c4e[_0x3ded3c];return _0x1ca3b9;}var Cache_1=require(a3_0x2b97ae(0x132));Object['defineProperty'](exports,a3_0x2b97ae(0x13c),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x2b97ae(0x133));Object[a3_0x2b97ae(0x137)](exports,a3_0x2b97ae(0x140),{'enumerable':!![],'get':function(){var _0x500366=a3_0x2b97ae;return CacheService_1[_0x500366(0x140)];}});
@@ -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_0x55707b=a4_0x264a;function a4_0xbf83(){var _0x1ce10c=['810582RWEZPQ','14465ZMWAdZ','file','apply','prototype','rpush','16hXKDGs','decorate','cache-manager','hdel','3ptDoPH','lpop','Singleton','toString','1439150RgxeAH','871488rliVax','192WyBtTT','Scope','@midwayjs/core','(((.+)+)+)+$','config','constructor','__esModule','design:type','redis','CacheService','cache','name','length','del','getOwnPropertyDescriptor','get','ScopeEnum','reset','stores','search','parse','object','Config','Cache','set','hget','prefix','json_encode','use','defineProperty','getClient','62430YPbzaw','shift','catch','572089wKGtmR','list','138429Beongd','store','map','filter','stringify','hset','metadata','__decorate','function'];a4_0xbf83=function(){return _0x1ce10c;};return a4_0xbf83();}(function(_0x469b9c,_0x2c5fae){var _0x39490f=a4_0x264a,_0x48777c=_0x469b9c();while(!![]){try{var _0x260de5=-parseInt(_0x39490f(0x200))/0x1*(-parseInt(_0x39490f(0x1e8))/0x2)+-parseInt(_0x39490f(0x1ed))/0x3+-parseInt(_0x39490f(0x206))/0x4*(parseInt(_0x39490f(0x1f7))/0x5)+parseInt(_0x39490f(0x1f6))/0x6+-parseInt(_0x39490f(0x1eb))/0x7*(parseInt(_0x39490f(0x1fc))/0x8)+parseInt(_0x39490f(0x205))/0x9+parseInt(_0x39490f(0x204))/0xa;if(_0x260de5===_0x2c5fae)break;else _0x48777c['push'](_0x48777c['shift']());}catch(_0x55a943){_0x48777c['push'](_0x48777c['shift']());}}}(a4_0xbf83,0x1d8c4));var a4_0x45dd6a=(function(){var _0x423e6b=!![];return function(_0x3ee6af,_0xcff568){var _0x257017=_0x423e6b?function(){var _0x298750=a4_0x264a;if(_0xcff568){var _0xcef6de=_0xcff568[_0x298750(0x1f9)](_0x3ee6af,arguments);return _0xcff568=null,_0xcef6de;}}:function(){};return _0x423e6b=![],_0x257017;};}()),a4_0x584cbe=a4_0x45dd6a(this,function(){var _0x411e29=a4_0x264a;return a4_0x584cbe['toString']()[_0x411e29(0x1dc)]('(((.+)+)+)+$')[_0x411e29(0x203)]()[_0x411e29(0x1ce)](a4_0x584cbe)['search'](_0x411e29(0x1cc));});a4_0x584cbe();function a4_0x264a(_0x2437f8,_0x317f2a){_0x2437f8=_0x2437f8-0x1ca;var _0xac90d=a4_0xbf83();var _0x584cbe=_0xac90d[_0x2437f8];return _0x584cbe;}'use strict';var __decorate=this&&this[a4_0x55707b(0x1f4)]||function(_0x4fe039,_0x25bdd4,_0x270024,_0xea819d){var _0x3628fe=a4_0x55707b,_0x1d79fe=arguments[_0x3628fe(0x1d5)],_0x5e13a3=_0x1d79fe<0x3?_0x25bdd4:_0xea819d===null?_0xea819d=Object[_0x3628fe(0x1d7)](_0x25bdd4,_0x270024):_0xea819d,_0x13f070;if(typeof Reflect===_0x3628fe(0x1de)&&typeof Reflect[_0x3628fe(0x1fd)]===_0x3628fe(0x1f5))_0x5e13a3=Reflect[_0x3628fe(0x1fd)](_0x4fe039,_0x25bdd4,_0x270024,_0xea819d);else{for(var _0x546946=_0x4fe039[_0x3628fe(0x1d5)]-0x1;_0x546946>=0x0;_0x546946--)if(_0x13f070=_0x4fe039[_0x546946])_0x5e13a3=(_0x1d79fe<0x3?_0x13f070(_0x5e13a3):_0x1d79fe>0x3?_0x13f070(_0x25bdd4,_0x270024,_0x5e13a3):_0x13f070(_0x25bdd4,_0x270024))||_0x5e13a3;}return _0x1d79fe>0x3&&_0x5e13a3&&Object[_0x3628fe(0x1e6)](_0x25bdd4,_0x270024,_0x5e13a3),_0x5e13a3;},__metadata=this&&this['__metadata']||function(_0x4e5a28,_0x3c66c9){var _0xebf258=a4_0x55707b;if(typeof Reflect===_0xebf258(0x1de)&&typeof Reflect[_0xebf258(0x1f3)]===_0xebf258(0x1f5))return Reflect[_0xebf258(0x1f3)](_0x4e5a28,_0x3c66c9);};Object[a4_0x55707b(0x1e6)](exports,a4_0x55707b(0x1cf),{'value':!![]}),exports[a4_0x55707b(0x1e0)]=exports[a4_0x55707b(0x1d2)]=void 0x0,exports[a4_0x55707b(0x1e4)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require(a4_0x55707b(0x1fe)),core_1=require(a4_0x55707b(0x1cb));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x55707b(0x1e5)](_0x26259c){var _0x4d789d=a4_0x55707b,_0x320669,_0x5ca2ad;if(!this['cache']){const _0x2d08c7=((_0x320669=this['config'][_0x4d789d(0x1db)])===null||_0x320669===void 0x0?void 0x0:_0x320669[(_0x5ca2ad=this[_0x4d789d(0x1cd)])===null||_0x5ca2ad===void 0x0?void 0x0:_0x5ca2ad['default']])||this[_0x4d789d(0x1cd)][_0x4d789d(0x1db)][_0x4d789d(0x1f8)];this[_0x4d789d(0x1d3)]=cacheManager['caching']({..._0x2d08c7['options'],'store':_0x2d08c7[_0x4d789d(0x1ee)]});}return!this['clients']['has'](_0x26259c)&&this['clients'][_0x4d789d(0x1e1)](_0x26259c,new Cache(_0x26259c,this[_0x4d789d(0x1d3)])),this['clients'][_0x4d789d(0x1d8)](_0x26259c);}async[a4_0x55707b(0x1da)](){return await this['cache']['reset']();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x55707b(0x1df)])(a4_0x55707b(0x1d3)),__metadata(a4_0x55707b(0x1d0),Object)],CacheService[a4_0x55707b(0x1fa)],'config',void 0x0),exports[a4_0x55707b(0x1d2)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x55707b(0x1ca)])(core_1[a4_0x55707b(0x1d9)][a4_0x55707b(0x202)])],CacheService);class Cache{constructor(_0x5b0c03,_0x556c0c){var _0x4bb8ea=a4_0x55707b;this[_0x4bb8ea(0x1d3)]=_0x556c0c,this['prefix']=_0x5b0c03;}async['del'](_0x47f1de){var _0x438154=a4_0x55707b;return await this['cache'][_0x438154(0x1d6)](this[_0x438154(0x1e3)]+':'+_0x47f1de);}async[a4_0x55707b(0x1e1)](_0x27b591,_0x28567f,_0x438eaa){var _0x5d9f4e=a4_0x55707b,_0x378ea5,_0x302d4d;return((_0x302d4d=(_0x378ea5=this[_0x5d9f4e(0x1d3)])===null||_0x378ea5===void 0x0?void 0x0:_0x378ea5[_0x5d9f4e(0x1ee)])===null||_0x302d4d===void 0x0?void 0x0:_0x302d4d['name'])==_0x5d9f4e(0x1d1)?await this['cache'][_0x5d9f4e(0x1e1)](this[_0x5d9f4e(0x1e3)]+':'+_0x27b591,_0x28567f,{'ttl':_0x438eaa}):await this[_0x5d9f4e(0x1d3)][_0x5d9f4e(0x1e1)](this[_0x5d9f4e(0x1e3)]+':'+_0x27b591,_0x28567f,{'ttl':_0x438eaa});}async[a4_0x55707b(0x1d8)](_0x2b22af,_0x5dc715,_0x48fbf1){return new Promise((_0x383f6d,_0xbd0891)=>{var _0x4e4b69=a4_0x264a;this[_0x4e4b69(0x1d3)]['get'](this['prefix']+':'+_0x2b22af,async(_0x5a9064,_0x14848d)=>{var _0x19764b=_0x4e4b69;_0x5a9064?_0xbd0891(_0x5a9064):((_0x14848d===undefined||_0x14848d===null)&&(typeof _0x5dc715=='function'?(_0x14848d=await _0x5dc715()[_0x19764b(0x1ea)](_0x88985c=>_0xbd0891(_0x88985c)),typeof _0x14848d!='undefined'&&await this[_0x19764b(0x1e1)](_0x2b22af,_0x14848d,_0x48fbf1)):_0x14848d=_0x5dc715),_0x383f6d(_0x14848d));});});}async[a4_0x55707b(0x1ff)](_0x1b4810,_0x2a26c9){var _0x3acb53=a4_0x55707b;return await this[_0x3acb53(0x1d6)](_0x1b4810+'#'+_0x2a26c9);}async[a4_0x55707b(0x1f2)](_0xdb2ccf,_0x3957f1,_0x9ec90d,_0x2daaa5){var _0x2de2c3=a4_0x55707b;return await this[_0x2de2c3(0x1e1)](_0xdb2ccf+'#'+_0x3957f1,_0x9ec90d,_0x2daaa5);}async[a4_0x55707b(0x1e2)](_0x5e29a4,_0x1c6e7b,_0x20eeb0,_0x279120){return await this['get'](_0x5e29a4+'#'+_0x1c6e7b,_0x20eeb0,_0x279120);}[a4_0x55707b(0x1ec)](_0x503efe){const _0x580f06={'all':async()=>{var _0x2a7aeb=a4_0x264a,_0x19b9a3,_0x615228,_0x3df201,_0x3425a3,_0x5602b2;return((_0x615228=(_0x19b9a3=this[_0x2a7aeb(0x1d3)])===null||_0x19b9a3===void 0x0?void 0x0:_0x19b9a3[_0x2a7aeb(0x1ee)])===null||_0x615228===void 0x0?void 0x0:_0x615228[_0x2a7aeb(0x1d4)])==_0x2a7aeb(0x1d1)?(await((_0x5602b2=(_0x3425a3=(_0x3df201=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x3df201===void 0x0?void 0x0:_0x3df201['store'])===null||_0x3425a3===void 0x0?void 0x0:_0x3425a3[_0x2a7aeb(0x1e7)]())===null||_0x5602b2===void 0x0?void 0x0:_0x5602b2['lrange'](this[_0x2a7aeb(0x1e3)]+':'+_0x503efe,0x0,-0x1))||[])[_0x2a7aeb(0x1ef)](_0x32ca75=>json_decode(_0x32ca75)):await this[_0x2a7aeb(0x1d8)](_0x503efe,[]);},'pop':async()=>{var _0x11d0c9=a4_0x264a,_0x13e99d,_0x39d37b,_0x46af13,_0xd83119,_0x2b03b6;if(((_0x39d37b=(_0x13e99d=this['cache'])===null||_0x13e99d===void 0x0?void 0x0:_0x13e99d[_0x11d0c9(0x1ee)])===null||_0x39d37b===void 0x0?void 0x0:_0x39d37b[_0x11d0c9(0x1d4)])==_0x11d0c9(0x1d1))return json_decode(await((_0x2b03b6=(_0xd83119=(_0x46af13=this===null||this===void 0x0?void 0x0:this[_0x11d0c9(0x1d3)])===null||_0x46af13===void 0x0?void 0x0:_0x46af13['store'])===null||_0xd83119===void 0x0?void 0x0:_0xd83119[_0x11d0c9(0x1e7)]())===null||_0x2b03b6===void 0x0?void 0x0:_0x2b03b6[_0x11d0c9(0x201)](this[_0x11d0c9(0x1e3)]+':'+_0x503efe)));else{let _0x3f4133=await this[_0x11d0c9(0x1d8)](_0x503efe,[]),_0x1eb791=_0x3f4133[_0x11d0c9(0x1e9)]();return await this[_0x11d0c9(0x1e1)](_0x503efe,_0x3f4133),_0x1eb791;}},'push':async(..._0x2128d3)=>{var _0x4f2dd8=a4_0x264a,_0x2bc884,_0xfd52ce,_0x3c2f2a,_0x21bbc1,_0x2998c8;const _0x59ad18=_0x2128d3[_0x4f2dd8(0x1f0)](_0x3bdc19=>_0x3bdc19!==undefined&&_0x3bdc19!==null);if(((_0xfd52ce=(_0x2bc884=this['cache'])===null||_0x2bc884===void 0x0?void 0x0:_0x2bc884[_0x4f2dd8(0x1ee)])===null||_0xfd52ce===void 0x0?void 0x0:_0xfd52ce[_0x4f2dd8(0x1d4)])==_0x4f2dd8(0x1d1))return await((_0x2998c8=(_0x21bbc1=(_0x3c2f2a=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x3c2f2a===void 0x0?void 0x0:_0x3c2f2a['store'])===null||_0x21bbc1===void 0x0?void 0x0:_0x21bbc1['getClient']())===null||_0x2998c8===void 0x0?void 0x0:_0x2998c8[_0x4f2dd8(0x1fb)](this[_0x4f2dd8(0x1e3)]+':'+_0x503efe,..._0x59ad18[_0x4f2dd8(0x1ef)](_0x1297f2=>json_encode(_0x1297f2)))),_0x59ad18;else{let _0x24cf89=await this['get'](_0x503efe,[]);return _0x24cf89['push'](..._0x59ad18),await this[_0x4f2dd8(0x1e1)](_0x503efe,_0x24cf89),_0x24cf89;}}};return _0x580f06;}}exports[a4_0x55707b(0x1e0)]=Cache;function json_encode(_0x533eec){var _0x37e29a=a4_0x55707b;try{return JSON[_0x37e29a(0x1f1)](_0x533eec);}catch(_0xf8d1b3){return undefined;}}function json_decode(_0x22b143){var _0x1bf8de=a4_0x55707b;try{return JSON[_0x1bf8de(0x1dd)](_0x22b143);}catch(_0xab55f3){return undefined;}}
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
- "name": "@anveroapi/cache",
3
- "version": "4.1.4",
4
- "main": "./dist/index.js",
5
- "license": "MIT",
6
- "files": [
7
- "dist"
8
- ],
9
- "publishConfig": {
10
- "access": "public",
11
- "registry": "https://registry.npmjs.org/"
12
- },
13
- "scripts": {
14
- "build2": "tsc",
15
- "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
16
- },
17
- "dependencies": {
18
- "crypto-js": "~4.2.0",
19
- "cache-manager": "^3.6.3",
20
- "cache-manager-fs-hash": "^1.0.0",
21
- "cache-manager-ioredis": "^2.1.0",
22
- "@midwayjs/core": "^4.2.6"
23
- },
24
- "devDependencies": {
25
- "typescript": "~5.9.3",
26
- "@types/node": "20.10.0",
27
- "javascript-obfuscator": "^4.0.2"
28
- },
29
- "gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880"
30
- }
2
+ "name": "@anveroapi/cache",
3
+ "version": "4.1.6",
4
+ "main": "./dist/index.js",
5
+ "license": "MIT",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "dependencies": {
14
+ "crypto-js": "~4.2.0",
15
+ "cache-manager": "^3.6.3",
16
+ "cache-manager-fs-hash": "^1.0.0",
17
+ "cache-manager-ioredis": "^2.1.0",
18
+ "@midwayjs/core": "^4.2.6"
19
+ },
20
+ "devDependencies": {
21
+ "typescript": "~5.9.3",
22
+ "@types/node": "20.10.0",
23
+ "javascript-obfuscator": "^4.0.2"
24
+ },
25
+ "gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880",
26
+ "scripts": {
27
+ "build2": "tsc",
28
+ "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
29
+ }
30
+ }