Versions in this module Expand all Collapse all v3 v3.1.1 Dec 30, 2020 Changes in this version + var ErrNoSuchKey = errors.New("no such key") + var NeverExpire = time.Duration(0) + type Client struct + func (r *Client) Del(keys ...string) error + func (r *Client) Exists(keys ...string) (bool, error) + func (r *Client) Expire(key string, duration time.Duration) error + func (r *Client) Get(key string) (string, error) + func (r *Client) Keys(pattern string) ([]string, error) + func (r *Client) Set(key string, value string, duration time.Duration) error + type Interface interface + Del func(keys ...string) error + Exists func(keys ...string) (bool, error) + Expire func(key string, duration time.Duration) error + Get func(key string) (string, error) + Keys func(pattern string) ([]string, error) + Set func(key string, value string, duration time.Duration) error + func NewRedisClient(option *Options, stopCh <-chan struct{}) (Interface, error) + func NewSimpleCache() Interface + type Options struct + DB int + Host string + Password string + Port int + func NewRedisOptions() *Options + func (r *Options) AddFlags(fs *pflag.FlagSet, s *Options) + func (r *Options) Validate() []error Other modules containing this package github.com/fearlesschenc/kubesphere