This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
redis对象开启
pull/323/head
xxq250
3 years ago
parent
45d23a0aad
commit
cc9f2214b5
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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)
Write
Preview
Loading…
Cancel
Save