Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
Set(ctx context.Context, key string, value string, opts ...Option) error
Get(ctx context.Context, key string) (string, error)
Delete(ctx context.Context, key string) error
}
func NewMemoryStore ¶
func NewMemoryStore() Store
func NewRedisStore ¶
func NewRedisStore() Store
Click to show internal directories.
Click to hide internal directories.