get
Get something out of the cache. If it's not existing the callable will be called for new data which will then be stored in the cache. If something new is cached it will be stored for 3600 seconds.
Return
The cached value.
Parameters
The id of the cache item. Should be something unique.
The class of the value which should be cached.
The callable if the cache is empty to get a new value.
The type of the value which should be cached.
Throws
Passthroughs of the callable exceptions.
Get something out of the cache. If it's not existing the callable will be called for new data which will then be stored in the cache.
Return
The cached value.
Parameters
The id of the cache item. Should be something unique.
The class of the value which should be cached.
The callable if the cache is empty to get a new value.
How long the cache should be valid. In seconds.
The type of the value which should be cached.
Throws
Passthroughs of the callable exceptions.