object Redis

The companion object provides additional friendly constructors.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Redis
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(configName: String, path: String): Redis

    Constructs a scredis.Redis instance from a config file and using the provided path.

    Constructs a scredis.Redis instance from a config file and using the provided path.

    configName

    config filename

    path

    path pointing to the scredis config object

    returns

    the constructed scredis.Redis

    Note

    The path must include to the scredis object, e.g. x.y.scredis

  5. def apply(configName: String): Redis

    Constructs a scredis.Redis instance from a config file.

    Constructs a scredis.Redis instance from a config file.

    configName

    config filename

    returns

    the constructed scredis.Redis

    Note

    The config file must contain the scredis object at its root. This constructor is equivalent to

    Redis(configName, "scredis")
  6. def apply(config: Config): Redis

    Constructs a scredis.Redis instance from a com.typesafe.Config.

    Constructs a scredis.Redis instance from a com.typesafe.Config.

    config

    com.typesafe.Config

    returns

    the constructed scredis.Redis

    Note

    The config must contain the scredis object at its root.

  7. def apply(subscription: Subscription): Redis
  8. def apply(config: RedisConfig): Redis

    Constructs a scredis.Redis instance from a scredis.RedisConfig.

    Constructs a scredis.Redis instance from a scredis.RedisConfig.

    config

    scredis.RedisConfig

    returns

    the constructed scredis.Redis

  9. def apply(): Redis

    Constructs a scredis.Redis instance using the default config.

    Constructs a scredis.Redis instance using the default config.

    returns

    the constructed scredis.Redis

  10. def apply(host: String = RedisConfigDefaults.Redis.Host, port: Int = RedisConfigDefaults.Redis.Port, authOpt: Option[AuthConfig] = RedisConfigDefaults.Redis.AuthOpt, database: Int = RedisConfigDefaults.Redis.Database, nameOpt: Option[String] = RedisConfigDefaults.Redis.NameOpt, connectTimeout: FiniteDuration = RedisConfigDefaults.IO.ConnectTimeout, receiveTimeoutOpt: Option[FiniteDuration] = RedisConfigDefaults.IO.ReceiveTimeoutOpt, maxWriteBatchSize: Int = RedisConfigDefaults.IO.MaxWriteBatchSize, tcpSendBufferSizeHint: Int = RedisConfigDefaults.IO.TCPSendBufferSizeHint, tcpReceiveBufferSizeHint: Int = RedisConfigDefaults.IO.TCPReceiveBufferSizeHint, actorSystemName: String = RedisConfigDefaults.IO.Akka.ActorSystemName, akkaListenerDispatcherPath: String = RedisConfigDefaults.IO.Akka.ListenerDispatcherPath, akkaIODispatcherPath: String = RedisConfigDefaults.IO.Akka.IODispatcherPath, akkaDecoderDispatcherPath: String = RedisConfigDefaults.IO.Akka.DecoderDispatcherPath, failCommandOnConnecting: Boolean = RedisConfigDefaults.Global.FailCommandOnConnecting): Redis

    Constructs a scredis.Redis instance using provided parameters.

    Constructs a scredis.Redis instance using provided parameters.

    host

    server address

    port

    server port

    authOpt

    optional server authorization credentials

    database

    database index to select

    nameOpt

    optional client name (available since 2.6.9)

    connectTimeout

    connection timeout

    receiveTimeoutOpt

    optional batch receive timeout

    maxWriteBatchSize

    max number of bytes to send as part of a batch

    tcpSendBufferSizeHint

    size hint of the tcp send buffer, in bytes

    tcpReceiveBufferSizeHint

    size hint of the tcp receive buffer, in bytes

    actorSystemName

    name of the actor system

    akkaListenerDispatcherPath

    path to listener dispatcher definition

    akkaIODispatcherPath

    path to io dispatcher definition

    akkaDecoderDispatcherPath

    path to decoder dispatcher definition

    returns

    the constructed scredis.Redis

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. def withActorSystem(configName: String, path: String)(implicit system: ActorSystem): Redis

    Constructs a scredis.Redis instance from a config file and using the provided path.

    Constructs a scredis.Redis instance from a config file and using the provided path.

    configName

    config filename

    path

    path pointing to the scredis config object

    system

    implicit ActorSystem

    returns

    the constructed scredis.Redis

    Note

    The path must include to the scredis object, e.g. x.y.scredis

    ,

    The provided ActorSystem will not be shutdown after invoking quit.

  28. def withActorSystem(configName: String)(implicit system: ActorSystem): Redis

    Constructs a scredis.Redis instance from a config file.

    Constructs a scredis.Redis instance from a config file.

    configName

    config filename

    system

    implicit ActorSystem

    returns

    the constructed scredis.Redis

    Note

    The config file must contain the scredis object at its root. This constructor is equivalent to

    Redis(configName, "scredis")
    ,

    The provided ActorSystem will not be shutdown after invoking quit.

  29. def withActorSystem(config: Config)(implicit system: ActorSystem): Redis

    Constructs a scredis.Redis instance from a com.typesafe.Config.

    Constructs a scredis.Redis instance from a com.typesafe.Config.

    config

    com.typesafe.Config

    system

    implicit ActorSystem

    returns

    the constructed scredis.Redis

    Note

    The config must contain the scredis object at its root.

    ,

    The provided ActorSystem will not be shutdown after invoking quit.

  30. def withActorSystem(config: RedisConfig)(implicit system: ActorSystem): Redis

    Constructs a scredis.Redis instance from a scredis.RedisConfig.

    Constructs a scredis.Redis instance from a scredis.RedisConfig.

    config

    scredis.RedisConfig

    system

    implicit ActorSystem

    returns

    the constructed scredis.Redis

    Note

    The provided ActorSystem will not be shutdown after invoking quit.

  31. def withActorSystem()(implicit system: ActorSystem): Redis

    Constructs a scredis.Redis instance using the default config.

    Constructs a scredis.Redis instance using the default config.

    system

    implicit ActorSystem

    returns

    the constructed scredis.Redis

    Note

    The provided ActorSystem will not be shutdown after invoking quit.

  32. def withActorSystem(host: String = RedisConfigDefaults.Redis.Host, port: Int = RedisConfigDefaults.Redis.Port, authOpt: Option[AuthConfig] = RedisConfigDefaults.Redis.AuthOpt, database: Int = RedisConfigDefaults.Redis.Database, nameOpt: Option[String] = RedisConfigDefaults.Redis.NameOpt, connectTimeout: FiniteDuration = RedisConfigDefaults.IO.ConnectTimeout, receiveTimeoutOpt: Option[FiniteDuration] = RedisConfigDefaults.IO.ReceiveTimeoutOpt, maxWriteBatchSize: Int = RedisConfigDefaults.IO.MaxWriteBatchSize, tcpSendBufferSizeHint: Int = RedisConfigDefaults.IO.TCPSendBufferSizeHint, tcpReceiveBufferSizeHint: Int = RedisConfigDefaults.IO.TCPReceiveBufferSizeHint, akkaListenerDispatcherPath: String = RedisConfigDefaults.IO.Akka.ListenerDispatcherPath, akkaIODispatcherPath: String = RedisConfigDefaults.IO.Akka.IODispatcherPath, akkaDecoderDispatcherPath: String = RedisConfigDefaults.IO.Akka.DecoderDispatcherPath, failCommandOnConnecting: Boolean = RedisConfigDefaults.Global.FailCommandOnConnecting, subscription: Subscription = RedisConfigDefaults.LoggingSubscription)(implicit system: ActorSystem): Redis

    Constructs a scredis.Redis instance using provided parameters.

    Constructs a scredis.Redis instance using provided parameters.

    host

    server address

    port

    server port

    authOpt

    optional server authorization credentials

    database

    database index to select

    nameOpt

    optional client name (available since 2.6.9)

    connectTimeout

    connection timeout

    receiveTimeoutOpt

    optional batch receive timeout

    maxWriteBatchSize

    max number of bytes to send as part of a batch

    tcpSendBufferSizeHint

    size hint of the tcp send buffer, in bytes

    tcpReceiveBufferSizeHint

    size hint of the tcp receive buffer, in bytes

    akkaListenerDispatcherPath

    path to listener dispatcher definition

    akkaIODispatcherPath

    path to io dispatcher definition

    akkaDecoderDispatcherPath

    path to decoder dispatcher definition

    system

    implicit ActorSystem

    returns

    the constructed scredis.Redis

    Note

    The provided ActorSystem will not be shutdown after invoking quit.

Inherited from AnyRef

Inherited from Any

Ungrouped