Install redis with docker

This commit is contained in:
2025-03-18 23:47:13 +01:00
parent c28bc00679
commit 6d2043d9fe
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package eventDemo.adapter.infrastructureLayer
import io.kotest.core.NamedTag
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.equals.shouldBeEqual
import redis.clients.jedis.JedisPool
class RedisTest :
FunSpec({
tags(NamedTag("redis"))
test("test connection with jedis") {
JedisPool("redis://localhost:6379").apply {
resource.set("test", "test")
resource.get("test") shouldBeEqual "test"
}
}
})