caches

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 2 Imported by: 0

README

caches

caches 下所有子目录的 github action 只能跑在 linux 系统,作为独立的包,不影响其它包在所有系统上运行。

Documentation

Overview

Package caches 内置的缓存接口实现

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

Marshal 序列化对象

这是 [cache.Cache] 存储对象时的转换方法,采用 GOB 编码, 如需要自定义,可实现 gob.GobEncodergob.GobDecoder

大部分时候 [cache.Driver] 的实现者直接调用此方法即可。

func Unmarshal

func Unmarshal(bs []byte, v any) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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