Package io.rtr.alchemy.caching
Class BasicCacheStrategy
java.lang.Object
io.rtr.alchemy.caching.BasicCacheStrategy
- All Implemented Interfaces:
CacheStrategy
- Direct Known Subclasses:
PeriodicStaleCheckingCacheStrategy
Implements a basic cache strategy that will always update the cache any time an experiment is
loaded, saved, or deleted
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
BasicCacheStrategy
public BasicCacheStrategy()
-
-
Method Details
-
onLoad
Description copied from interface:CacheStrategyFires when an experiment is loaded from the store- Specified by:
onLoadin interfaceCacheStrategy
-
onSave
Description copied from interface:CacheStrategyFires when an experiment is saved to the store- Specified by:
onSavein interfaceCacheStrategy
-
onDelete
Description copied from interface:CacheStrategyFires when an experiment is deleted from the store- Specified by:
onDeletein interfaceCacheStrategy
-
onCacheRead
Description copied from interface:CacheStrategyFires before an experiment is read from the cache- Specified by:
onCacheReadin interfaceCacheStrategy
-
onCacheRead
Description copied from interface:CacheStrategyFires before all experiments are read from the cache- Specified by:
onCacheReadin interfaceCacheStrategy
-