Class Cache<T>
Cache to handle ASE query responses
Inherited Members
Namespace: SlipeServer.Server.AllSeeingEye
Assembly: SlipeServer.Server.dll
Syntax
public class Cache<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Edit this page View SourceCache(Func<T>, int)
Declaration
public Cache(Func<T> updateFunc, int cachePeriod)
Parameters
Type | Name | Description |
---|---|---|
Func<T> | updateFunc | |
int | cachePeriod |
Methods
| Edit this page View SourceGet(bool)
Declaration
public T? Get(bool forceUpdate = false)
Parameters
Type | Name | Description |
---|---|---|
bool | forceUpdate |
Returns
Type | Description |
---|---|
T |