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
Currently, the cache is loaded even if the function code has changed. For prototyping purposes, it would be great to have the possibility to reload the cache on source code change.
Example :
fromcachierimportcachier@cachier()deff(x):
print("This will print once")
returnx+3print(f(0)) # -> 3
will put the result of f(0) in cache for instance. But, when changing 3 to 4 :
@cachier()deff(x):
print("This will not be printed unless cache is invalidated manually")
returnx+4print(f(0)) # -> 3
TBD :
This behavior could be default, or enabled with a parameter reload_on_source_change
Should it refresh only when the body of the function changes (easy) or recursively on any change of a function called in the body (harder, maybe not necessary)
The text was updated successfully, but these errors were encountered:
Currently, the cache is loaded even if the function code has changed. For prototyping purposes, it would be great to have the possibility to reload the cache on source code change.
Example :
will put the result of
f(0)
in cache for instance. But, when changing3
to4
:TBD :
reload_on_source_change
The text was updated successfully, but these errors were encountered: