Refresh timeout option
Closed this issue · 1 comments
gajuro commented
Hello,
First, thank you for a valuable library here.
I would need a strategy option that will refresh the cache after a given timeout. Basically, the function call will wait for the execution only the first time, after that it will return the cached value.
defmemo slow_function, refresh_in: 10 * 1000 do
end
I doubt that I will be able to write a strategy myself, but still, can you give me some hints for this?
Thanks again.
melpon commented
Use :expires_in
.