Documentation
¶
Overview ¶
Package memorysession provides an in-memory session store. Can optionally be used with a fallback backend, in which case it acts as a sort of cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var _, Log = xlog.New("web.session.memorysession")
Functions ¶
Types ¶
type Config ¶
type Config struct { // After what period of inactivity should sessions be removed from the store? // Sessions will still be left in any fallback store which is configured. // // Defaults to 4 hours. Expiry time.Duration // If set, acts as a writeback cache. If a session is not found in memory, it // is looked for in the fallback store. All session writes are persisted to // the fallback store. FallbackStore storage.Store }
Memory-based session store configuration.
Click to show internal directories.
Click to hide internal directories.