redigo

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: MIT Imports: 6 Imported by: 0

README

GoZix Redigo

Dependencies

Configuration example

{
  "redis": {
    "host": "127.0.0.1",
    "port": "6379",
    "password": "somepassword",
    "max_idle": 3,
    "max_active": 100,
    "idle_timeout": "4m"
  }
}

"password" field is optional and ignored if empty

Documentation

Index

Constants

View Source
const BundleName = "redigo"

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

Key implements the glue.Bundle interface.

type Pool

type Pool = redis.Pool

Pool is type alias of redis.Pool

Jump to

Keyboard shortcuts

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