You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been examining anycache today and it looks like the perfect solution to a problem I've been having with a small workflow script of mine. However I noticed there doesn't seem to be a way of controlling the maximum amount of time a cached result can live for. In my script I'd like for it to update the cache after it has lived for a certain amount of time (say, every week).
I did see that there's an is_outdated function, but that seems to be based on the source file returning True whenever the source file has been updated (which makes sense).
Could we get an option to specify maxage alongside maxsize for the cached results of a function? e.g.
I've been examining
anycache
today and it looks like the perfect solution to a problem I've been having with a small workflow script of mine. However I noticed there doesn't seem to be a way of controlling the maximum amount of time a cached result can live for. In my script I'd like for it to update the cache after it has lived for a certain amount of time (say, every week).I did see that there's an
is_outdated
function, but that seems to be based on the source file returningTrue
whenever the source file has been updated (which makes sense).Could we get an option to specify
maxage
alongsidemaxsize
for the cached results of a function? e.g.Passing in
None
to themaxage
parameter could disable the max age check.The text was updated successfully, but these errors were encountered: