Update README.rst

This commit is contained in:
Shay Palachy
2016-09-01 17:26:50 +03:00
committed by GitHub
parent e980575f88
commit 0741c5456d
+1 -1
View File
@@ -95,7 +95,7 @@ You can set any duration as the shelf life of cached return values of a function
def bar(arg1, arg2):
return {'arg1': arg1, 'arg2': arg2}
Now when a cached value matching the given arguments is found the time of its calculation is checked; if more than ``stale_after`` time has since passed the function will be run again for the same arguments and the new value will be cached and returned.
Now when a cached value matching the given arguments is found the time of its calculation is checked; if more than ``stale_after`` time has since passed, the function will be run again for the same arguments and the new value will be cached and returned.
This is usefull for lengthy calculation that depend on a dynamic data source.