SakuraBind
Toggle table of contents
2.4.12
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
SakuraBind
SakuraBind
/
top.iseason.bukkit.sakurabind.cache
/
EntityCache
Entity
Cache
public
class
EntityCache
extends
BaseCache
Members
Properties
INSTANCE
Link copied to clipboard
public
final
static
EntityCache
INSTANCE
Functions
add
Entity
Link copied to clipboard
public
final
Unit
addEntity
(
Entity
entity
,
String
value
)
public
final
Unit
addEntity
(
Entity
entity
,
String
owner
,
String
setting
)
before
Manager
Build
Link copied to clipboard
public
Unit
beforeManagerBuild
(
)
持久化缓存管理器初始化前调用。
get
Entity
Info
Link copied to clipboard
public
final
Pair
<
String
,
BaseSetting
>
getEntityInfo
(
Entity
entity
)
init
Link copied to clipboard
public
Unit
init
(
CacheManager
cacheManager
)
初始化
load
Filter
Link copied to clipboard
public
final
CuckooFilter
loadFilter
(
File
file
)
new
Filter
Link copied to clipboard
public
CuckooFilter
newFilter
(
)
on
Closed
Link copied to clipboard
public
Unit
onClosed
(
)
持久化缓存管理器成功关闭后调用。
on
Save
Link copied to clipboard
public
Unit
onSave
(
)
保存
reload
Filter
Link copied to clipboard
public
Unit
reloadFilter
(
)
remove
Entity
Link copied to clipboard
public
final
Unit
removeEntity
(
Entity
entity
)
save
Filter
Link copied to clipboard
public
final
Unit
saveFilter
(
File
file
,
CuckooFilter
filter
)
set
Cache
Link copied to clipboard
public
CacheManagerBuilder
<
PersistentCacheManager
>
setCache
(
CacheManagerBuilder
<
PersistentCacheManager
>
builder
)
设置缓存
string2Filter
Key
Link copied to clipboard
public
final
Long
string2FilterKey
(
String
str
)