| Package | Description |
|---|---|
| com.SimplCache.Models |
| Modifier and Type | Method and Description |
|---|---|
SimplCache.SimplCacheBuilder<T> |
SimplCache.SimplCacheBuilder.setCacheMemoryProperties(SimplCache.MEMORY_TYPES memory,
long cacheSize)
This method is used set the cache memory type.
|
SimplCache.SimplCacheBuilder<T> |
SimplCache.SimplCacheBuilder.setCacheType(SimplCache.CACHE_TYPES cacheType)
This methode is used to set the type of cache.
|
SimplCache.SimplCacheBuilder<T> |
SimplCache.SimplCacheBuilder.setEvictionPolicy(SimplCache.EVICTION_TYPES evictionPolicy)
This method is used to set the eviction policy
There are two types of policy:
LRU_EVICTION: Least recently used cache object is evicted
TIME_EVICTION: The cache object is evicted after given time limit.
|
SimplCache.SimplCacheBuilder<T> |
SimplCache.SimplCacheBuilder.setTimeEvictionInterval(long duration,
TimeUnit timeUnit)
This method is used to set time interval after which cache object is evicted from the cache.
|
SimplCache.SimplCacheBuilder<T> |
SimplCache.SimplCacheBuilder.setWriteBackInterval(long duration,
TimeUnit timeUnit)
This method is used to set the interval at which automated write back occurs.
|
Copyright © 2020. All rights reserved.