Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(ctx context.Context, key string, value interface{}) error Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error Delete(ctx context.Context, key string) error }
func NewNullCache ¶
func NewNullCache() Cache
func NewRedisCache ¶
NewRedisCache creates and returns a new redis cache.
Click to show internal directories.
Click to hide internal directories.