cacheCount

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

* * @Author: TheLife * @Date: 2020-2-26 3:01 上午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count struct {
	// contains filtered or unexported fields
}

func New

func New(key string, c *redis.Client, expireTime time.Duration) *Count

func (*Count) Add

func (p *Count) Add() (int64, error)

add

func (*Count) Destroy

func (p *Count) Destroy()

del

func (*Count) Get

func (p *Count) Get() (int, error)

get

func (*Count) GetExpireTime

func (p *Count) GetExpireTime() time.Duration

get

func (*Count) Set

func (p *Count) Set(s int) error

set

Jump to

Keyboard shortcuts

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