Memory

class Memory<T : Any> : Storage<T>

A repository for storing objects in memory.

Parameters

T

The type of the object to be stored.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun delete()

Deletes the item from memory.

Link copied to clipboard
open suspend override fun get(): T?

Retrieves the item from memory.

Link copied to clipboard
open suspend override fun save(item: T)

Saves the given item in memory.