Auki::ConjureKit::Domains::ICachedValue
This value type wraps a reference value that is locally cached. It also guards from accessing its value when not yet in cache, while informing the user of its availability. More...
Public Properties
Name | |
---|---|
bool | IsCached True when Value is cached and can be accessed. |
T | Value Returns the cached value, if available. IsCached needs to be checked before accessing this value. |
Detailed Description
template <out T>
class Auki::ConjureKit::Domains::ICachedValue;
This value type wraps a reference value that is locally cached. It also guards from accessing its value when not yet in cache, while informing the user of its availability.
Exceptions:
- InvalidOperationException It is thrown when trying to access Value when IsCached is false.
Template Parameters:
- T A reference data type.
Public Property Documentation
property IsCached
bool IsCached;
True when Value is cached and can be accessed.
property Value
T Value;
Returns the cached value, if available. IsCached needs to be checked before accessing this value.
Exceptions:
- InvalidOperationException It is thrown when trying to access Value when IsCached is false.