Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface {
Get(key string) (int, error)
Increment(key string, delta, min, max int) (bool, error)
IncrementTo(key string, delta, min, max, incr int) (bool, error)
}
func NewEngineByMemory ¶
func NewEngineByMemory() Engine
func NewEngineByRedis ¶
func NewEngineByRedis(opt RedisOption) Engine
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
type RedisOption ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.