| 程序包 | 说明 |
|---|---|
| org.beetl.core | |
| org.beetl.core.impl.cache | |
| org.beetl.core.runtime |
| 限定符和类型 | 方法和说明 |
|---|---|
IBeetlCache |
GroupTemplate.getProgramCache() |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CaffeineCache
使用Caffeine
|
class |
DefaultBeetlCache
本地的一个实现,采用ConcurrentHashMap
|
class |
LRUBeetlCache
缓存保留最常使用的模板
|
class |
NoCache
无缓存,适用于过多的模板,比如在线体验
|
| 限定符和类型 | 方法和说明 |
|---|---|
static @NotNull IBeetlCache |
DefaultBeetlCacheFactory.defaultCache()
默认的缓存实现
|
static @NotNull IBeetlCache |
DefaultBeetlCacheFactory.loadCache(String className)
默认的缓存实现
|
| 限定符和类型 | 方法和说明 |
|---|---|
static IBeetlCache |
BeetlRuntime.getCache()
获取缓存实例
|
static IBeetlCache |
BeetlRuntime.getCache(String className)
获取缓存实例
|
Copyright © 2022. All rights reserved.