Commit 0245aa45 by liyijie

feat: 更新redis设置

parent 0709cf3e
......@@ -5,4 +5,4 @@ redis_config.merge!(db: ENV["REDIS_DB"]) if ENV["REDIS_DB"].present?
Ohm.redis = Redis.new(redis_config)
$redis = Redis.new(redis_config)
$token_redis = Redis::Namespace.new(:token, redis: $redis)
Redis::Objects.redis = Redis.new(url: ENV["REDIS_URL"], db: ENV["REDIS_DB"], password: ENV["REDIS_PASSWORD"])
Redis::Objects.redis = Redis.new(redis_config)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment