Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / rediscache / index.js
index b351684..f5955d6 100644 (file)
@@ -1 +1 @@
-const a1023_0x4866=['../config/config.service','../config/environment','redisHost','exports'];(function(_0x2db276,_0x486604){const _0x474ea7=function(_0x35509a){while(--_0x35509a){_0x2db276['push'](_0x2db276['shift']());}};_0x474ea7(++_0x486604);}(a1023_0x4866,0x146));const a1023_0x474e=function(_0x2db276,_0x486604){_0x2db276=_0x2db276-0x0;let _0x474ea7=a1023_0x4866[_0x2db276];return _0x474ea7;};const _0x14c073=a1023_0x474e,Redis=require('ioredis'),socketEmitter=require('socket.io-emitter'),config=require(_0x14c073('0x3')),cs=require(_0x14c073('0x2'))['getConfigService'](),MAX_RETRIES=0xa,REDIS_CONFIG={'host':cs[_0x14c073('0x0')],'port':cs['redisPort'],'retryStrategy':function(_0x35509a){if(_0x35509a<MAX_RETRIES)return 0xc8;},...config['redis']};let redisInstance=null,socketInstance=null;function getRedis(_0x16c550=![]){if(_0x16c550)return new Redis(REDIS_CONFIG);else!redisInstance&&!_0x16c550&&(redisInstance=new Redis(REDIS_CONFIG));return redisInstance;}function getSocket(){return!socketInstance&&(socketInstance=socketEmitter(getRedis())),socketInstance;}module[_0x14c073('0x1')]={'getRedis':getRedis,'getSocket':getSocket};
\ No newline at end of file
+const a1023_0x59a1=['../config/environment','../config/config.service','redisPort','getConfigService','redis','exports','ioredis','socket.io-emitter'];(function(_0x4991e6,_0x59a166){const _0x24d9cd=function(_0x2b6c93){while(--_0x2b6c93){_0x4991e6['push'](_0x4991e6['shift']());}};_0x24d9cd(++_0x59a166);}(a1023_0x59a1,0x11e));const a1023_0x24d9=function(_0x4991e6,_0x59a166){_0x4991e6=_0x4991e6-0x0;let _0x24d9cd=a1023_0x59a1[_0x4991e6];return _0x24d9cd;};const _0x3a543d=a1023_0x24d9,Redis=require(_0x3a543d('0x0')),socketEmitter=require(_0x3a543d('0x1')),config=require(_0x3a543d('0x2')),cs=require(_0x3a543d('0x3'))[_0x3a543d('0x5')](),MAX_RETRIES=0xa,REDIS_CONFIG={'host':cs['redisHost'],'port':cs[_0x3a543d('0x4')],'retryStrategy':function(_0x2b6c93){if(_0x2b6c93<MAX_RETRIES)return 0xc8;},...config[_0x3a543d('0x6')]};let redisInstance=null,socketInstance=null;function getRedis(_0x3e691a=![]){if(_0x3e691a)return new Redis(REDIS_CONFIG);else!redisInstance&&!_0x3e691a&&(redisInstance=new Redis(REDIS_CONFIG));return redisInstance;}function getSocket(){return!socketInstance&&(socketInstance=socketEmitter(getRedis())),socketInstance;}module[_0x3a543d('0x7')]={'getRedis':getRedis,'getSocket':getSocket};
\ No newline at end of file