update jedis config

This commit is contained in:
2025-03-23 00:14:35 +01:00
parent 6ddffa4f41
commit dd7cfb943e
2 changed files with 8 additions and 6 deletions

View File

@@ -14,11 +14,11 @@ import eventDemo.libs.event.projection.SnapshotConfig
import org.koin.core.module.Module
import org.koin.core.module.dsl.singleOf
import org.koin.dsl.bind
import redis.clients.jedis.JedisPool
import redis.clients.jedis.JedisPooled
fun Module.configureDIInfrastructure(redisUrl: String) {
single {
JedisPool(redisUrl)
JedisPooled(redisUrl)
}
singleOf(::GameEventBusInMemory) bind GameEventBus::class