• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web.Caching.AWS
      • AWSS3StorageCache
      • AWSS3StorageCacheOptions
    • SixLabors.ImageSharp.Web.Providers.AWS
      • AWSS3BucketClientOptions
      • AWSS3StorageImageProvider
      • AWSS3StorageImageProviderOptions
    • SixLabors.ImageSharp.Web.Resolvers.AWS
      • AWSS3StorageCacheResolver
      • AWSS3StorageImageResolver

    Class AWSS3StorageCache

    Implements an AWS S3 Storage based cache.

    Inheritance
    Object
    AWSS3StorageCache
    Implements
    IImageCache
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.ImageSharp.Web.Caching.AWS
    Assembly: SixLabors.ImageSharp.Web.Providers.AWS.dll
    Syntax
    public class AWSS3StorageCache : IImageCache

    Constructors

    | Improve this Doc View Source

    AWSS3StorageCache(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 Source

    CreateIfNotExists(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. specifies full public read access for bucket and object data. specifies that the bucket data is private to the account owner.

    Returns
    Type Description
    PutBucketResponse

    If the bucket does not already exist, a describing the newly created bucket. If the container already exists, null.

    | Improve this Doc View Source

    GetAsync(String)

    Declaration
    public async Task<IImageCacheResolver> GetAsync(string key)
    Parameters
    Type Name Description
    String key
    Returns
    Type Description
    Task<IImageCacheResolver>
    | Improve this Doc View Source

    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

    Implements

    IImageCache
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX