Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis interface { Connect(config *conf.GlobalConfiguration) error GetDatabase() *redis.Client Get(ctx context.Context, key string, dest interface{}) error Set(ctx context.Context, key string, value interface{}, duration time.Duration) error Del(ctx context.Context, key ...string) error }
Redis interface
var ( // Database var Database Redis = &rd{} )
Click to show internal directories.
Click to hide internal directories.