BaseStorage

abstract class BaseStorage(val clock: Clock) : Storage

Base class implementing common functionality for various Storage implementations.

Inheritors

Constructors

Link copied to clipboard
constructor(clock: Clock)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
val clock: Clock

Functions

Link copied to clipboard
open suspend override fun getTable(spec: StorageTableSpec): StorageTable

Get the table with specific name and features.

Link copied to clipboard
open suspend override fun purgeExpired()

Reclaim the storage occupied by expired entries across all tables in this Storage object (even if these tables were never accessed using getTable in this session).