counter

package
v0.0.0-...-872e689 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 5 Imported by: 0

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

func (counter *Counter) CounterIncr(incr int64) error

CounterIncr: 增加hit

func (*Counter) GetCountListKey

func (counter *Counter) GetCountListKey() string

func (*Counter) GetCounterKey

func (counter *Counter) GetCounterKey(slap int) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL