Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("no entry exists under this name")
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { Set(ctx context.Context, key string, value string, expiration time.Duration) error Get(ctx context.Context, key string) (string, error) }
func NewInMemoryStorage ¶
func NewInMemoryStorage() Storage
func NewRedisStorage ¶
func NewRedisStorage(c *redis.Client) Storage
Click to show internal directories.
Click to hide internal directories.