YiAi/YiAiQuickDeploy/dist/modules/redisCache/redisCache.module.js
2024-02-06 13:43:30 +08:00

1 line
4.1 KiB
JavaScript

'use strict';const _0x1d9c1c=_0x934f;(function(_0x5b680b,_0x382e6c){const _0x1bac44=_0x934f,_0x3c0368=_0x5b680b();while(!![]){try{const _0x1f9db7=-parseInt(_0x1bac44(0xa6))/0x1*(-parseInt(_0x1bac44(0x86))/0x2)+-parseInt(_0x1bac44(0xae))/0x3*(-parseInt(_0x1bac44(0xa0))/0x4)+parseInt(_0x1bac44(0x95))/0x5*(parseInt(_0x1bac44(0xa5))/0x6)+-parseInt(_0x1bac44(0xa2))/0x7*(-parseInt(_0x1bac44(0x91))/0x8)+parseInt(_0x1bac44(0xaf))/0x9+parseInt(_0x1bac44(0x9f))/0xa+-parseInt(_0x1bac44(0x9e))/0xb*(parseInt(_0x1bac44(0xad))/0xc);if(_0x1f9db7===_0x382e6c)break;else _0x3c0368['push'](_0x3c0368['shift']());}catch(_0x217dde){_0x3c0368['push'](_0x3c0368['shift']());}}}(_0x3cce,0x8fb3a));var __decorate=this&&this[_0x1d9c1c(0x9b)]||function(_0x4030a6,_0xd7e2ce,_0x419bd3,_0x57e801){const _0x4142c8=_0x1d9c1c;var _0x29f8c1=arguments[_0x4142c8(0x94)],_0x513580=_0x29f8c1<0x3?_0xd7e2ce:_0x57e801===null?_0x57e801=Object[_0x4142c8(0x98)](_0xd7e2ce,_0x419bd3):_0x57e801,_0x4374cc;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x4142c8(0x8f))_0x513580=Reflect[_0x4142c8(0x97)](_0x4030a6,_0xd7e2ce,_0x419bd3,_0x57e801);else{for(var _0x2711ed=_0x4030a6['length']-0x1;_0x2711ed>=0x0;_0x2711ed--)if(_0x4374cc=_0x4030a6[_0x2711ed])_0x513580=(_0x29f8c1<0x3?_0x4374cc(_0x513580):_0x29f8c1>0x3?_0x4374cc(_0xd7e2ce,_0x419bd3,_0x513580):_0x4374cc(_0xd7e2ce,_0x419bd3))||_0x513580;}return _0x29f8c1>0x3&&_0x513580&&Object[_0x4142c8(0x93)](_0xd7e2ce,_0x419bd3,_0x513580),_0x513580;};function _0x934f(_0xb9c72c,_0x4ab6f8){const _0x3cceab=_0x3cce();return _0x934f=function(_0x934f0e,_0x2a86df){_0x934f0e=_0x934f0e-0x86;let _0x375040=_0x3cceab[_0x934f0e];return _0x375040;},_0x934f(_0xb9c72c,_0x4ab6f8);}Object['defineProperty'](exports,_0x1d9c1c(0xa7),{'value':!![]}),exports['RedisCacheModule']=void 0x0;const common_1=require(_0x1d9c1c(0xab)),redisCache_service_1=require(_0x1d9c1c(0x99)),redisCache_controller_1=require(_0x1d9c1c(0x8a)),nestjs_config_1=require(_0x1d9c1c(0x8b)),redis_1=require('redis');let RedisCacheModule=class RedisCacheModule{};RedisCacheModule=__decorate([(0x0,common_1['Global'])(),(0x0,common_1[_0x1d9c1c(0x8e)])({'imports':[nestjs_config_1[_0x1d9c1c(0xaa)]],'controllers':[redisCache_controller_1[_0x1d9c1c(0x90)]],'providers':[{'provide':'REDIS_CLIENT','useFactory':async _0x532540=>{const _0xf618ad=_0x1d9c1c,_0x258bc2=+process[_0xf618ad(0x9d)][_0xf618ad(0xac)],_0x5925a3=process['env'][_0xf618ad(0x89)],_0x286607=process[_0xf618ad(0x9d)][_0xf618ad(0x92)],_0x227e3d=process[_0xf618ad(0x9d)][_0xf618ad(0x9a)];if(!_0x5925a3||!_0x258bc2){common_1[_0xf618ad(0x87)]['error'](_0xf618ad(0x8d),_0xf618ad(0x96));return;}const _0x4b4a8e=(0x0,redis_1[_0xf618ad(0x88)])({'socket':{'host':_0x5925a3,'port':_0x258bc2},'username':_0x227e3d,'password':_0x286607}),_0x2ceb46=await _0x4b4a8e[_0xf618ad(0xa3)]();return _0x4b4a8e['on'](_0xf618ad(0xa8),()=>{const _0x540b41=_0xf618ad;common_1[_0x540b41(0x87)]['debug'](_0x540b41(0xa9),_0x540b41(0x96));}),_0x4b4a8e['on'](_0xf618ad(0x9c),()=>{const _0x37db33=_0xf618ad;common_1[_0x37db33(0x87)][_0x37db33(0x9c)]('Your\x20Redis\x20connection\x20failed\x20|\x20您的\x20Redist\x20连接失败',_0x37db33(0x96));}),_0x4b4a8e;},'inject':[nestjs_config_1[_0x1d9c1c(0xa1)]]},redisCache_service_1[_0x1d9c1c(0xa4)]],'exports':[_0x1d9c1c(0x8c)]})],RedisCacheModule),exports['RedisCacheModule']=RedisCacheModule;function _0x3cce(){const _0x51afa9=['REDIS_CLIENT','Please\x20config\x20Redis\x20config\x20|\x20未配置\x20Redis\x20配置信息\x20请确认配置redis服务以获得更好的体验','Module','function','RedisCacheController','5802584ILtexk','REDIS_PASSWORD','defineProperty','length','1320lrhPHt','RedistCacheModule','decorate','getOwnPropertyDescriptor','./redisCache.service','REDIS_USER','__decorate','error','env','3227543rXPfFj','4418340kdnRJc','1018184vjBhrC','ConfigService','7QiqFEN','connect','RedisCacheService','13140jCSHqy','1utGsKo','__esModule','ready','Your\x20Redis\x20connection\x20successful','ConfigModule','@nestjs/common','REDIS_PORT','132dVtokC','9UtIHEM','8463843UipOFS','733526QFyizQ','Logger','createClient','REDIS_HOST','./redisCache.controller','nestjs-config'];_0x3cce=function(){return _0x51afa9;};return _0x3cce();}