Open flniu opened 7 years ago
Example:
@cache.memoize() def param_func(a, b): return a+b+random.randrange(1, 50)
For the function above:
cache.delete_memoized('random_func')
cache.delete_memoized('param_func', 1, 2)
cache.delete_memoized('param_func', 1)
Example:
For the function above:
cache.delete_memoized('random_func')
will delete all caches of this function;cache.delete_memoized('param_func', 1, 2)
will delete the cache with parameters a=1 and b=2;cache.delete_memoized('param_func', 1)
?