cache

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrossRun

func CrossRun()

总访问量,缓存访问量,数据库访问量,缓存空间占用量

func Execute

func Execute()

func NewCommand

func NewCommand() *cobra.Command

Types

type CacheDb

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

func NewCacheDb

func NewCacheDb(data map[string]string) *CacheDb

func (*CacheDb) GetCount

func (db *CacheDb) GetCount() int

func (*CacheDb) Insert

func (db *CacheDb) Insert(key string, value string)

func (*CacheDb) Select

func (db *CacheDb) Select(key string) string

func (*CacheDb) SetCount

func (db *CacheDb) SetCount(count int)

Jump to

Keyboard shortcuts

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