beego: github.com/astaxie/beego/session/ssdb Index | Files

package ssdb

import "github.com/astaxie/beego/session/ssdb"

Index

Package Files

sess_ssdb.go

type Provider Uses

type Provider struct {
    // contains filtered or unexported fields
}

Provider holds ssdb client and configs

func (*Provider) SessionAll Uses

func (p *Provider) SessionAll() int

SessionAll not implemented

func (*Provider) SessionDestroy Uses

func (p *Provider) SessionDestroy(sid string) error

SessionDestroy destroy the sid

func (*Provider) SessionExist Uses

func (p *Provider) SessionExist(sid string) bool

SessionExist judged whether sid is exist in session

func (*Provider) SessionGC Uses

func (p *Provider) SessionGC()

SessionGC not implemented

func (*Provider) SessionInit Uses

func (p *Provider) SessionInit(maxLifetime int64, savePath string) error

SessionInit init the ssdb with the config

func (*Provider) SessionRead Uses

func (p *Provider) SessionRead(sid string) (session.Store, error)

SessionRead return a ssdb client session Store

func (*Provider) SessionRegenerate Uses

func (p *Provider) SessionRegenerate(oldsid, sid string) (session.Store, error)

SessionRegenerate regenerate session with new sid and delete oldsid

type SessionStore Uses

type SessionStore struct {
    // contains filtered or unexported fields
}

SessionStore holds the session information which stored in ssdb

func (*SessionStore) Delete Uses

func (s *SessionStore) Delete(key interface{}) error

Delete the key in session store

func (*SessionStore) Flush Uses

func (s *SessionStore) Flush() error

Flush delete all keys and values

func (*SessionStore) Get Uses

func (s *SessionStore) Get(key interface{}) interface{}

Get return the value by the key

func (*SessionStore) SessionID Uses

func (s *SessionStore) SessionID() string

SessionID return the sessionID

func (*SessionStore) SessionRelease Uses

func (s *SessionStore) SessionRelease(w http.ResponseWriter)

SessionRelease Store the keyvalues into ssdb

func (*SessionStore) Set Uses

func (s *SessionStore) Set(key, value interface{}) error

Set the key and value

Package ssdb imports 7 packages (graph). Updated 2017-05-13. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).