object RedisCluster
- Alphabetic
- By Inheritance
- RedisCluster
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(configName: String, path: String): RedisCluster
Constructs a scredis.RedisCluster instance from a config file and using the provided path.
Constructs a scredis.RedisCluster 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.RedisCluster
- Note
The path must include to the scredis object, e.g. x.y.scredis
- def apply(configName: String): RedisCluster
Constructs a scredis.RedisCluster instance from a config file.
Constructs a scredis.RedisCluster instance from a config file.
- configName
config filename
- returns
the constructed scredis.RedisCluster
- Note
The config file must contain the scredis object at its root. This constructor is equivalent to
Redis(configName, "scredis")
- def apply(config: Config): RedisCluster
Constructs a scredis.RedisCluster instance from a com.typesafe.Config.
Constructs a scredis.RedisCluster instance from a com.typesafe.Config.
- config
a com.typesafe.Config
- returns
the constructed scredis.RedisCluster
- Note
The config must contain the scredis object at its root.
- def apply(config: RedisConfig, systemOpt: Option[ActorSystem]): RedisCluster
Constructs a scredis.RedisCluster instance from a scredis.RedisConfig.
Constructs a scredis.RedisCluster instance from a scredis.RedisConfig.
- config
- returns
the constructed scredis.RedisCluster
- def apply(node: Server, nodes: Server*): RedisCluster
Constructs a scredis.RedisCluster instance with given seed nodes, using the default config for all other parameters.
Constructs a scredis.RedisCluster instance with given seed nodes, using the default config for all other parameters.
- returns
the constructed scredis.RedisCluster
- def apply(nodes: Seq[Server] = RedisConfigDefaults.Redis.ClusterNodes, maxRetries: Int = 4, receiveTimeoutOpt: Option[FiniteDuration] = RedisConfigDefaults.IO.ReceiveTimeoutOpt, connectTimeout: FiniteDuration = RedisConfigDefaults.IO.ConnectTimeout, 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, tryAgainWait: FiniteDuration = RedisConfigDefaults.IO.Cluster.TryAgainWait, clusterDownWait: FiniteDuration = RedisConfigDefaults.IO.Cluster.ClusterDownWait, systemOpt: Option[ActorSystem] = None, failCommandOnConnecting: Boolean = RedisConfigDefaults.Global.FailCommandOnConnecting, passwordOpt: Option[String] = RedisConfigDefaults.Config.Redis.PasswordOpt): RedisCluster
Constructs a scredis.RedisCluster instance using provided parameters.
Constructs a scredis.RedisCluster instance using provided parameters.
- nodes
list of server nodes, used as seed nodes to initially connect to the cluster.
- maxRetries
maximum number of retries and redirects to perform for a single command
- receiveTimeoutOpt
optional batch receive timeout
- connectTimeout
connection 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
- tryAgainWait
time to wait after a TRYAGAIN response by a cluster node
- clusterDownWait
time to wait for a retry after CLUSTERDOWN response
- systemOpt
Actor System (optionally)
- failCommandOnConnecting
indicates whether to fail fast on all requests until there is a working connection.
- passwordOpt
Auth password (optionally)
- returns
the constructed scredis.RedisCluster
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()