Documentation ¶
Index ¶
- func CacheHandler[R any](prefix string, key string, second int, handler func() R) R
- func Init()
- type Client
- func (p *Client) Delete(key string) (bool, error)
- func (p *Client) Exists(key string) bool
- func (p *Client) Get(key string) ([]byte, error)
- func (p *Client) GetObject(key string, obj any) error
- func (p *Client) GetString(key string) (string, error)
- func (p *Client) Set(key string, value interface{}, second int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheHandler ¶ added in v1.3.1
CacheHandler 缓存处理函数
Types ¶
Click to show internal directories.
Click to hide internal directories.