database

package
v0.0.0-...-cb4bbaf Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	Addr     string
	Passwprd string
	DB       int
	// contains filtered or unexported fields
}

func NewRedis

func NewRedis(addr, password string, db int) *Redis

func (*Redis) Connection

func (r *Redis) Connection() (err error)

func (*Redis) Disconnect

func (r *Redis) Disconnect()

func (*Redis) Get

func (r *Redis) Get(key string) (result string, err error)

func (*Redis) GetCacheLanguages

func (r *Redis) GetCacheLanguages() []string

func (*Redis) Save

func (r *Redis) Save(key string, obj string, expiration time.Duration) (err error)

func (*Redis) SaveLanguages

func (r *Redis) SaveLanguages(languages []string)

Jump to

Keyboard shortcuts

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