ソースを参照

增加redis gem文件

abiao 5 年 前
コミット
a76f5fb88c
共有1 個のファイルを変更した7 個の追加2 個の削除を含む
  1. 7 2
      app/models/wx_user.rb

+ 7 - 2
app/models/wx_user.rb

@@ -23,8 +23,13 @@ class WxUser < ActiveRecord::Base
 
   def after_update
     #root:Fohow123!@#
-    test_redis = Redis.new(:host=>"redis://r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
-    redis = Redis.new(:host=>"redis://r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
+    test_redis = Redis.new(:host=>"redis://r-wz9dtt12y12ns2b97gpd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
+    redis = Redis.new(:host=>"redis://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")
+
     userKey= format("userinfo_%d",self.id)
     redis.del(userKey)
     test_redis.del(userKey)