forked from Gitlink/forgeplus
redis对象开启
This commit is contained in:
parent
45d23a0aad
commit
cc9f2214b5
|
@ -1,3 +1,3 @@
|
||||||
redis_config = Rails.application.config_for(:redis)
|
redis_config = Rails.application.config_for(:redis)
|
||||||
cache_url = redis_config["url"] || 'redis://localhost:6379'
|
cache_url = redis_config["url"] || 'redis://localhost:6379'
|
||||||
# $redis_cache = Redis.new(url: cache_url, db: 2)
|
$redis_cache = Redis.new(url: cache_url, db: 2)
|
Loading…
Reference in New Issue