Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCacheType = errors.New("invalid cache type") ErrCacheProcessing = errors.New("cache processing error") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { // Load returns cached string by using the key, and whether or not cache is expired. If a cache is empty, // returned a string is nil and expired is true. Load(ctx context.Context, key string, decrypt bool) (*string, bool, error) // Save saves value to cache. If encrypt is true, value is encrypted before saving. Save(ctx context.Context, key string, value *string, encrypt bool) error }
Click to show internal directories.
Click to hide internal directories.