Package | Description |
---|---|
net.sf.jkniv.cache |
Modifier and Type | Class and Description |
---|---|
class |
TTLCachePolicy
Cache policy using concepts from Time to live (TTL) to limit the lifetime of data.
|
Modifier and Type | Method and Description |
---|---|
CachePolicy |
CacheManager.add(String policyName,
CachePolicy policy)
Add new policy with specific name
|
CachePolicy |
Cacheable.getPolicy()
policy that maintenance the capacity and expire time of data
|
CachePolicy |
MemoryCache.getPolicy() |
CachePolicy |
NoCache.getPolicy() |
Modifier and Type | Method and Description |
---|---|
CachePolicy |
CacheManager.add(String policyName,
CachePolicy policy)
Add new policy with specific name
|
void |
Cacheable.setPolicy(CachePolicy policy)
Policy to control the cache data
|
void |
MemoryCache.setPolicy(CachePolicy policy) |
void |
NoCache.setPolicy(CachePolicy policy) |
Constructor and Description |
---|
CacheManager(long delay,
long period,
CachePolicy policy)
Create a new cache manager with configurable
initialDelay and period . |
MemoryCache(CachePolicy policy) |
MemoryCache(CachePolicy policy,
String name) |
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.