public class CacheFactory extends Object
| Constructor and Description |
|---|
CacheFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <Key,Value> |
createCache(int maxSize)
Create a cache which has space for up to a certain number of objects.
|
static <Obj> CacheSet<Obj> |
createCacheSet(int size)
Create set-cache, rather than a map-cache.
|
static <Key,Value> |
createNullCache()
Create a null cache
|
static <Key,Value> |
createOneSlotCache()
One slot cache
|
static <Key,Value> |
createSimpleCache(int size)
Create a lightweight cache (e.g.
|
static <Obj> CacheSet<Obj> |
createSync(CacheSet<Obj> cache)
Add a synchronization wrapper to an existing set-cache
|
public static <Key,Value> Cache<Key,Value> createCache(int maxSize)
public static <Key,Value> Cache<Key,Value> createNullCache()
public static <Key,Value> Cache<Key,Value> createSimpleCache(int size)
public static <Key,Value> Cache<Key,Value> createOneSlotCache()
public static <Obj> CacheSet<Obj> createCacheSet(int size)
PoolLicenced under the Apache License, Version 2.0