redis

package
v0.0.0-...-f65b48a Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Pool *_redis.Pool `inject:""`
}

Store cache by redis

func (*Store) Flush

func (p *Store) Flush() error

Flush clear cache items

func (*Store) Get

func (p *Store) Get(key string) ([]byte, error)

Get get bytes

func (*Store) Keys

func (p *Store) Keys() ([]string, error)

Keys list cache items

func (*Store) Set

func (p *Store) Set(key string, val []byte, ttl time.Duration) error

Set set bytes

func (*Store) Status

func (p *Store) Status() (string, error)

Status status

Jump to

Keyboard shortcuts

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