Documentation ¶
Index ¶
- type Sessions
- func (s *Sessions) ErrorLog(format string, v ...interface{})
- func (s *Sessions) Get(key string) (interface{}, error)
- func (s *Sessions) KeyExists(key string) bool
- func (s *Sessions) RegisterSessionType(val interface{})
- func (s *Sessions) RemoveKeys(keys ...string)
- func (s *Sessions) Set(key string, val interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sessions ¶
type Sessions struct { Namespace string // contains filtered or unexported fields }
Sessions implements sessions interface for server.Connects
func New ¶
New returns new Redis session controller, it takes created redis connect Don't forget register your session type RegisterSessionType()
func (*Sessions) KeyExists ¶
KeyExists returns true if key exists in the Storage returns false when request end with error
func (*Sessions) RegisterSessionType ¶
func (s *Sessions) RegisterSessionType(val interface{})
RegisterSessionType records a type of the session data
func (*Sessions) RemoveKeys ¶
RemoveKeys removes any keys
Click to show internal directories.
Click to hide internal directories.