cacheInfo

package module
v0.0.0-...-25cb3e1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheInfo

type CacheInfo struct {
	Id         string      `json:"id"`         //编号,作为关键字存在
	Data       interface{} `json:"data"`       //缓存的数据对象
	CreateDate time.Time   `json:"createDate"` //创建时间
	LastDate   time.Time   `json:"lastDate"`   //最后访问时间
}

用于定义缓存信息的类

func New

func New(Id string, Data interface{}) *CacheInfo

*

  • 新建缓存信息结构体
  • @param Id 编号,作为关键字存在
  • @param Data 缓存的数据对象
  • @return 返回新创建的结构体

Jump to

Keyboard shortcuts

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