redis

package module
v0.0.0-...-6e686d7 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 7 Imported by: 1

README

Usage redis retain plugin

add config section to conf/app.ini

[retain]
; set retain plugin provider to redis
plugin = redis
[retain.plugin.redis]
; redis server
server = 127.0.0.1:6379
; redis db number
db = 3
; redis connect userName
username = 
; redis connect passWord
password = 

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNew

func MustNew(conf face.Conf) face.Retain

func New

func New(conf face.Conf) (face.Retain, error)

Types

type Option

type Option func(*Options) error

func WithPrefix

func WithPrefix(prefix string) Option

func WithRedisAddr

func WithRedisAddr(addr string) Option

func WithRedisDB

func WithRedisDB(db int) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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