cache_value

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 1 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 使用默认序列化器序列化缓存值 为了向后兼容保留此函数

func GetDefaultSerializer added in v1.0.3

func GetDefaultSerializer() serializer.Serializer

GetDefaultSerializer 获取默认序列化器

func SetDefaultSerializer added in v1.0.3

func SetDefaultSerializer(s serializer.Serializer)

SetDefaultSerializer 设置默认序列化器 用于向后兼容,如果不使用WithSerializer选项则使用此默认序列化器

Types

This section is empty.

Jump to

Keyboard shortcuts

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