Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Addr string Expiration time.Duration DB int Password string // contains filtered or unexported fields }
Options ...
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
RedisStore backend for cookie-session
func (*RedisStore) Load ¶
func (c *RedisStore) Load(name string, session sessions.Sessions, cookie *cookie.Cookies) (err error)
Load existed session from Request's cookies
func (*RedisStore) Save ¶
func (c *RedisStore) Save(session sessions.Sessions) (err error)
Save session to Response's cookie
Click to show internal directories.
Click to hide internal directories.