From 33317baf7b43bc61643284f047f15b0b5f495c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 17 Jan 2024 01:09:12 +0100 Subject: [PATCH] Adding docs about the new CacheFolder config for Azure and AWS Image Caches --- articles/imagesharp.web/imagecaches.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/articles/imagesharp.web/imagecaches.md b/articles/imagesharp.web/imagecaches.md index 1421802c4..f4a6d6dfd 100644 --- a/articles/imagesharp.web/imagecaches.md +++ b/articles/imagesharp.web/imagecaches.md @@ -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); @@ -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);