Constructs a scredis.BlockingClient instance from a config file and using the provided path.
Constructs a scredis.BlockingClient instance from a config file and using the provided path.
config filename
path pointing to the scredis config object
the constructed scredis.BlockingClient
The path must include to the scredis object, e.g. x.y.scredis
Constructs a scredis.BlockingClient instance from a config file.
Constructs a scredis.BlockingClient instance from a config file.
config filename
the constructed scredis.BlockingClient
The config file must contain the scredis object at its root. This constructor is equivalent to
new Client(configName, "scredis")
Constructs a scredis.BlockingClient instance from a com.typesafe.Config
Constructs a scredis.BlockingClient instance from a com.typesafe.Config
com.typesafe.Config
the constructed scredis.BlockingClient
The config must contain the scredis object at its root. This constructor is equivalent to
new Client(config, "scredis")
Constructs a scredis.BlockingClient instance from a scredis.RedisConfig
Constructs a scredis.BlockingClient instance from a scredis.RedisConfig
the constructed scredis.BlockingClient
server address
server port
optional server password
database index to select
optional client name (available since 2.6.9)
connection timeout
max number of bytes to send as part of a batch
size hint of the tcp send buffer, in bytes
size hint of the tcp receive buffer, in bytes
path to listener dispatcher definition
path to io dispatcher definition
path to decoder dispatcher definition
Authenticates to the server.
Authenticates to the server.
the server password
1.0.0
[[scredis.exceptions.RedisErrorResponseException]]
if authentication failed
Waits for all the internal actors to be shutdown.
Waits for all the internal actors to be shutdown.
amount of time to wait
This method is usually called after issuing a QUIT command
Removes and returns the first element in a list, or block until one is available.
Removes and returns the first element in a list, or block until one is available.
timeout in seconds, if zero, the command blocks indefinitely until an element is available
list key(s)
list of key to popped element pair, or None
if timeout occurs
2.0.0
[[scredis.exceptions.RedisErrorResponseException]]
if a key contains a non-list value
Removes and returns the last element in a list, or block until one is available.
Removes and returns the last element in a list, or block until one is available.
timeout in seconds, if zero, the command blocks indefinitely until an element is available in at least one of the provided lists
list key(s)
list of key to popped element pair, or None
if timeout occurs
2.0.0
[[scredis.exceptions.RedisErrorResponseException]]
if a key contains a non-list value
Pops a value from a list, pushes it to another list and returns it, or block until one is available.
Pops a value from a list, pushes it to another list and returns it, or block until one is available.
key of list to pop from
key of list to push to
timeout in seconds, if zero, the command blocks indefinitely until an element is available in the list at sourceKey
the element being popped from source and pushed to destination, or None
if timeout
occurs
2.2.0
[[scredis.exceptions.RedisErrorResponseException]]
if sourceKey or destKey contain non-list values
Sets the current client name.
Sets the current client name. If the empty string is provided, the name will be unset.
name to associate the client to, if empty, unsets the client name
2.6.9
Closes the connection.
Closes the connection.
1.0.0
Changes the selected database on the current client.
Changes the selected database on the current client.
1.0.0
[[scredis.exceptions.RedisErrorResponseException]]
if the database index is invalid
Defines a Redis client supporting all blocking commands.