CacheManager

open class CacheManager

CacheManager for simple storing and accessing of values in cache files.

Functions

Link copied to clipboard
open fun destroy()
Destroy ALL items in the cache.
open fun destroy(id: String)
Delete an item by its id.
Link copied to clipboard
open fun destroyOld()
Destroy old cache items that expired.
Link copied to clipboard
open fun <X> get(id: String, classOf: Class<X>, callable: Callable<X>): X
open fun <X> get(id: String, classOf: Class<X>, callable: Callable<X>, validUntil: Int): X
Get something out of the cache.
Link copied to clipboard
open fun <X> store(id: String, value: X)
open fun <X> store(id: String, value: X, validUntil: Int)
Store something in the cache.