goredis

package module
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 6 Imported by: 0

README

GoZix GoRedis

Dependencies

Configuration example

{
  "redis": {
    "host": "127.0.0.1",
    "port": "6379",
    "db": 0,
    "max_retiries": 2,   
    "read_timeout": "2s",
    "write_timeout": "2s",
    "idle_timeout": "1m"
  }
}

Documentation

Overview

Package goredis provides implementation of go-redis client.

Index

Constants

View Source
const BundleName = "redis"

BundleName is default definition name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct{}

Bundle implements the glue.Bundle interface.

func NewBundle

func NewBundle() *Bundle

NewBundle create bundle instance.

func (*Bundle) Build

func (b *Bundle) Build(builder *di.Builder) error

Build implements the glue.Bundle interface.

func (*Bundle) DependsOn

func (b *Bundle) DependsOn() []string

DependsOn implements the glue.DependsOn interface.

func (*Bundle) Name

func (b *Bundle) Name() string

Name implements the glue.Bundle interface.

type Pool

type Pool = redis.Client

Pool is type alias of redis.Client

Jump to

Keyboard shortcuts

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