cache

package
v0.0.0-...-fe10e82 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageCache

type ImageCache struct {
	Client *memcache.Client
}

ImageCache .

func NewCache

func NewCache(active bool, address string) (*ImageCache, error)

NewCache .

func (ImageCache) AddBytes

func (c ImageCache) AddBytes(key string, buf []byte) error

AddBytes .

func (ImageCache) AddMat

func (c ImageCache) AddMat(key string, mat *gocv.Mat) error

AddMat .

func (ImageCache) GenerateHash

func (c ImageCache) GenerateHash(ns uuid.UUID, keys ...string) string

GenerateHash .

func (ImageCache) GetBytes

func (c ImageCache) GetBytes(key string) ([]byte, error)

GetBytes .

func (ImageCache) GetMat

func (c ImageCache) GetMat(key string) (*gocv.Mat, error)

GetMat .

Jump to

Keyboard shortcuts

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