Documentation ¶ Index ¶ type Cache func Init(ctx context.Context, logger logging.Logger, address, port, password string, ...) (Cache, error) func (c Cache) Delete(key string) (err error) func (c Cache) DeleteAll() (err error) func (c Cache) Get(key string) (value string, err error) func (c Cache) Set(key string, value interface{}) (err error) func (cache Cache) Shutdown() (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { Client *redis.Client // contains filtered or unexported fields } func Init ¶ func Init(ctx context.Context, logger logging.Logger, address, port, password string, timeout time.Duration) (Cache, error) func (Cache) Delete ¶ func (c Cache) Delete(key string) (err error) func (Cache) DeleteAll ¶ func (c Cache) DeleteAll() (err error) func (Cache) Get ¶ func (c Cache) Get(key string) (value string, err error) func (Cache) Set ¶ func (c Cache) Set(key string, value interface{}) (err error) func (Cache) Shutdown ¶ func (cache Cache) Shutdown() (err error) Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.