caches

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 4 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(val any) ([]byte, error)

Marshal 序列化对象

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

大部分时候 github.com/issue9/cache.Driver 的实现者直接调用此方法即可。

func Unmarshal

func Unmarshal(bs []byte, val any) (err error)

Types

This section is empty.

Directories

Path Synopsis
Package memcache 适配 memcached 的实现
Package memcache 适配 memcached 的实现
Package memory 基于内存的实现
Package memory 基于内存的实现
Package redis 适配 redis 的实现
Package redis 适配 redis 的实现

Jump to

Keyboard shortcuts

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