Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PRECISION = []int{1, 5, 60, 300, 3600, 18000, 86400}
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
Client *redis.Client
}
func NewCounter ¶
func NewCounter() *Counter
func (*Counter) CounterIncr ¶
CounterIncr: 增加hit
func (*Counter) GetCountListKey ¶
func (*Counter) GetCounterKey ¶
Click to show internal directories.
Click to hide internal directories.