Skip to content

Commit

Permalink
Merge pull request #65 from Lombiq/issue/OCORE-136
Browse files Browse the repository at this point in the history
Adding docs about the new CacheFolder config for Azure and AWS Image Caches
  • Loading branch information
JimBobSquarePants committed Apr 15, 2024
2 parents 892a8aa + 33317ba commit b548318
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit b548318

Please sign in to comment.