Documentation ¶
Index ¶
- type Cache
- type Memory
- func (m *Memory) Get(key string) (string, error)
- func (m *Memory) HGet(key string, field string) (string, error)
- func (m *Memory) HGetAll(key string) (map[string]string, error)
- func (m *Memory) HSet(key string, values ...interface{}) error
- func (m *Memory) Set(key, value string, expiration time.Duration) error
- type Redis
- func (r *Redis) Get(key string) (string, error)
- func (r *Redis) HGet(key string, field string) (string, error)
- func (r *Redis) HGetAll(key string) (map[string]string, error)
- func (r *Redis) HSet(key string, values ...interface{}) error
- func (r *Redis) Set(key, value string, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Set(key string, value string, expiration time.Duration) (err error) Get(key string) (value string, err error) HSet(key string, values ...interface{}) (err error) HGet(key string, field string) (value string, err error) HGetAll(key string) (values map[string]string, err error) }
Click to show internal directories.
Click to hide internal directories.