mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
3 lines
159 B
Ruby
3 lines
159 B
Ruby
redis_config = Rails.application.config_for(:redis)
|
|
cache_url = redis_config["url"] || 'redis://localhost:6379'
|
|
$redis_cache = Redis.new(url: cache_url, db: 2) |