Skip to content

Add automatic cach invalidation upon exeding maximum cache age #6

@Olian04

Description

@Olian04

Ex:

@cache(5*60)
def foo(a):
    return a * a

This would invalidate the cache of function foo, 5 minutes after it being called the first time.

>>> foo(2) # will cache
4
>>> foo(2) # will use cache
4
>>> # wait for 5 min
>>> foo(2) # will cache again

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