redis

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() db.Database

New returns a new grpc server

Types

type DB

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

DB implements redis database

func (*DB) Address

func (r *DB) Address() string

Address is the bind address

func (*DB) Connect

func (r *DB) Connect(handlers ...db.Handler) error

Connect connects to the db

func (*DB) Disconnect

func (r *DB) Disconnect(handlers ...db.Handler) error

Disconnect disconnects the db connection

func (*DB) Handle

func (r *DB) Handle() interface{}

Handle returns the raw connection handle to the db

func (*DB) Init

func (r *DB) Init(opts db.Options) error

Init initializes the db connection

func (*DB) Options

func (r *DB) Options() db.Options

Options Returns the db options

func (*DB) String

func (r *DB) String() string

String returns the description of the database

Jump to

Keyboard shortcuts

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