| 程序包 | 说明 |
|---|---|
| cn.crane4j.core.cache |
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
AbstractCacheManager.AbstractCacheObject<K>
Abstract cache object.
|
protected static class |
AbstractMapCacheManager.MapCacheObject<K>
An implementation of the
CacheObject that stores data in the Map. |
protected static class |
GuavaCacheManager.GuavaCacheObject<K>
A
CacheObject implementation that stores data in the Cache. |
| 限定符和类型 | 方法和说明 |
|---|---|
<K> @NonNull CacheObject<K> |
AbstractCacheManager.createCache(String name,
Long expireTime,
TimeUnit timeUnit)
Create cache instance, if cache instance already created,
remove the old cache instance and create a new cache instance.
|
<K> @NonNull CacheObject<K> |
CacheManager.createCache(String name,
Long expireTime,
TimeUnit timeUnit)
Create cache instance, if cache instance already created,
remove the old cache instance and create a new cache instance.
|
<K> @Nullable CacheObject<K> |
AbstractCacheManager.getCache(String name)
Get cache instance by name,
if cache instance still not created by
AbstractCacheManager.createCache(java.lang.String, java.lang.Long, java.util.concurrent.TimeUnit), return null. |
<K> @Nullable CacheObject<K> |
CacheManager.getCache(String name)
Get cache instance by name,
if cache instance still not created by
CacheManager.createCache(java.lang.String, java.lang.Long, java.util.concurrent.TimeUnit), return null. |
CacheObject<K> |
CacheableContainer.getCurrentCache()
Get the current cache object, if the current cache object is null or invalid,
recreate it by cache manager which is specified in cache definition.
|
Copyright © 2024. All rights reserved.