cache

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 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 (
	KindOAPMiniProgram    Kind = "oap:mp" // 微信小程序
	KindOAPOfficeAccount  Kind = "oap:oa" // 微信公众号
	KindOPServiceProvider Kind = "op:sp"  // 微信开放平台:微信第三方平台
	KindOPWeb             Kind = "op:web" // 微信开放平台:网站应用
)

OAP: Office Account Platform OP: Open Platform

Jump to

Keyboard shortcuts

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