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

main.misk.redis.RedisTestModule.kt Maven / Gradle / Ivy

There is a newer version: 2024.11.14.031606-bddeae6
Show newest version
package misk.redis

import misk.inject.KAbstractModule
import jakarta.inject.Qualifier
import kotlin.random.Random

@Deprecated("Moved to misk-redis-testing.", ReplaceWith("misk.redis.testing.RedisTestModule"))
class RedisTestModule @JvmOverloads constructor(private val random: Random = Random.Default) :
  KAbstractModule() {
  override fun configure() {
    bind().annotatedWith().toInstance(random)
    bind().toInstance(FakeRedis())
  }
}

@Qualifier
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FIELD)
@Deprecated("Moved to misk-redis-testing.", ReplaceWith("misk.redis.testing.ForFakeRedis"))
annotation class ForFakeRedis




© 2015 - 2024 Weber Informatics LLC | Privacy Policy