Documentation
¶
Overview ¶
Package azurestoragecache provides an implementation of httpcache.Cache that stores and retrieves data using Azure Storage.
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 stores and retrieves data using Azure Storage.
func New ¶
New returns a new Cache with underlying client for Azure Storage.
accountName and accountKey are the Azure Storage credentials. If either are empty, the contents of the environment variables AZURESTORAGE_ACCOUNT_NAME and AZURESTORAGE_ACCESS_KEY will be used.
containerName is the container name in which cached values will be stored. If not specified, "cache" will be used.
Click to show internal directories.
Click to hide internal directories.