Package org.infinispan.api.sync
Interface SyncCaches
public interface SyncCaches
- Since:
- 14.0
-
Method Summary
Modifier and TypeMethodDescription<K,
V> SyncCache <K, V> Creates a cache using the supplied template name<K,
V> SyncCache <K, V> create
(String name, CacheConfiguration cacheConfiguration) void
createTemplate
(String name, CacheConfiguration cacheConfiguration) Creates a cache template<K,
V> SyncCache <K, V> Obtains an existing cachenames()
Retrieves the names of all available cachesvoid
Removes a cachevoid
removeTemplate
(String name) Removes a cache templateReturns the names of all available templates
-
Method Details
-
get
Obtains an existing cache- Type Parameters:
K
- the type of the keyV
- the type of the value- Parameters:
name
- the name of the cache- Returns:
-
create
- Type Parameters:
K
- the type of the keyV
- the type of the value- Parameters:
name
- the name of the cachecacheConfiguration
-- Returns:
-
create
Creates a cache using the supplied template name- Type Parameters:
K
- the type of the keyV
- the type of the value- Parameters:
name
- the name of the cachetemplate
- the name of an existing template- Returns:
-
remove
Removes a cache- Parameters:
name
- the name of the cache to be removed
-
names
Retrieves the names of all available caches- Returns:
-
createTemplate
Creates a cache template- Parameters:
name
- the name of the templatecacheConfiguration
- the configuration of the template
-
removeTemplate
Removes a cache template- Parameters:
name
- the name of the template to be removed
-
templateNames
Returns the names of all available templates- Returns:
-