Interface SyncCaches


public interface SyncCaches
Since:
14.0
  • Method Details

    • get

      <K, V> SyncCache<K,V> get(String name)
      Obtains an existing cache
      Type Parameters:
      K - the type of the key
      V - the type of the value
      Parameters:
      name - the name of the cache
      Returns:
    • create

      <K, V> SyncCache<K,V> create(String name, CacheConfiguration cacheConfiguration)
      Type Parameters:
      K - the type of the key
      V - the type of the value
      Parameters:
      name - the name of the cache
      cacheConfiguration -
      Returns:
    • create

      <K, V> SyncCache<K,V> create(String name, String template)
      Creates a cache using the supplied template name
      Type Parameters:
      K - the type of the key
      V - the type of the value
      Parameters:
      name - the name of the cache
      template - the name of an existing template
      Returns:
    • remove

      void remove(String name)
      Removes a cache
      Parameters:
      name - the name of the cache to be removed
    • names

      Iterable<String> names()
      Retrieves the names of all available caches
      Returns:
    • createTemplate

      void createTemplate(String name, CacheConfiguration cacheConfiguration)
      Creates a cache template
      Parameters:
      name - the name of the template
      cacheConfiguration - the configuration of the template
    • removeTemplate

      void removeTemplate(String name)
      Removes a cache template
      Parameters:
      name - the name of the template to be removed
    • templateNames

      Iterable<String> templateNames()
      Returns the names of all available templates
      Returns: