redis

package
v0.0.0-...-9fc5fbc Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(opt *RingOptions) cache.Adapter

NewAdapter initializes Redis adapter.

Types

type Adapter

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

Adapter is the memory adapter data structure.

func (*Adapter) Exists

func (a *Adapter) Exists(prefix, key string) bool

Exists ...

func (*Adapter) Get

func (a *Adapter) Get(prefix, key string) ([]byte, bool)

Get implements the cache Adapter interface Get method.

func (*Adapter) Release

func (a *Adapter) Release(prefix, key string)

Release implements the cache Adapter interface Release method.

func (*Adapter) ReleaseIfStartsWith

func (a *Adapter) ReleaseIfStartsWith(key string)

ReleaseIfStartsWith ...

func (*Adapter) ReleasePrefix

func (a *Adapter) ReleasePrefix(prefix string)

ReleasePrefix ...

func (*Adapter) Set

func (a *Adapter) Set(prefix, key string, response []byte)

Set implements the cache Adapter interface Set method.

type RingOptions

type RingOptions redis.RingOptions

RingOptions exports go-redis RingOptions type.

Jump to

Keyboard shortcuts

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