Documentation ¶
Overview ¶
Package cache allows storing temporary cache data which is preserved across multiple CLI invocations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(key string) (string, float32) Set(key string, value string, expiresIn float32) }
Cache interface for storing temporary data. It is used to persist bearer tokens and other temporary auth tokens in order to preserve them across multiple CLI invocations.
type FileCache ¶
type FileCache struct{}
The FileCache stores data on disk in order to preserve them across multiple CLI invocations.
func NewFileCache ¶ added in v1.0.57
func NewFileCache() *FileCache
Click to show internal directories.
Click to hide internal directories.