Package io.rtr.alchemy.caching
Interface CacheStrategy
- All Known Implementing Classes:
BasicCacheStrategy,PeriodicStaleCheckingCacheStrategy
public interface CacheStrategy
Defines the behavior for when to invalidate items in the cache
-
Method Summary
Modifier and TypeMethodDescriptionvoidonCacheRead(CachingContext context) Fires before all experiments are read from the cachevoidonCacheRead(String experimentName, CachingContext context) Fires before an experiment is read from the cachevoidonDelete(String experimentName, CachingContext context) Fires when an experiment is deleted from the storevoidonLoad(Experiment experiment, CachingContext context) Fires when an experiment is loaded from the storevoidonSave(Experiment experiment, CachingContext context) Fires when an experiment is saved to the store
-
Method Details
-
onLoad
Fires when an experiment is loaded from the store -
onSave
Fires when an experiment is saved to the store -
onDelete
Fires when an experiment is deleted from the store -
onCacheRead
Fires before an experiment is read from the cache -
onCacheRead
Fires before all experiments are read from the cache
-