Sfoglia il codice sorgente

增加redis gem文件

abiao 5 anni fa
parent
commit
3905520f94
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      app/models/wx_user.rb

+ 0 - 2
app/models/wx_user.rb

@@ -22,11 +22,9 @@ class WxUser < ActiveRecord::Base
   after_destroy :after_destroy
 
   def after_update
-    #root:Fohow123!@#
     test_redis = Redis.new(:host=>"r-wz9dtt12y12ns2b97gpd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
     redis = Redis.new(:host=>"r-wz9dtt12y12ns2b97gpd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
 
-
     #test_redis = Redis.new(url: "redis://root:8c!Beg9ocFag@r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com:6379/102")
     #redis = Redis.new(url: "redis://root:8c!Beg9ocFag@r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com:6379/15")