Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Nil = errors.New("key does not exist in cache")
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error Get(ctx context.Context, key string) (interface{}, error) Del(ctx context.Context, key string) error }
func NewRedisCache ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.