Class AWSS3StorageCache
Implements an AWS S3 Storage based cache.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Caching.AWS
Assembly: SixLabors.ImageSharp.Web.Providers.AWS.dll
Syntax
public class AWSS3StorageCache : IImageCache
Constructors
| Improve this Doc View SourceAWSS3StorageCache(IOptions<AWSS3StorageCacheOptions>)
Initializes a new instance of the AWSS3StorageCache class.
Declaration
public AWSS3StorageCache(IOptions<AWSS3StorageCacheOptions> cacheOptions)
Parameters
Type | Name | Description |
---|---|---|
IOptions<AWSS3StorageCacheOptions> | cacheOptions | The cache options. |
Methods
| Improve this Doc View SourceCreateIfNotExists(AWSS3StorageCacheOptions, S3CannedACL)
Creates a new bucket under the specified account if a bucket with the same name does not already exist.
Declaration
public static PutBucketResponse CreateIfNotExists(AWSS3StorageCacheOptions options, S3CannedACL acl)
Parameters
Type | Name | Description |
---|---|---|
AWSS3StorageCacheOptions | options | The AWS S3 Storage cache options. |
S3CannedACL | acl | Specifies whether data in the bucket may be accessed publicly and the level of access.
|
Returns
Type | Description |
---|---|
PutBucketResponse | If the bucket does not already exist, a |
GetAsync(String)
Declaration
public async Task<IImageCacheResolver> GetAsync(string key)
Parameters
Type | Name | Description |
---|---|---|
String | key |
Returns
Type | Description |
---|---|
Task<IImageCacheResolver> |
SetAsync(String, Stream, ImageCacheMetadata)
Declaration
public Task SetAsync(string key, Stream stream, ImageCacheMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Stream | stream | |
ImageCacheMetadata | metadata |
Returns
Type | Description |
---|---|
Task |