Cached version of a KScalar.
This KScalar decorator technically is an in-memory cache.
Pay attention that this class is not thread-safe. It is highly recommended to always decorate it with SyncScalar.
There is no thread-safety guarantee.
T - Type of result
func - Cached func
Get value of this Scalar