| Package | Description |
|---|---|
| com.SimplCache.Models |
| Modifier and Type | Method and Description |
|---|---|
SimplCache.EVICTION_TYPES |
SimplCache.getEvictionType()
This method return the type of eviction policy set to the simplcache object
|
static SimplCache.EVICTION_TYPES |
SimplCache.EVICTION_TYPES.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimplCache.EVICTION_TYPES[] |
SimplCache.EVICTION_TYPES.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Copyright © 2020. All rights reserved.