Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
NewStore creates a new Store instance. The expiration parameter specifies the duration for which the cached values
func (*Store) Generate ¶
Generate creates a new session with the given ID and returns it. It also stores the session in the memory cache with an expiration time.
func (*Store) Get ¶
Get retrieves a session from the store by its ID. It returns the session if found, otherwise it returns an error.
Click to show internal directories.
Click to hide internal directories.