cache

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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 intf.RedisProvider) Cache

type Kind

type Kind string // 微信业务类型
const (
	KindWxa    Kind = "wxa"    // 微信小程序
	KindWxoa   Kind = "wxoa"   // 微信公众号
	KindWxopen Kind = "wxopen" // 微信开放平台
	KindWxop   Kind = "wxop"   // 微信第三方平台
)

Jump to

Keyboard shortcuts

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