tools
2.2.3
tools
/
me.scolastico.tools.cache
/
CacheManager
Cache
Manager
open
class
CacheManager
Content copied to clipboard
CacheManager for simple storing and accessing of values in cache files.
Functions
Functions
destroy
Link copied to clipboard
open
fun
destroy
(
)
Content copied to clipboard
Destroy ALL items in the cache.
open
fun
destroy
(
id
:
String
)
Content copied to clipboard
Delete an item by its id.
destroy
Old
Link copied to clipboard
open
fun
destroyOld
(
)
Content copied to clipboard
Destroy old cache items that expired.
get
Link copied to clipboard
open
fun
<
X
>
get
(
id
:
String
,
classOf
:
Class
<
X
>
,
callable
:
Callable
<
X
>
)
:
X
Content copied to clipboard
open
fun
<
X
>
get
(
id
:
String
,
classOf
:
Class
<
X
>
,
callable
:
Callable
<
X
>
,
validUntil
:
Int
)
:
X
Content copied to clipboard
Get something out of the cache.
store
Link copied to clipboard
open
fun
<
X
>
store
(
id
:
String
,
value
:
X
)
Content copied to clipboard
open
fun
<
X
>
store
(
id
:
String
,
value
:
X
,
validUntil
:
Int
)
Content copied to clipboard
Store something in the cache.