redis

package
v0.0.0-...-60e87b8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package redis provides a Redis Image Cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Pool   *redigo.Pool
	Expire time.Duration // optional
}

Cache is a Redis Image Cache.

It uses Gary Burd's Redis client https://github.com/garyburd/redigo .

func (*Cache) Get

func (cache *Cache) Get(key string, params imageserver.Params) (*imageserver.Image, error)

Get implements Cache.

func (*Cache) Set

func (cache *Cache) Set(key string, im *imageserver.Image, params imageserver.Params) error

Set implements Cache.

Jump to

Keyboard shortcuts

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