CacheSessionRepo

org.beangle.security.session.cache.CacheSessionRepo
abstract class CacheSessionRepo(val cacheManager: CacheManager) extends SessionRepo with Initializing with Logging

Attributes

Graph
Supertypes
trait Logging
trait Initializing
trait SessionRepo
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def flush(session: Session): Boolean

向后端更新该会话的访问时间

向后端更新该会话的访问时间

Attributes

session

会话

Returns:

true如果是否依然存在该会话

protected def getInternal(sessionId: String): Option[Session]

Concrete methods

override def access(sessionId: String, accessAt: Instant): Option[Session]

Attributes

Definition Classes
SessionRepo
final def evict(sessionId: String): Unit
override def get(sessionId: String, refresh: Boolean): Option[Session]

Attributes

Definition Classes
SessionRepo
override def init(): Unit

do initialization.

do initialization.

Attributes

Definition Classes
Initializing
protected def put(session: Session): Unit

Inherited methods

def expire(sessionId: String): Unit

Attributes

Inherited from:
SessionRepo
def findByPrincipal(principal: String): Seq[Session]

Attributes

Inherited from:
SessionRepo

Concrete fields

val cacheManager: CacheManager
var flushInterval: Int

flush 间隔,以秒计,默认3分钟

flush 间隔,以秒计,默认3分钟

Attributes

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging