redis

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package redis implements a registry in redis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(rawURL string, options ...Option) (registry.Interface, error)

New creates a new registry implementation backend by redis.

Types

type Option

type Option func(*config)

An Option modifies the config..

func WithGetNow

func WithGetNow(getNow func() time.Time) Option

WithGetNow sets the time.Now function in the config.

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) Option

WithTLSConfig sets the tls.Config in the config.

func WithTTL

func WithTTL(ttl time.Duration) Option

WithTTL sets the ttl in the config.

Directories

Path Synopsis
Package lua contains lua source code.
Package lua contains lua source code.

Jump to

Keyboard shortcuts

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