Interface ICacheKey
Defines a contract that allows the creation of cache keys (used by ICacheHash to create hashed file names for storing cached images).
Namespace: SixLabors.ImageSharp.Web.Caching
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public interface ICacheKey
Methods
| Edit this page View SourceCreate(HttpContext, CommandCollection)
Creates the cache key based on the specified context and commands.
Declaration
string Create(HttpContext context, CommandCollection commands)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContext | context | The HTTP context. |
| CommandCollection | commands | The commands. |
Returns
| Type | Description |
|---|---|
| string | The cache key. |