InMemoryCache

Class for an InMemory Cache to keep your variables globally in heap and get them wherever you want.

Functions

Link copied to clipboard
fun clear()

Clear all the InMemoryCache

Link copied to clipboard

check if have the value on the Given Key

Link copied to clipboard
operator fun get(key: String): Any?

get the saved value addressed by the key

Link copied to clipboard
fun getAll(): Map<String, Any?>

get All The InMemoryCache

Link copied to clipboard
fun getAllByType(clazz: Class<*>): Map<String, Any?>

get All the InMemoryCache of an Specific Type.

Link copied to clipboard
fun put(key: String, value: Any?): InMemoryCache

put key&value where