RedisServer-Queue 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,20 @@ if os.path.basename(__file__) in ['run.py', 'main.py', '__main__.py']:
19
19
  else:
20
20
  sys.path.append(os.path.abspath(__file__))
21
21
 
22
- r = redis.Redis(host='localhost', port=6379, db=0)
22
+ r = redis.Redis
23
+
24
+
25
+ def init(rids_boj=None):
26
+ '''
27
+ 初始化redis
28
+ :param rids_boj:
29
+ :return:
30
+ '''
31
+ global r
32
+ if rids_boj:
33
+ r = rids_boj
34
+ else:
35
+ r = r(host='localhost', port=6379, db=0)
23
36
 
24
37
 
25
38
  class RedisQueue:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RedisServer-Queue
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: RedisServer-Queue is a simple redis server
5
5
  Author-email: NelsonLongXiang <1169207670@qq.com>
6
6
  Project-URL: Homepage, https://github.com/NelsonLongxiang/RedisServer
@@ -0,0 +1,6 @@
1
+ RedisServer_Queue/RedisServer.py,sha256=xua8R_elXjfSw-izd6UWj7xqogvw0YriP5ugN04Q-Eg,3233
2
+ RedisServer_Queue-0.0.2.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
3
+ RedisServer_Queue-0.0.2.dist-info/METADATA,sha256=KQsmoF2WdmorAXFHTk0wsVS4mC3hbKdRkGmDRsegebw,554
4
+ RedisServer_Queue-0.0.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
+ RedisServer_Queue-0.0.2.dist-info/top_level.txt,sha256=rcsBD4X_qh4CYFrIE79f5ETrrVBFWcHmqrSydQVyDHI,18
6
+ RedisServer_Queue-0.0.2.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ RedisServer_Queue
@@ -1,6 +0,0 @@
1
- RedisServer/RedisServer.py,sha256=-RwVSFKx5sN7XCZcJpip8PeWCmoCmr_VHg5ApUW-1zI,3049
2
- RedisServer_Queue-0.0.1.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
3
- RedisServer_Queue-0.0.1.dist-info/METADATA,sha256=XqxOyPvjUtW5lkEWBHWn504leIrfSiIylAJvB6iY4eA,554
4
- RedisServer_Queue-0.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
- RedisServer_Queue-0.0.1.dist-info/top_level.txt,sha256=KqY5fDKu1qjJQn9S9SA9hyn4IkuL07UHTsc45MmCB58,12
6
- RedisServer_Queue-0.0.1.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- RedisServer