Make sdb.delete() actually call a delete in Redis

Looks like this was missed when copy-pasting the sdb.get() method.
This commit is contained in:
Žygis Škulteckis 2018-09-07 11:38:11 +08:00
parent bbc8c80c77
commit e1e5cf1c2a

View File

@ -81,4 +81,4 @@ def delete(key, profile=None):
redis_kwargs = profile.copy()
redis_kwargs.pop('driver')
redis_conn = redis.StrictRedis(**redis_kwargs)
return redis_conn.get(key)
return redis_conn.delete(key)