redis

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package redis 适配 redis 的实现

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *redis.Client) cache.Driver

New 声明基于 redis 的缓存系统

func NewFromURL

func NewFromURL(url string) (cache.Driver, error)

NewFromURL 声明基于 redis 的缓存系统

url 为符合 Redis URI scheme 的字符串。 cache.Driver.Driver 的返回类型为 redis.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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