Package dev.kord.core.cache

Types

CachingGateway
Link copied to clipboard
class CachingGateway(cache: DataCache, gateway: Gateway, dispatcher: CoroutineDispatcher) : DataCache, Gateway, CoroutineScope

A bridge between DataCache and Gateway that automatically empties cache on disconnect.

DataCacheView
Link copied to clipboard
class DataCacheView(cache: DataCache) : DataCache

A DataCacheView that limits removal of cached instances to those inserted in this cache, and not the underlying cache.

Generator
Link copied to clipboard
typealias Generator<I, T> = (cache: DataCache, description: DataDescription<T, I>) -> DataEntryCache<out T>
KordCacheBuilder
Link copied to clipboard
class KordCacheBuilder
ViewKeys
Link copied to clipboard
class ViewKeys(keySet: MutableSet<Any>)

Functions

createView
Link copied to clipboard
suspend fun DataCache.createView(): DataCacheView

Creates a DataCacheView for this view, only removing elements that were added directly to this instance.

idEq
Link copied to clipboard
fun <T : Any> QueryBuilder<T>.idEq(property: KProperty1<T, Snowflake?>, value: Snowflake?)
@JvmName(name = "optionalNullableIdEq")
fun <T : Any> QueryBuilder<T>.idEq(property: KProperty1<T, OptionalSnowflake?>, value: Snowflake?)
@JvmName(name = "optionalIdEq")
fun <T : Any> QueryBuilder<T>.idEq(property: KProperty1<T, OptionalSnowflake>, value: Snowflake?)
fun <T : Any> QueryBuilder<T>.idEq(property: KProperty1<T, Optional<String>>, value: String?)
@JvmName(name = "booleanEq")
fun <T : Any> QueryBuilder<T>.idEq(property: KProperty1<T, Boolean?>, value: Boolean?)
@JvmName(name = "stringEq")
fun <T : Any> QueryBuilder<T>.idEq(property: KProperty1<T, String?>, value: String?)
idGt
Link copied to clipboard
fun <T : Any> QueryBuilder<T>.idGt(property: KProperty1<T, Snowflake>, value: Snowflake)
idLt
Link copied to clipboard
fun <T : Any> QueryBuilder<T>.idLt(property: KProperty1<T, Snowflake>, value: Snowflake)