Class Caches

java.lang.Object
dev.gmitch215.bytebox.cache.Caches

public final class Caches extends Object
The Workers cache storage, the caches global. Needs no binding.
 Cache shared = Caches.defaultCache();
 Cache mine = Caches.open("thumbnails");
Since:
1.0.3
  • Method Details

    • defaultCache

      public static Cache defaultCache()
      Returns the cache every Worker on the zone shares, caches.default.
      Returns:
      the cache every Worker on the zone shares, caches.default
    • open

      public static Cache open(String name)
      Opens a named cache, which is separate from the default one and from the other names.
      Parameters:
      name - the cache name
      Returns:
      the cache