Skip to content

How to delete cache with specified prefix #910

Open
@elkon028

Description

@elkon028
cache = Cache(Cache.REDIS, endpoint="127.0.0.1", port=6379, namespace="main")
await cache.set('key:1', 1)
await cache.set('key:2', 2)
await cache.set('key:3', 3)

# delete prefix 'key:' ????
await cache.delete("key:") ??
await cache.delete("key:*") ??

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