• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • FormattedImage
      • FormatUtilities
      • ImageCacheMetadata
      • ImageMetadata
    • SixLabors.ImageSharp.Web.Caching
      • CacheHash
      • ICacheHash
      • IImageCache
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
    • SixLabors.ImageSharp.Web.Commands
      • CommandParser
      • DictionaryExtensions
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ICommandConverter
      • ICommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ImageSharpConfiguration
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ConcurrentDictionaryExtensions
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • JpegQualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • IImageProvider
      • PhysicalFileSystemProvider
      • ProcessingBehavior
    • SixLabors.ImageSharp.Web.Resolvers
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
      • PhysicalFileSystemResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>

    Interface IImageCache

    Specifies the contract for caching images.

    Namespace: SixLabors.ImageSharp.Web.Caching
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public interface IImageCache

    Methods

    | Improve this Doc View Source

    GetAsync(String)

    Gets the image resolver associated with the specified key.

    Declaration
    Task<IImageCacheResolver> GetAsync(string key)
    Parameters
    Type Name Description
    String key

    The cache key.

    Returns
    Type Description
    Task<IImageCacheResolver>

    The IImageResolver.

    | Improve this Doc View Source

    SetAsync(String, Stream, ImageCacheMetadata)

    Sets the value associated with the specified key.

    Declaration
    Task SetAsync(string key, Stream stream, ImageCacheMetadata metadata)
    Parameters
    Type Name Description
    String key

    The cache key.

    Stream stream

    The stream containing the image to store.

    ImageCacheMetadata metadata

    The ImageCacheMetadata associated with the image to store.

    Returns
    Type Description
    Task

    The task.

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