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:
+1
-1
@@ -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
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user