Documentation ¶
Index ¶
- Constants
- type Counter
- type CounterResponse
- type DCounter
- func (dc *DCounter) AsyncDec(key string) (chan CounterResponse, error)
- func (dc *DCounter) AsyncDecWithPayload(key string, payload interface{}) (chan CounterResponse, error)
- func (dc *DCounter) AsyncInc(key string) (chan CounterResponse, error)
- func (dc *DCounter) AsyncIncWithPayload(key string, payload interface{}) (chan CounterResponse, error)
- func (dc *DCounter) Dec(key string) (int64, error)
- func (dc *DCounter) DecWithPayload(key string, payload interface{}) (int64, error)
- func (dc *DCounter) Inc(key string) (int64, error)
- func (dc *DCounter) IncWithPayload(key string, payload interface{}) (int64, error)
- type Options
Constants ¶
View Source
const ( RedisCounterPostfix = "-counter" RedisLockPostfix = "-lock" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterResponse ¶ added in v1.0.3
type DCounter ¶
type DCounter struct {
// contains filtered or unexported fields
}
func (*DCounter) AsyncDec ¶ added in v1.0.3
func (dc *DCounter) AsyncDec(key string) (chan CounterResponse, error)
func (*DCounter) AsyncDecWithPayload ¶ added in v1.0.4
func (dc *DCounter) AsyncDecWithPayload(key string, payload interface{}) (chan CounterResponse, error)
func (*DCounter) AsyncInc ¶ added in v1.0.3
func (dc *DCounter) AsyncInc(key string) (chan CounterResponse, error)
func (*DCounter) AsyncIncWithPayload ¶ added in v1.0.4
func (dc *DCounter) AsyncIncWithPayload(key string, payload interface{}) (chan CounterResponse, error)
func (*DCounter) DecWithPayload ¶ added in v1.0.4
Click to show internal directories.
Click to hide internal directories.