Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionCache ¶
type SessionCache struct { Entries map[string]interface{} // contains filtered or unexported fields }
SessionCache contains cached tokens
func NewSessionCache ¶
func NewSessionCache() *SessionCache
NewSessionCache returns SessionCache instance.
func (*SessionCache) Add ¶
func (c *SessionCache) Add(entryID string, data interface{}) error
Add adds data to the cache.
func (*SessionCache) Delete ¶
func (c *SessionCache) Delete(entryID string) error
Delete removes cached data entry.
func (*SessionCache) Get ¶
func (c *SessionCache) Get(entryID string) interface{}
Get returns cached data entry.
Click to show internal directories.
Click to hide internal directories.