Class CacheOptions
java.lang.Object
io.github.emcw.caching.CacheOptions
- 
Constructor Summary
ConstructorsConstructorDescriptionCacheOptions(CacheStrategy strategy, long duration, @NotNull TimeUnit unit) Creates a new options instance that will be passed when building a cache.
IfstrategyisCacheStrategy.TIME_BASED, the cache will automatically update after the duration, otherwise it must beCacheStrategy.LAZYand will be emptied until - 
Method Summary
 
- 
Constructor Details
- 
CacheOptions
Creates a new options instance that will be passed when building a cache.
IfstrategyisCacheStrategy.TIME_BASED, the cache will automatically update after the duration, otherwise it must beCacheStrategy.LAZYand will be emptied until- Parameters:
 strategy- The strategy for the cache to use when updating.duration- Amount of time until strategy-dependenant logic happens.unit- Time unit to base duration on. Min, sec, ms etc.
 
 -