redis

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 5 Imported by: 0

README

Redis单实例

基于Redis单实例的缓存实现(单机),构造方法中(*redis.Options)参数的配置格式如下:

{
    "Addr" : "缓存服务器主机地址:端口号",
    "password" : "开启安全认证后的登录密码,可选"
 }

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opt *redis.Options) *singleRedisProvider

New 返回一个*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