refactor(redis): DEL -> UNLINK
This is beneficial since unlink is non blocking, it will run in a different thread if the data passed is large https://redis.io/commands/unlink/ Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
886d4ffc25
commit
7c82115f5b
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class RedisWrapper(redis.Redis):
|
|||
frappe.local.cache.pop(key, None)
|
||||
|
||||
try:
|
||||
self.delete(*keys)
|
||||
self.unlink(*keys)
|
||||
except redis.exceptions.ConnectionError:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue