1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Redis doesn't need to be Strict

https://github.com/andymccurdy/redis-py#client-classes-redis-and-strictredis
This commit is contained in:
Anatoli Babenia
2020-08-01 06:10:03 +03:00
parent ca88810936
commit b74707a109
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import sys
import redis
REDIS = redis.StrictRedis(host='localhost', port=6379, db=0)
REDIS = redis.Redis(host='localhost', port=6379, db=0)
for key in sys.argv[1:]:
REDIS.delete(key)
+1 -1
View File
@@ -19,7 +19,7 @@ from config import CONFIG
_REDIS = None
if CONFIG['cache.type'] == 'redis':
import redis
_REDIS = redis.StrictRedis(
_REDIS = redis.Redis(
host=CONFIG['cache.redis.host'],
port=CONFIG['cache.redis.port'],
db=CONFIG['cache.redis.db'])