Skip to content

Update expire time for specific entrys #20

@onebula

Description

@onebula

What I need is to add expire time for specific keys. Currently cacheout provides api "set" to create new entry or update existing entry. So a simple way is:

v = cache.get(k, None)
if v is not None:
    cache.set(k, v, ttl=100)
else:
    raise KeyError(k)

Will you consider to provide apis like "expire" in Redis to update expire time directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions