Provides simple and accessible caching. Values are cached for one game frame. Most logic is already cached at the memory level, this is useful for caching the results of complex logic.
More...
|
| FrameCachedObject (Func< T > retriever) |
| Creates a new CachedValue of the specified type, stored for the specified timespan.
|
override string | ToString () |
| Returns a System.String that represents this instance.
|
|
T | Value [get] |
| Gets the value this Cache holds. Returns the cached value if the specified duration has not expired, and a "fresh" value if it has.
|
T | RealValue [get] |
| Gets the real, non-cached value. Calling this does not affect the cache itself, and does not reset any of its timers.
|
Provides simple and accessible caching. Values are cached for one game frame. Most logic is already cached at the memory level, this is useful for caching the results of complex logic.
- Template Parameters
-
◆ FrameCachedObject()
ff14bot.Helpers.FrameCachedObject< T >.FrameCachedObject |
( |
Func< T > | retriever | ) |
|
Creates a new CachedValue of the specified type, stored for the specified timespan.
- Parameters
-
◆ operator T()
implicit ff14bot.Helpers.FrameCachedObject< T >.operator T |
( |
FrameCachedObject< T > | fco | ) |
|
|
static |
Implicit conversion to generic type, gets Value
- Parameters
-
◆ ToString()
override string ff14bot.Helpers.FrameCachedObject< T >.ToString |
( |
| ) |
|
Returns a System.String that represents this instance.
- Returns
- A System.String that represents this instance.
◆ RealValue
T ff14bot.Helpers.FrameCachedObject< T >.RealValue |
|
get |
Gets the real, non-cached value. Calling this does not affect the cache itself, and does not reset any of its timers.
◆ Value
T ff14bot.Helpers.FrameCachedObject< T >.Value |
|
get |
Gets the value this Cache holds. Returns the cached value if the specified duration has not expired, and a "fresh" value if it has.
The value.