avalon
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
avalon
avalon-game-battle-engine
/
io.github.lishangbu.avalon.game.battle.engine.spi.store
/
BattleSessionStore
Battle
Session
Store
interface
BattleSessionStore
BattleSession 运行态存储抽象。
设计意图:
让会话网关不再绑定具体存储介质。
为内存、Redis 等不同存储实现提供统一契约。
Inheritors
InMemoryBattleSessionStore
Members
Functions
find
Link copied to clipboard
abstract
fun
find
(
sessionId
:
String
)
:
BattleSession
?
remove
Link copied to clipboard
abstract
fun
remove
(
sessionId
:
String
)
save
Link copied to clipboard
abstract
fun
save
(
sessionId
:
String
,
session
:
BattleSession
)