Documentation ¶
Index ¶
- func NewRediSessionContainer(expire int, source string) (session.SessionContainer, error)
- type RediSession
- func (this *RediSession) Bool(key string) (bool, bool)
- func (this *RediSession) Dead() bool
- func (this *RediSession) Deadline() int
- func (this *RediSession) Delete(key string)
- func (this *RediSession) Die()
- func (this *RediSession) Float(key string) (float64, bool)
- func (this *RediSession) Int(key string) (int, bool)
- func (this *RediSession) SessionId() string
- func (this *RediSession) SetBool(key string, value bool)
- func (this *RediSession) SetDeadline(second int)
- func (this *RediSession) SetFloat(key string, value float64)
- func (this *RediSession) SetInt(key string, value int)
- func (this *RediSession) SetString(key string, value string)
- func (this *RediSession) SetValue(key string, value interface{})
- func (this *RediSession) String(key string) (string, bool)
- func (this *RediSession) Value(key string) (interface{}, bool)
- type RediSessionContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRediSessionContainer ¶
func NewRediSessionContainer(expire int, source string) (session.SessionContainer, error)
Types ¶
type RediSession ¶
type RediSession struct {
// contains filtered or unexported fields
}
func (*RediSession) Dead ¶
func (this *RediSession) Dead() bool
func (*RediSession) Deadline ¶
func (this *RediSession) Deadline() int
func (*RediSession) Delete ¶
func (this *RediSession) Delete(key string)
func (*RediSession) Die ¶
func (this *RediSession) Die()
func (*RediSession) SessionId ¶
func (this *RediSession) SessionId() string
func (*RediSession) SetBool ¶
func (this *RediSession) SetBool(key string, value bool)
func (*RediSession) SetDeadline ¶
func (this *RediSession) SetDeadline(second int)
func (*RediSession) SetFloat ¶
func (this *RediSession) SetFloat(key string, value float64)
func (*RediSession) SetInt ¶
func (this *RediSession) SetInt(key string, value int)
func (*RediSession) SetString ¶
func (this *RediSession) SetString(key string, value string)
func (*RediSession) SetValue ¶
func (this *RediSession) SetValue(key string, value interface{})
func (*RediSession) Value ¶
func (this *RediSession) Value(key string) (interface{}, bool)
type RediSessionContainer ¶
type RediSessionContainer struct {
// contains filtered or unexported fields
}
func (*RediSessionContainer) Close ¶
func (this *RediSessionContainer) Close()
func (*RediSessionContainer) Closed ¶
func (this *RediSessionContainer) Closed() bool
func (*RediSessionContainer) CreateSession ¶
func (this *RediSessionContainer) CreateSession() (session.Session, bool)
Click to show internal directories.
Click to hide internal directories.