|
|
@@ -23,10 +23,13 @@ async def anop(*a,**kw):pass
|
|
23
|
23
|
def nop(*a,**kw):pass
|
|
24
|
24
|
class Edict(dict):pass
|
|
25
|
25
|
class Eobj():pass
|
|
|
26
|
+def connect_redis1():
|
|
|
27
|
+ return redis.Redis(host='localhost', port=6379, db=1,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace")
|
|
26
|
28
|
def connect_redis():
|
|
27
|
|
- return redis.Redis(host='localhost', port=6379, db=0,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace")
|
|
|
29
|
+ # return redis.Redis(host='localhost', port=6379, db=0,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace")
|
|
|
30
|
+ return redis.Redis(host='localhost', port=6379,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace")
|
|
28
|
31
|
r'''
|
|
29
|
|
-
|
|
|
32
|
+
|
|
30
|
33
|
return {
|
|
31
|
34
|
"rconn0":redis.Redis(host='localhost', port=6379, db=0,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace"),
|
|
32
|
35
|
"rconn1":redis.Redis(host='localhost', port=6379, db=1,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace"),
|
|
|
@@ -176,7 +179,8 @@ class globCL(GCLMixin):
|
|
176
|
179
|
# for now we are not going to do any weird class stuff
|
|
177
|
180
|
self.acl = None
|
|
178
|
181
|
self.has_cl = False
|
|
179
|
|
- rconns = connect_redis()
|
|
|
182
|
+ # rconns = connect_redis()
|
|
|
183
|
+ self.rconn1 = connect_redis1()
|
|
180
|
184
|
self.rconn = connect_redis()
|
|
181
|
185
|
self.rman = RldMan()
|
|
182
|
186
|
self.cbs_once = []
|