-
-
Notifications
You must be signed in to change notification settings - Fork 451
Closed
Description
I have faced an issue when trying to delete key using $cache->delete("key_name"). I works with auto storage but when switching to Predis it fails with error informing that "delete" is not valid command for Predis.
I traced it back to line 124 in Predis driver where "DELETE" instead of proper Redis "DEL" is passed.
https://github.com/khoaofgod/phpfastcache/blob/final/phpfastcache/3.0.0/drivers/predis.php#L124
Changing:
$this->instant->delete($keyword);
for:
$this->instant->del($keyword);
solves the problem.
Metadata
Metadata
Assignees
Labels
No labels