Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache implements a cache backed by AWS S3.
func New ¶
New returns a new S3 cache which stores objects in the bucket with the given key prefix. A trailing slash is appended if one does not exist.
The Get and Put methods sanitize the key value. Only alpahnumerics, underscores, and dashes are allowed. All other characters are replaced by underscores. Ensure keys match this pattern in order to avoid collisions due to the sanitization.
Click to show internal directories.
Click to hide internal directories.