EqSessionCachingService class
Represents an implemenation of Korzh.EasyQuery.Services.IEqCachingService which uses Session for storing cached objects.
public class Korzh.EasyQuery.Services.EqSessionCachingService : IEqCachingServicePackage: Korzh.EasyQuery.AspNetCore (targets: net5.0, netcoreapp3.1, netstandard2.0)
Assembly: Korzh.EasyQuery.AspNetCore.dll
Constructors
Section titled “Constructors”| Name | Type | Description |
|---|---|---|
EqSessionCachingService(IHttpContextAccessor httpContextAccessor) | void | Initializes a new instance of the Korzh.EasyQuery.Services.EqSessionCachingService class. |
Methods
Section titled “Methods”| Name | Type | Description |
|---|---|---|
GetValue(string key) | string | Gets the value from the cache. |
PutValue(string key, string value) | void | Puts the value to the cache |