Fallback, falls Redis nicht in Config gesetzt
This commit is contained in:
parent
b6a30dd9d3
commit
2c6ece93b5
@ -1,6 +1,13 @@
|
|||||||
local Redis = require 'redis'
|
local Redis = require 'redis'
|
||||||
local FakeRedis = require 'fakeredis'
|
local FakeRedis = require 'fakeredis'
|
||||||
local config = require('config')
|
local config = require('config')
|
||||||
|
if not config.redis then -- Please update the values in the config.lua!
|
||||||
|
config.redis = {
|
||||||
|
host = '127.0.0.1',
|
||||||
|
port = 6379,
|
||||||
|
use_socket = false
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
-- Overwrite HGETALL
|
-- Overwrite HGETALL
|
||||||
Redis.commands.hgetall = Redis.command('hgetall', {
|
Redis.commands.hgetall = Redis.command('hgetall', {
|
||||||
|
Reference in New Issue
Block a user