Package org.nuxeo.ecm.core.cache
Interface CacheService
-
- All Known Implementing Classes:
CacheServiceImpl
public interface CacheService
Nuxeo cache interface- Since:
- 6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Cache
getCache(String name)
Gets the cache with the given name.void
registerCache(String name)
Programmatically registers a cache with the given name, with the the size and the timeout given by the default cache.void
registerCache(String name, int size, int timeout)
Deprecated.since 9.3, seems unused, useregisterCache(String)
instead.
-
-
-
Method Detail
-
getCache
Cache getCache(String name)
Gets the cache with the given name.- Parameters:
name
- the cache name- Returns:
- the cache, or
null
if it does not exist
-
registerCache
@Deprecated void registerCache(String name, int size, int timeout)
Deprecated.since 9.3, seems unused, useregisterCache(String)
instead.Programmatically registers a cache with the given characteristics.- Parameters:
name
- the cache namesize
- the maximum number of elementstimeout
- the entry timeout (in minutes)- Since:
- 8.2
-
registerCache
void registerCache(String name)
Programmatically registers a cache with the given name, with the the size and the timeout given by the default cache.- Parameters:
name
- the cache name- Since:
- 9.3
-
-