Cache
refresh vs expire
Refresh and expire can exist at the same time. Entries queried with longer life than expire limit would trigger
load()
, and entries queried with longer life than refresh limit would triggerreload()
accordingly.When entry is expired,
get()
would triggerload()
and block untilload()
is complete.Entry runs
reload()
when its life is longer than refresh limit and gets invoked ofcall()
.Event entry gets
load()
orreload()
, the time they get into cache would not be updated.
Last updated