Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string) (string, error)
	Set(key, value string, expires ...int) error
	Del(key string) error
	HGet(key, member string) (string, error)
	HSet(key, member, value string) error
}

func New

func New(kind Kind, appId string, redisProvider types.RedisProvider) Cache

type Kind

type Kind string // 微信业务类型
const (
	KindMiniProgram         Kind = "wx:miniprogram"   // 微信小程序
	KindOfficeAccount       Kind = "wx:officeaccount" // 微信公众号
	KindOpenServiceProvider Kind = "wxopen:provider"  // 微信开放平台:微信第三方平台
	KindOpenWeb             Kind = "wxopen:web"       // 微信开放平台:网站应用
)

wxopen: 微信开放平台(wx Open Platform)

Jump to

Keyboard shortcuts

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