mirror of
https://github.com/wassname/cachier.git
synced 2026-09-10 11:50:23 +08:00
added clear_being_calc dix
This commit is contained in:
+6
-1
@@ -495,10 +495,15 @@ def cachier(stale_after=None, next_time=False, pickle_reload=True,
|
||||
core.mark_entry_not_calculated(key)
|
||||
|
||||
def clear_cache():
|
||||
"""Clear the cache and cache statistics"""
|
||||
"""Clear the cache."""
|
||||
core.clear_cache()
|
||||
|
||||
def clear_being_calculated():
|
||||
"""Marks all entries in this cache as not being calculated."""
|
||||
core.clear_being_calculated()
|
||||
|
||||
func_wrapper.clear_cache = clear_cache
|
||||
func_wrapper.clear_being_calculated = clear_being_calculated
|
||||
return func_wrapper
|
||||
|
||||
return _cachier_decorator
|
||||
|
||||
Reference in New Issue
Block a user