Table of Contents

Namespace SixLabors.ImageSharp.Web.Caching

Classes

LegacyV1CacheKey

Maintained for compatibility purposes only this cache key implementation generates the same out as the V1 middleware. If possible, it is recommended to use the UriRelativeLowerInvariantCacheKey.

PhysicalFileSystemCache

Implements a physical file system based cache.

PhysicalFileSystemCacheOptions

Configuration options for the PhysicalFileSystemCache.

SHA256CacheHash

Creates hashed keys for the given inputs hashing them to string of length ranging from 2 to 64. Hashed keys are the result of the SHA256 computation of the input value for the given length. This ensures low collision rates with a shorter file name.

UriAbsoluteCacheKey

Creates a cache key based on the request host, path and commands.

UriAbsoluteLowerInvariantCacheKey

Creates a case insensitive cache key based on the request host, path and commands.

UriRelativeCacheKey

Creates a cache key based on the request path and commands.

UriRelativeLowerInvariantCacheKey

Creates a case insensitive cache key based on the request path and commands.

Interfaces

ICacheHash

Defines a contract that allows the creation of hashed file names for storing cached images.

ICacheKey

Defines a contract that allows the creation of cache keys (used by ICacheHash to create hashed file names for storing cached images).

IImageCache

Specifies the contract for caching images.