Documentation ¶
Overview ¶
Package redissession provides a Redis-based session store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedVersion = fmt.Errorf("unsupported serialization version")
View Source
var _, Log = xlog.New("web.session.redissession")
Functions ¶
Types ¶
type Config ¶
type Config struct { // After what period of inactivity should sessions expire? // // Default: 4 hours. Expiry time.Duration // Required. Function returning a Redis connection (e.g. from a pool). Will // be closed when no longer needed. GetConn func() (redis.Conn, error) // Prefix to use for keys stored in Redis. It is recommended that this end in // "/". Prefix string }
Redis-backed session store configuration.
Click to show internal directories.
Click to hide internal directories.