@anveroapi/cache 4.1.5 → 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_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
+ 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
- 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
+ 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_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;};}
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_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
+ 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_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;}}
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.5",
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
+ }