Represents an implemenation of Korzh.EasyQuery.Services.IEqCachingService which uses Session for storing cached objects.
public class Korzh.EasyQuery.Services.EqSessionCachingService
: IEqCachingService
Package: Korzh.EasyQuery.AspNetCore
(targets: net5.0
, netcoreapp3.1
, netstandard2.0
)
Assembly: Korzh.EasyQuery.AspNetCore.dll
Constructors
Name | Type | Description |
---|---|---|
EqSessionCachingService(IHttpContextAccessor httpContextAccessor) |
void |
Initializes a new instance of the Korzh.EasyQuery.Services.EqSessionCachingService class. |
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 |