Package org.dspace.services.model
Class CacheConfig
- java.lang.Object
-
- org.dspace.services.model.CacheConfig
-
public class CacheConfig extends Object
Encodes the configuration for a cache into an object.- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CacheConfig.CacheScope
Controls the scope of each created cache.
-
Constructor Summary
Constructors Constructor Description CacheConfig(CacheConfig.CacheScope cacheScope)
Configure the cache to use the given scope.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheConfig.CacheScope
getCacheScope()
-
-
-
Constructor Detail
-
CacheConfig
public CacheConfig(CacheConfig.CacheScope cacheScope)
Configure the cache to use the given scope.- Parameters:
cacheScope
- defines the lifecycle of the cache
-
-
Method Detail
-
getCacheScope
public final CacheConfig.CacheScope getCacheScope()
- Returns:
- the scope of the associated cache
-
-