Browse Source

redis对象开启

pull/323/head
xxq250 3 years ago
parent
commit
cc9f2214b5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/initializers/redis_cache.rb

+ 1
- 1
config/initializers/redis_cache.rb View File

@@ -1,3 +1,3 @@
redis_config = Rails.application.config_for(:redis)
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…
Cancel
Save