Documentation ¶
Index ¶
- type Ring
- func (r *Ring) Close() error
- func (r *Ring) Decr(key string, expiry int) (int64, error)
- func (r *Ring) DecrBy(key, num string, expiry int) (int64, error)
- func (r *Ring) Delete(key string) error
- func (r *Ring) Exists(key string) (bool, error)
- func (r *Ring) Expire(key string, expiry int) (bool, error)
- func (r *Ring) Get(key string) (data []byte, err error)
- func (r *Ring) Incr(key string, expiry int) (int64, error)
- func (r *Ring) IncrBy(key, num string, expiry int) (int64, error)
- func (r *Ring) Set(key string, value interface{}, expiry int) (err error)
- type RingNode
- type RingOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
func NewRing ¶
func NewRing(opt *RingOptions) (r *Ring)
Click to show internal directories.
Click to hide internal directories.