Skip to content

Commit b548318

Browse files
Merge pull request #65 from Lombiq/issue/OCORE-136
Adding docs about the new CacheFolder config for Azure and AWS Image Caches
2 parents 892a8aa + 33317ba commit b548318

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/imagesharp.web/imagecaches.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ Once installed the cache @SixLabors.ImageSharp.Web.Caching.Azure.AzureBlobStorag
5353
{
5454
options.ConnectionString = {AZURE_CONNECTION_STRING};
5555
options.ContainerName = {AZURE_CONTAINER_NAME};
56+
57+
// Optionally use a cache folder under the container.
58+
options.CacheFolder = {AZURE_CACHE_FOLDER};
5659

5760
// Optionally create the cache container on startup if not already created.
5861
AzureBlobStorageCache.CreateIfNotExists(options, PublicAccessType.None);
@@ -106,6 +109,9 @@ Once installed the cache @SixLabors.ImageSharp.Web.Caching.AWS.AWSS3StorageCache
106109
options.AccessKey = {AWS_ACCESS_KEY};
107110
options.AccessSecret = {AWS_ACCESS_SECRET};
108111
options.Region = {AWS_REGION};
112+
113+
// Optionally use a cache folder under the bucket.
114+
options.CacheFolder = {AWS_CACHE_FOLDER};
109115

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

0 commit comments

Comments
 (0)