• 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>

    Class PhysicalFileSystemCache

    Implements a physical file system based cache.

    Inheritance
    Object
    PhysicalFileSystemCache
    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
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public class PhysicalFileSystemCache : IImageCache

    Constructors

    | Improve this Doc View Source

    PhysicalFileSystemCache(IOptions<PhysicalFileSystemCacheOptions>, IWebHostEnvironment, IOptions<ImageSharpMiddlewareOptions>, FormatUtilities)

    Initializes a new instance of the PhysicalFileSystemCache class.

    Declaration
    public PhysicalFileSystemCache(IOptions<PhysicalFileSystemCacheOptions> cacheOptions, IWebHostEnvironment environment, IOptions<ImageSharpMiddlewareOptions> options, FormatUtilities formatUtilities)
    Parameters
    Type Name Description
    IOptions<PhysicalFileSystemCacheOptions> cacheOptions

    The cache configuration options.

    IWebHostEnvironment environment

    The hosting environment the application is running in.

    IOptions<ImageSharpMiddlewareOptions> options

    The middleware configuration options.

    FormatUtilities formatUtilities

    Contains various format helper methods based on the current configuration.

    Methods

    | Improve this Doc View Source

    GetAsync(String)

    Gets the image resolver associated with the specified key.

    Declaration
    public 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
    public async 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.

    Implements

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