Class BaseCache<V>

java.lang.Object
io.github.emcw.caching.BaseCache<V>
Direct Known Subclasses:
Nations, Players, Residents, Towns

public class BaseCache<V> extends Object
  • Field Details

    • cache

      protected com.github.benmanes.caffeine.cache.Cache<String,V> cache
    • options

      protected final CacheOptions options
    • updater

      protected Runnable updater
  • Constructor Details

    • BaseCache

      public BaseCache(CacheOptions cacheOptions)
      Abstract class acting as a parent to other cache classes and holds a reference to a Caffeine cache.
      It provides the fundamental methods (get, single & all) that children automatically inherit.
      Parameters:
      cacheOptions - The options that this cache will be setup with.
      See Also:
  • Method Details