cache

package
v1.2.21-0...-c0ededa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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) map[string]interface{}

Get returns cached data entry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL