Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Clear()
- func (c *Cache) Del(key string) (err error)
- func (c *Cache) Get(key string, value interface{}) (err error)
- func (c *Cache) HDel(key, prop string) error
- func (c *Cache) HGet(key, prop string, ptr interface{}) error
- func (c *Cache) HGetAll(key string) (map[string]string, error)
- func (c *Cache) HInc(key, prop string) int
- func (c *Cache) HSet(key, prop string, val interface{}) error
- func (c *Cache) Has(key string) (ok bool)
- func (c *Cache) Inc(key string) int
- func (c *Cache) Keys(pattern string) (available []string)
- func (c *Cache) Publish(channel string, message interface{}) *redis.IntCmd
- func (c *Cache) Set(key string, value interface{}, ttl time.Duration) (err error)
- func (c *Cache) Subscribe(key string, redisMessageHandler func(msg *redis.Message), channels ...string) *redis.PubSub
- func (c *Cache) Type() string
- func (c *Cache) Unsubscribe(key string)
- type Config
- type SubscriptionInfo
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
}
func (*Cache) Unsubscribe ¶
type SubscriptionInfo ¶
type SubscriptionInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.