Documentation ¶
Index ¶
- func NewS3Cache(dsn string, opts *S3CacheOptions) (cache.Cache, error)
- type S3Cache
- func (c *S3Cache) Evictions() int64
- func (c *S3Cache) Get(key string) (io.ReadCloser, error)
- func (c *S3Cache) Hits() int64
- func (c *S3Cache) Misses() int64
- func (c *S3Cache) Name() string
- func (c *S3Cache) Set(key string, fh io.ReadCloser) (io.ReadCloser, error)
- func (c *S3Cache) Size() int64
- func (c *S3Cache) Unset(key string) error
- type S3CacheOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewS3Cache ¶
func NewS3Cache(dsn string, opts *S3CacheOptions) (cache.Cache, error)
Types ¶
type S3Cache ¶
type S3Cache struct { cache.Cache // contains filtered or unexported fields }
func (*S3Cache) Set ¶
func (c *S3Cache) Set(key string, fh io.ReadCloser) (io.ReadCloser, error)
type S3CacheOptions ¶
type S3CacheOptions struct {
ACL string
}
func NewS3CacheOptionsFromDefaults ¶
func NewS3CacheOptionsFromDefaults() (*S3CacheOptions, error)
func NewS3CacheOptionsFromString ¶
func NewS3CacheOptionsFromString(str_opts string) (*S3CacheOptions, error)
Click to show internal directories.
Click to hide internal directories.