Documentation ¶
Index ¶
- type Cache
- func (r *Cache) Clear() error
- func (r *Cache) Close()
- func (r *Cache) Delete(key string) error
- func (r *Cache) DeleteMultiple(keys []string) error
- func (r *Cache) Get(key string, defaultV string) string
- func (r *Cache) GetMultiple(keys []string, defaultV string) map[string]string
- func (r *Cache) Has(key string) bool
- func (r *Cache) Set(key, value string, ttl int) error
- func (r *Cache) SetMultiple(args map[string]string, ttl int) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache cache adapter for redis
func (*Cache) DeleteMultiple ¶
DeleteMultiple remove multiple redis value by keys
func (*Cache) GetMultiple ¶
GetMultiple return a []string value from redis multiple get
Click to show internal directories.
Click to hide internal directories.