All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.pouvoir.internal.feature.database.redis.RedisContainerHolder.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.internal.feature.database.redis

import com.skillw.pouvoir.api.feature.database.ContainerHolder
import taboolib.expansion.SingleRedisConnection

/**
 * @className MongoContainerHolder
 *
 * @author Glom
 * @date 2023/1/20 17:29 Copyright 2024 Glom.
 */
class RedisContainerHolder(val connection: SingleRedisConnection) : ContainerHolder() {
    override fun createContainer(tableName: String, userKey: Boolean): RedisContainer =
        if (!userKey) RedisContainer(tableName, this, connection)
        else RedisUserContainer(tableName, this, connection)

    override fun disconnect() {
        connection.close()
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy