Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Exists(string) bool Get(string) ([]byte, error) Set(string, []byte) error Unset(string) error }
func NewCacheFromConfig ¶
func NewCacheFromConfig(cfg iiifconfig.CacheConfig) (Cache, error)
func NewDerivativesCacheFromConfig ¶
func NewDerivativesCacheFromConfig(config *iiifconfig.Config) (Cache, error)
func NewImagesCacheFromConfig ¶
func NewImagesCacheFromConfig(config *iiifconfig.Config) (Cache, error)
type DiskCache ¶
type DiskCache struct { Cache // contains filtered or unexported fields }
func NewDiskCache ¶
func NewDiskCache(cfg config.CacheConfig) (*DiskCache, error)
type MemoryCache ¶
type MemoryCache struct { Cache // contains filtered or unexported fields }
func NewMemoryCache ¶
func NewMemoryCache(cfg iiifconfig.CacheConfig) (*MemoryCache, error)
func (*MemoryCache) Exists ¶
func (mc *MemoryCache) Exists(key string) bool
func (*MemoryCache) OnEvicted ¶
func (mc *MemoryCache) OnEvicted(key string, value interface{})
func (*MemoryCache) Unset ¶
func (mc *MemoryCache) Unset(key string) error
type NullCache ¶
type NullCache struct {
Cache
}
func NewNullCache ¶
func NewNullCache(cfg config.CacheConfig) (*NullCache, error)
type S3Cache ¶
type S3Cache struct {
S3 *iiifaws.S3Connection
}
func NewS3Cache ¶
func NewS3Cache(cfg iiifconfig.CacheConfig) (*S3Cache, error)
Click to show internal directories.
Click to hide internal directories.