cache

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	S3BucketName       string
	AzureContainerName string
	S3Client           *s3.S3
	AzureClient        storage.BlobStorageClient
}

func NewCache

func NewCache(s3Bucket, azureContainer string) (*Cache, error)

func (*Cache) AzureGet

func (c *Cache) AzureGet(key string) ([]byte, error)

func (*Cache) AzureSet

func (c *Cache) AzureSet(key string, value []byte) error

func (*Cache) Delete

func (c *Cache) Delete(key string) error

func (*Cache) FSGet

func (c *Cache) FSGet(key string) ([]byte, error)

func (*Cache) FSSet

func (c *Cache) FSSet(key string, value []byte) error

func (*Cache) Get

func (c *Cache) Get(key string) ([]byte, error)

func (*Cache) S3Get

func (c *Cache) S3Get(key string) ([]byte, error)

func (*Cache) S3Set

func (c *Cache) S3Set(key string, value []byte) error

func (*Cache) Set

func (c *Cache) Set(key string, value []byte) error

Jump to

Keyboard shortcuts

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