update redis-extensions

Brightcells 8 年之前
父節點
當前提交
b68c637678
共有 2 個文件被更改,包括 3 次插入4 次删除
  1. 2 3
      pai2/func_settings.py
  2. 1 1
      requirements.txt

+ 2 - 3
pai2/func_settings.py

@@ -1,7 +1,6 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3
-import redis
4
-import redis_extensions
3
+import redis_extensions as redis
5 4
 
6 5
 
7 6
 def redis_conf(conf):
@@ -14,4 +13,4 @@ def redis_conf(conf):
14 13
 
15 14
 
16 15
 def redis_connect(conf):
17
-    return redis_extensions.StrictRedisExtensions(connection_pool=redis.ConnectionPool(**redis_conf(conf)))
16
+    return redis.StrictRedisExtensions(connection_pool=redis.ConnectionPool(**redis_conf(conf)))

+ 1 - 1
requirements.txt

@@ -25,7 +25,7 @@ pep8==1.6.2
25 25
 pytz==2015.7
26 26
 records==0.4.3
27 27
 redis==2.10.5
28
-redis-extensions==1.0.4
28
+redis-extensions==1.0.5
29 29
 rlog==0.2
30 30
 shortuuid==0.4.2
31 31
 uWSGI==2.0.11.1