Documentation ¶ Index ¶ type Cache type Redis func NewRedis(file string) *Redis func (r *Redis) Del(key string) error func (r *Redis) Get(key string) (string, error) func (r *Redis) Ping() error func (r *Redis) Set(key string, value string, durationInMinutes int) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache interface { Get(key string) (string, error) Set(key string, value string, durationInMinutes int) error Del(key string) error Ping() error } type Redis ¶ type Redis struct { // contains filtered or unexported fields } func NewRedis ¶ func NewRedis(file string) *Redis func (*Redis) Del ¶ func (r *Redis) Del(key string) error func (*Redis) Get ¶ func (r *Redis) Get(key string) (string, error) func (*Redis) Ping ¶ func (r *Redis) Ping() error func (*Redis) Set ¶ func (r *Redis) Set(key string, value string, durationInMinutes int) error Source Files ¶ View all Source files cache.go redis.go Click to show internal directories. Click to hide internal directories.