Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding docs about the new CacheFolder config for Azure and AWS Image Caches #65

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions articles/imagesharp.web/imagecaches.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ Once installed the cache @SixLabors.ImageSharp.Web.Caching.Azure.AzureBlobStorag
{
options.ConnectionString = {AZURE_CONNECTION_STRING};
options.ContainerName = {AZURE_CONTAINER_NAME};

// Optionally use a cache folder under the container.
options.CacheFolder = {AZURE_CACHE_FOLDER};

// Optionally create the cache container on startup if not already created.
AzureBlobStorageCache.CreateIfNotExists(options, PublicAccessType.None);
Expand Down Expand Up @@ -106,6 +109,9 @@ Once installed the cache @SixLabors.ImageSharp.Web.Caching.AWS.AWSS3StorageCache
options.AccessKey = {AWS_ACCESS_KEY};
options.AccessSecret = {AWS_ACCESS_SECRET};
options.Region = {AWS_REGION};

// Optionally use a cache folder under the bucket.
options.CacheFolder = {AWS_CACHE_FOLDER};

// Optionally create the cache bucket on startup if not already created.
AWSS3StorageCache.CreateIfNotExists(options, S3CannedACL.Private);
Expand Down