cache_value

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, obj any) error

Decode 带反序列化

func Encode

func Encode(value interface{}) ([]byte, error)

Encode 序列化缓存值

Types

type CacheValue

type CacheValue struct {
	Type  string      `msgpack:"t"`
	Value interface{} `msgpack:"v"`
}

CacheValue 封装缓存值,保留类型信息

Jump to

Keyboard shortcuts

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