Skip to content

[Predis] Issue with DELETE command #144

@stormoPL

Description

@stormoPL

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions