|
PeanutButter
|
SingleItemCache provides a light, fast, caching wrapper around a function to generate a value with a provided TTL. More...
Public Member Functions | |
| void | Invalidate () |
| Invalidates the cache such that the next call will definitely regenerate the value. | |
Properties | |
| T | Value [get] |
| The value for the generator, or a cached value, if available and still fresh enough. | |
| Func< T > | Generator [get] |
| Expose the generator (might be useful for testing purposes) | |
| TimeSpan | TimeToLive [get] |
| Expose the provided TimeToLive (might be useful for testing purposes) | |
SingleItemCache provides a light, fast, caching wrapper around a function to generate a value with a provided TTL.
| void PeanutButter.Utils.ISingleItemCache< T >.Invalidate | ( | ) |
Invalidates the cache such that the next call will definitely regenerate the value.
| NotImplementedException |
Implemented in PeanutButter.Utils.SingleItemCache< T >.
|
get |
Expose the generator (might be useful for testing purposes)
Implemented in PeanutButter.Utils.SingleItemCache< T >.
|
get |
Expose the provided TimeToLive (might be useful for testing purposes)
Implemented in PeanutButter.Utils.SingleItemCache< T >.
|
get |
The value for the generator, or a cached value, if available and still fresh enough.
Implemented in PeanutButter.Utils.SingleItemCache< T >.