Documentation ¶
Index ¶
- type BlobCache
- type Cache
- func NewBlobCache(config iiifconfig.CacheConfig) (Cache, error)
- func NewBlobCacheFromURI(uri string) (Cache, error)
- func NewCacheFromConfig(config iiifconfig.CacheConfig) (Cache, error)
- func NewDerivativesCacheFromConfig(config *iiifconfig.Config) (Cache, error)
- func NewDiskCache(cfg config.CacheConfig) (Cache, error)
- func NewImagesCacheFromConfig(config *iiifconfig.Config) (Cache, error)
- func NewS3Cache(cfg iiifconfig.CacheConfig) (Cache, error)
- type MemoryCache
- type NullCache
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 NewBlobCache ¶
func NewBlobCache(config iiifconfig.CacheConfig) (Cache, error)
func NewBlobCacheFromURI ¶
func NewCacheFromConfig ¶
func NewCacheFromConfig(config iiifconfig.CacheConfig) (Cache, error)
func NewDerivativesCacheFromConfig ¶
func NewDerivativesCacheFromConfig(config *iiifconfig.Config) (Cache, error)
func NewDiskCache ¶
func NewDiskCache(cfg config.CacheConfig) (Cache, error)
func NewImagesCacheFromConfig ¶
func NewImagesCacheFromConfig(config *iiifconfig.Config) (Cache, error)
func NewS3Cache ¶
func NewS3Cache(cfg iiifconfig.CacheConfig) (Cache, 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)
Click to show internal directories.
Click to hide internal directories.