xtn-tools-pro 1.0.0.1.7__py3-none-any.whl → 1.0.0.1.9__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.
- xtn_tools_pro/db/RedisDB.py +19 -0
- {xtn_tools_pro-1.0.0.1.7.dist-info → xtn_tools_pro-1.0.0.1.9.dist-info}/METADATA +1 -1
- {xtn_tools_pro-1.0.0.1.7.dist-info → xtn_tools_pro-1.0.0.1.9.dist-info}/RECORD +6 -6
- {xtn_tools_pro-1.0.0.1.7.dist-info → xtn_tools_pro-1.0.0.1.9.dist-info}/LICENSE +0 -0
- {xtn_tools_pro-1.0.0.1.7.dist-info → xtn_tools_pro-1.0.0.1.9.dist-info}/WHEEL +0 -0
- {xtn_tools_pro-1.0.0.1.7.dist-info → xtn_tools_pro-1.0.0.1.9.dist-info}/top_level.txt +0 -0
xtn_tools_pro/db/RedisDB.py
CHANGED
@@ -113,6 +113,25 @@ class RedisDBPro:
|
|
113
113
|
else:
|
114
114
|
return self._redis.sadd(table, values)
|
115
115
|
|
116
|
+
def spop(self, table):
|
117
|
+
"""
|
118
|
+
从集合中弹出元素
|
119
|
+
:param table:
|
120
|
+
:return:
|
121
|
+
"""
|
122
|
+
return self._redis.spop(table)
|
123
|
+
|
124
|
+
def sget_count(self, table):
|
125
|
+
"""
|
126
|
+
获取无序集合数量
|
127
|
+
:param table:
|
128
|
+
:return:
|
129
|
+
"""
|
130
|
+
return self._redis.scard(table)
|
131
|
+
|
132
|
+
def get_redis(self):
|
133
|
+
return self._redis
|
134
|
+
|
116
135
|
def incr(self, key):
|
117
136
|
"""
|
118
137
|
对一个键的值进行自增操作
|
@@ -4,7 +4,7 @@ xtn_tools_pro/tools_flie.py,sha256=-FID31G8AnV2u2djRO3Ae3Ei9ld9bSBWgzwqhYzZ5JQ,1
|
|
4
4
|
xtn_tools_pro/tools_time.py,sha256=DMjsw9h4E_mrPsanPA8CEhpUE1AA6Z2FU4OJqJKZc1k,4867
|
5
5
|
xtn_tools_pro/db/MongoDB.py,sha256=zQLfZ-mhZWCFgY3dPF3dRAzAR3C8hrXO_yLZw9cUUUY,5573
|
6
6
|
xtn_tools_pro/db/MysqlDB.py,sha256=SBJrcjbZdxmtTKPGwl57NthPhs4uX8J3P6o_rK01O4k,13373
|
7
|
-
xtn_tools_pro/db/RedisDB.py,sha256
|
7
|
+
xtn_tools_pro/db/RedisDB.py,sha256=-1K9BEFVhnD38C_wdoC-Jjf7Rx36WlbdljNl0pBLx7I,6466
|
8
8
|
xtn_tools_pro/db/__init__.py,sha256=Zg91UWS02TO0Ba_0AY56s0oabRy93xLNFkpIIL_6mMM,416
|
9
9
|
xtn_tools_pro/proxy/XiaoXiangProxy.py,sha256=45SsMZDc-3Ta4THX38vScjaeRBJSp420AJwBeogC_-I,11049
|
10
10
|
xtn_tools_pro/proxy/__init__.py,sha256=WRwh6s2lruMu5buh0ejo9EK54kWT_VQhCsFGNFAmcyo,418
|
@@ -17,8 +17,8 @@ xtn_tools_pro/utils/log.py,sha256=8CRMiY7Q9LWGJLhfL0YfpANBwLets9f2qWfMOe5PpNM,81
|
|
17
17
|
xtn_tools_pro/utils/retry.py,sha256=0wjHsR5DBBKpv4naMfxiky8kprrZes4WURIfFQ4H708,1657
|
18
18
|
xtn_tools_pro/utils/sql.py,sha256=EAKzbkZP7Q09j15Gm6o0_uq0qgQmcCQT6EAawbpp4v0,6263
|
19
19
|
xtn_tools_pro/utils/time_utils.py,sha256=TUtzG61PeVYXhaQd6pBrXAdlz7tBispNIRQRcGhE2No,4859
|
20
|
-
xtn_tools_pro-1.0.0.1.
|
21
|
-
xtn_tools_pro-1.0.0.1.
|
22
|
-
xtn_tools_pro-1.0.0.1.
|
23
|
-
xtn_tools_pro-1.0.0.1.
|
24
|
-
xtn_tools_pro-1.0.0.1.
|
20
|
+
xtn_tools_pro-1.0.0.1.9.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
|
+
xtn_tools_pro-1.0.0.1.9.dist-info/METADATA,sha256=AUeb4onWqXdK9vpMgUmuzAiPyNRQ0gpyjlzwJeBkDvQ,453
|
22
|
+
xtn_tools_pro-1.0.0.1.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
23
|
+
xtn_tools_pro-1.0.0.1.9.dist-info/top_level.txt,sha256=jyB3FLDEr8zE1U7wHczTgIbvUpALhR-ULF7RVEO7O2U,14
|
24
|
+
xtn_tools_pro-1.0.0.1.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|