KestrunHostSessionExtensions class
Provides extension methods for configuring session state and distributed cache in Kestrun.
public static class KestrunHostSessionExtensions
Public Members
| name | description |
|---|---|
| static AddDistributedMemoryCache(…) | Adds a default implementation of IDistributedCache that stores items in memory to the KestrunHost. Frameworks that require a distributed cache to work can safely add this dependency as part of their dependency list to ensure that there is at least one implementation available. |
| static AddDistributedSqlServerCache(…) | Adds a SQL Server implementation of IDistributedCache to the KestrunHost. |
| static AddSession(…) | Adds session state services and middleware to the application. |
| static AddStackExchangeRedisCache(…) | Adds a StackExchange Redis implementation of IDistributedCache to the KestrunHost. |
| static IsDistributedCacheRegistered(…) | Checks if a distributed cache implementation is already registered with the host. |
See Also
- namespace Kestrun.Hosting