Interface CacheStrategy

All Known Implementing Classes:
BasicCacheStrategy, PeriodicStaleCheckingCacheStrategy

public interface CacheStrategy
Defines the behavior for when to invalidate items in the cache
  • Method Details

    • onLoad

      void onLoad(Experiment experiment, CachingContext context)
      Fires when an experiment is loaded from the store
    • onSave

      void onSave(Experiment experiment, CachingContext context)
      Fires when an experiment is saved to the store
    • onDelete

      void onDelete(String experimentName, CachingContext context)
      Fires when an experiment is deleted from the store
    • onCacheRead

      void onCacheRead(String experimentName, CachingContext context)
      Fires before an experiment is read from the cache
    • onCacheRead

      void onCacheRead(CachingContext context)
      Fires before all experiments are read from the cache