Versions in this module Expand all Collapse all v1 v1.3.5 Oct 25, 2019 Changes in this version + type Cache interface + Exists func(string) bool + Get func(string) ([]byte, error) + Set func(string, []byte) error + Unset func(string) error + func NewCacheFromConfig(cfg iiifconfig.CacheConfig) (Cache, error) + func NewDerivativesCacheFromConfig(config *iiifconfig.Config) (Cache, error) + func NewImagesCacheFromConfig(config *iiifconfig.Config) (Cache, error) + type DiskCache struct + func NewDiskCache(cfg config.CacheConfig) (*DiskCache, error) + func (c *DiskCache) Exists(rel_path string) bool + func (c *DiskCache) Get(rel_path string) ([]byte, error) + func (c *DiskCache) Set(rel_path string, body []byte) error + func (c *DiskCache) Unset(rel_path string) error + type MemoryCache struct + func NewMemoryCache(cfg iiifconfig.CacheConfig) (*MemoryCache, error) + func (mc *MemoryCache) Exists(key string) bool + func (mc *MemoryCache) Get(key string) ([]byte, error) + func (mc *MemoryCache) OnEvicted(key string, value interface{}) + func (mc *MemoryCache) Set(key string, data []byte) error + func (mc *MemoryCache) Unset(key string) error + type NullCache struct + func NewNullCache(cfg config.CacheConfig) (*NullCache, error) + func (c *NullCache) Exists(rel_path string) bool + func (c *NullCache) Get(rel_path string) ([]byte, error) + func (c *NullCache) Set(rel_path string, body []byte) error + func (c *NullCache) Unset(rel_path string) error + type S3Cache struct + S3 *s3.S3Connection + func NewS3Cache(cfg iiifconfig.CacheConfig) (*S3Cache, error) + func (c *S3Cache) Exists(key string) bool + func (c *S3Cache) Get(key string) ([]byte, error) + func (c *S3Cache) Set(key string, body []byte) error + func (c *S3Cache) Unset(key string) error Other modules containing this package github.com/go-iiif/go-iiif/v2 github.com/go-iiif/go-iiif/v3 github.com/go-iiif/go-iiif/v4 github.com/go-iiif/go-iiif/v5 github.com/go-iiif/go-iiif/v6