class RedisClient extends RedisCommand with PubSub
- Alphabetic
- By Inheritance
- RedisClient
- PubSub
- RedisCommand
- HyperLogLogOperations
- PubOperations
- EvalOperations
- HashOperations
- SortedSetOperations
- SetOperations
- ListOperations
- StringOperations
- NodeOperations
- GeoOperations
- Operations
- Redis
- Protocol
- R
- Reply
- IO
- Log
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
-
class
Consumer extends Runnable
- Definition Classes
- PubSub
-
type
FoldReply = PartialFunction[(Char, Array[Byte], Option[GeoRadiusMember]), Option[GeoRadiusMember]]
The following partial functions intend to manage the response from the GEORADIUS and GEORADIUSBYMEMBER commands.
The following partial functions intend to manage the response from the GEORADIUS and GEORADIUSBYMEMBER commands. The code is not as generic as the previous ones as the exposed types are quite complex and really specific to these two commands
- Definition Classes
- Reply
-
type
MultiNestedReply = PartialFunction[(Char, Array[Byte]), Option[List[Option[List[Option[Array[Byte]]]]]]]
- Definition Classes
- Reply
-
type
MultiReply = PartialFunction[(Char, Array[Byte]), Option[List[Option[Array[Byte]]]]]
- Definition Classes
- Reply
-
type
PairReply = PartialFunction[(Char, Array[Byte]), Option[(Option[Array[Byte]], Option[List[Option[Array[Byte]]]])]]
- Definition Classes
- Reply
- class PipelineClient extends RedisCommand with PubOperations
-
type
Reply[T] = PartialFunction[(Char, Array[Byte]), T]
- Definition Classes
- Reply
-
type
SingleReply = PartialFunction[(Char, Array[Byte]), Option[Array[Byte]]]
- Definition Classes
- Reply
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
append(key: Any, value: Any)(implicit format: Format): Option[Long]
- Definition Classes
- StringOperations
-
def
asAny: Option[Any]
- Definition Classes
- R
-
def
asBoolean: Boolean
- Definition Classes
- R
-
def
asBulk[T](implicit parse: Parse[T]): Option[T]
- Definition Classes
- R
-
def
asBulkWithTime[T](implicit parse: Parse[T]): Option[T]
- Definition Classes
- R
-
def
asExec(handlers: Seq[() ⇒ Any]): Option[List[Any]]
- Definition Classes
- R
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asInt: Option[Int]
- Definition Classes
- R
-
def
asList[T](implicit parse: Parse[T]): Option[List[Option[T]]]
- Definition Classes
- R
-
def
asListPairs[A, B](implicit parseA: Parse[A], parseB: Parse[B]): Option[List[Option[(A, B)]]]
- Definition Classes
- R
-
def
asLong: Option[Long]
- Definition Classes
- R
-
def
asPair[T](implicit parse: Parse[T]): Option[(Option[Int], Option[List[Option[T]]])]
- Definition Classes
- R
-
def
asQueuedList: Option[List[Option[String]]]
- Definition Classes
- R
-
def
asSet[T](implicit arg0: Parse[T]): Option[Set[Option[T]]]
- Definition Classes
- R
-
def
asString: Option[String]
- Definition Classes
- R
-
def
auth(secret: Any)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
bgrewriteaof: Boolean
- Definition Classes
- NodeOperations
-
def
bgsave: Boolean
- Definition Classes
- NodeOperations
-
def
bitcount(key: Any, range: Option[(Int, Int)] = None)(implicit format: Format): Option[Int]
- Definition Classes
- StringOperations
-
def
bitop(op: String, destKey: Any, srcKeys: Any*)(implicit format: Format): Option[Int]
- Definition Classes
- StringOperations
-
def
blpop[K, V](timeoutInSeconds: Int, key: K, keys: K*)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[(K, V)]
- Definition Classes
- ListOperations
-
def
brpop[K, V](timeoutInSeconds: Int, key: K, keys: K*)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[(K, V)]
- Definition Classes
- ListOperations
-
def
brpoplpush[A](srcKey: Any, dstKey: Any, timeoutInSeconds: Int)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- ListOperations
-
def
bulkRead(s: Array[Byte]): Option[Array[Byte]]
- Definition Classes
- Reply
-
val
bulkReply: SingleReply
- Definition Classes
- Reply
-
def
clearFd(): Unit
- Definition Classes
- IO
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
cmd(args: Seq[Array[Byte]]): Array[Byte]
- Definition Classes
- Redis
-
def
connect: Boolean
- Definition Classes
- IO
-
def
connected: Boolean
- Definition Classes
- IO
-
val
database: Int
- Definition Classes
- RedisClient → RedisCommand
-
val
db: Int
- Definition Classes
- IO
-
def
dbsize: Option[Long]
- Definition Classes
- Operations
-
def
debug(message: String, error: Throwable): Unit
- Definition Classes
- Log
-
def
debug(message: String, values: AnyRef*): Unit
- Definition Classes
- Log
-
def
decr(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- StringOperations
-
def
decrby(key: Any, increment: Long)(implicit format: Format): Option[Long]
- Definition Classes
- StringOperations
-
def
del(key: Any, keys: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- Operations
-
def
disconnect: Boolean
- Definition Classes
- IO
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
errReply: Reply[Nothing]
- Definition Classes
- Reply
-
def
error(message: String, error: Throwable): Unit
- Definition Classes
- Log
-
def
error(message: String, values: AnyRef*): Unit
- Definition Classes
- Log
-
def
evalBulk[A](luaCode: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- EvalOperations
-
def
evalInt(luaCode: String, keys: List[Any], args: List[Any]): Option[Int]
- Definition Classes
- EvalOperations
-
def
evalMultiBulk[A](luaCode: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
- Definition Classes
- EvalOperations
-
def
evalMultiSHA[A](shahash: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
- Definition Classes
- EvalOperations
-
def
evalSHA[A](shahash: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- EvalOperations
-
def
evalSHABulk[A](shahash: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- EvalOperations
-
def
execReply(handlers: Seq[() ⇒ Any]): PartialFunction[(Char, Array[Byte]), Option[List[Any]]]
- Definition Classes
- Reply
-
def
exists(key: Any)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
expire(key: Any, ttl: Int)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
expireat(key: Any, timestamp: Long)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flattenPairs(in: Iterable[Product2[Any, Any]]): List[Any]
- Attributes
- protected
- Definition Classes
- Redis
-
def
flushall: Boolean
- Definition Classes
- Operations
-
def
flushdb: Boolean
- Definition Classes
- Operations
-
val
geoRadiusMemberReply: Reply[Option[List[Option[GeoRadiusMember]]]]
Entry point for GEORADIUS result analysis.
Entry point for GEORADIUS result analysis. The analysis is done in three steps.
First step : we are expecting a MULTI structure and will iterate trivially on it.
- Definition Classes
- Reply
-
def
geoadd(key: Any, members: Iterable[Product3[Any, Any, Any]]): Option[Int]
Add the given
members
in thekey
geo sorted setAdd the given
members
in thekey
geo sorted set- key
The geo sorted set
- members
The members to be added. Format is (longitude, latitude, member)
- returns
The number of elements added to the index. Repeated elements are not added.
- Definition Classes
- GeoOperations
-
def
geodist(key: Any, m1: Any, m2: Any, unit: Option[Any]): Option[String]
- Definition Classes
- GeoOperations
-
def
geohash[A](key: Any, members: Iterable[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
Get the geohash for each member in the key geo index.
Get the geohash for each member in the key geo index.
- returns
The geohash of each queried member.
- Definition Classes
- GeoOperations
-
def
geopos[A](key: Any, members: Iterable[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[List[Option[A]]]]]
Retrieve the position of the members in the key geo sorted set.
Retrieve the position of the members in the key geo sorted set. Note that if a member is not part of the set, None will be returned for this element.
- returns
the coordinates of the input members in the same order.
- Definition Classes
- GeoOperations
-
def
georadius(key: Any, longitude: Any, latitude: Any, radius: Any, unit: Any, withCoord: Boolean, withDist: Boolean, withHash: Boolean, count: Option[Int], sort: Option[Any], store: Option[Any], storeDist: Option[Any]): Option[List[Option[GeoRadiusMember]]]
Search for members around an origin point in the key geo sorted set
Search for members around an origin point in the key geo sorted set
- key
The geo index we are searching in
- longitude
The base longitude for distance computation
- latitude
The base latitude for distance computation
- radius
The radius of the circle we want to search in
- unit
The unit of the radius. Can be m (meters), km (kilometers), mi (miles), ft (feet)
- withCoord
If true, the coordinate of the found members will be returned in the result
- withDist
If true, the distance between the origin and the found members will be returned in the result
- withHash
If true, the hash of the found members will be returned in the result
- count
Max number of expected results
- sort
The sorting strategy. If empty, order is not guaranteed. Can be ASC (ascending) or DESC (descending)
- store
The Redis store we want to write the result in
- storeDist
The redis storedist we want to write the result in
- returns
The found members as GeoRadiusMember instances
- Definition Classes
- GeoOperations
-
def
georadiusbymember[A](key: Any, member: Any, radius: Any, unit: Any, withCoord: Boolean, withDist: Boolean, withHash: Boolean, count: Option[Int], sort: Option[Any], store: Option[Any], storeDist: Option[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[GeoRadiusMember]]]
Search for members around a specific memberin the key geo sorted set
Search for members around a specific memberin the key geo sorted set
- key
The geo index we are searching in
- member
The member we are searching around
- radius
The radius of the circle we want to search in
- unit
The unit of the radius. Can be m (meters), km (kilometers), mi (miles), ft (feet)
- withCoord
If true, the coordinate of the found members will be returned in the result
- withDist
If true, the distance between the origin and the found members will be returned in the result
- withHash
If true, the hash of the found members will be returned in the result
- count
Max number of expected results
- sort
The sorting strategy. If empty, order is not guaranteed. Can be ASC (ascending) or DESC (descending)
- store
The Redis store we want to write the result in
- storeDist
The redis storedist we want to write the result in
- returns
The found members as GeoRadiusMember instances
- Definition Classes
- GeoOperations
-
def
get[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- StringOperations
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getConfig(key: Any = "*")(implicit format: Format): Option[Map[String, Option[String]]]
- Definition Classes
- Operations
-
def
getType(key: Any)(implicit format: Format): Option[String]
- Definition Classes
- Operations
-
def
getbit(key: Any, offset: Int)(implicit format: Format): Option[Int]
- Definition Classes
- StringOperations
-
def
getrange[A](key: Any, start: Int, end: Int)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- StringOperations
-
def
getset[A](key: Any, value: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- StringOperations
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hdel(key: Any, field: Any, fields: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- HashOperations
-
def
hexists(key: Any, field: Any)(implicit format: Format): Boolean
- Definition Classes
- HashOperations
-
def
hget[A](key: Any, field: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- HashOperations
-
def
hgetall1[K, V](key: Any)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[Map[K, V]]
- Definition Classes
- HashOperations
-
def
hincrby(key: Any, field: Any, value: Long)(implicit format: Format): Option[Long]
- Definition Classes
- HashOperations
-
def
hincrbyfloat(key: Any, field: Any, value: Float)(implicit format: Format): Option[Float]
- Definition Classes
- HashOperations
-
def
hkeys[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[List[A]]
- Definition Classes
- HashOperations
-
def
hlen(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- HashOperations
-
def
hmget[K, V](key: Any, fields: K*)(implicit format: Format, parseV: Parse[V]): Option[Map[K, V]]
- Definition Classes
- HashOperations
-
def
hmset(key: Any, map: Iterable[Product2[Any, Any]])(implicit format: Format): Boolean
Sets the specified fields to their respective values in the hash stored at key.
Sets the specified fields to their respective values in the hash stored at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created.
- map
from fields to values
- returns
True
if operation completed successfully,False
otherwise.
- Definition Classes
- HashOperations
- See also
-
val
host: String
- Definition Classes
- RedisClient → IO
-
def
hscan[A](key: Any, cursor: Int, pattern: Any = "*", count: Int = 10)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]
- Definition Classes
- HashOperations
-
def
hset1(key: Any, field: Any, value: Any)(implicit format: Format): Option[Long]
Sets
field
in the hash stored atkey
tovalue
.Sets
field
in the hash stored atkey
tovalue
. Ifkey
does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.- returns
Some(0)
iffield
is a new field in the hash and value was set,Some(1)
iffield
already exists in the hash and the value was updated.
- Definition Classes
- HashOperations
- See also
-
def
hsetnx(key: Any, field: Any, value: Any)(implicit format: Format): Boolean
Sets
field
in the hash stored atkey
tovalue
, only if field does not yet exist.Sets
field
in the hash stored atkey
tovalue
, only if field does not yet exist. If key does not exist, a new key holding a hash is created. If field already exists, this operation has no effect.- returns
True
iffield
is a new field in the hash and value was set. False iffield
exists in the hash and no operation was performed.
- Definition Classes
- HashOperations
- See also
-
def
hvals[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[List[A]]
- Definition Classes
- HashOperations
-
def
ifDebug(message: ⇒ String): Unit
- Definition Classes
- Log
-
def
ifError(message: ⇒ String): Unit
- Definition Classes
- Log
-
def
ifInfo(message: ⇒ String): Unit
- Definition Classes
- Log
-
def
ifTrace(message: ⇒ String): Unit
- Definition Classes
- Log
-
def
ifWarn(message: ⇒ String): Unit
- Definition Classes
- Log
-
val
in: InputStream
- Definition Classes
- IO
-
def
incr(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- StringOperations
-
def
incrby(key: Any, increment: Long)(implicit format: Format): Option[Long]
- Definition Classes
- StringOperations
-
def
incrbyfloat(key: Any, increment: Float)(implicit format: Format): Option[Float]
- Definition Classes
- StringOperations
-
def
info: Option[String]
- Definition Classes
- NodeOperations
-
def
info(message: String, error: Throwable): Unit
- Definition Classes
- Log
-
def
info(message: String, values: AnyRef*): Unit
- Definition Classes
- Log
-
def
initialize: Boolean
- Definition Classes
- RedisCommand → Redis
-
val
integerReply: Reply[Option[Int]]
- Definition Classes
- Reply
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keys[A](pattern: Any = "*")(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
- Definition Classes
- Operations
-
def
lastsave: Option[Long]
- Definition Classes
- NodeOperations
-
def
lindex[A](key: Any, index: Int)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- ListOperations
-
def
llen(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- ListOperations
-
val
longReply: Reply[Option[Long]]
- Definition Classes
- Reply
-
def
lpop[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- ListOperations
-
def
lpush(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- ListOperations
-
def
lpushx(key: Any, value: Any)(implicit format: Format): Option[Long]
- Definition Classes
- ListOperations
-
def
lrange[A](key: Any, start: Int, end: Int)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
- Definition Classes
- ListOperations
-
def
lrem(key: Any, count: Int, value: Any)(implicit format: Format): Option[Long]
- Definition Classes
- ListOperations
-
def
lset(key: Any, index: Int, value: Any)(implicit format: Format): Boolean
- Definition Classes
- ListOperations
-
def
ltrim(key: Any, start: Int, end: Int)(implicit format: Format): Boolean
- Definition Classes
- ListOperations
-
def
mget[A](key: Any, keys: Any*)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
- Definition Classes
- StringOperations
-
def
monitor: Boolean
- Definition Classes
- NodeOperations
-
def
move(key: Any, db: Int)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
mset(kvs: (Any, Any)*)(implicit format: Format): Boolean
- Definition Classes
- StringOperations
-
def
msetnx(kvs: (Any, Any)*)(implicit format: Format): Boolean
- Definition Classes
- StringOperations
-
val
multiBulkNested: MultiNestedReply
- Definition Classes
- Reply
-
val
multiBulkReply: MultiReply
- Definition Classes
- Reply
-
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()
-
val
out: OutputStream
- Definition Classes
- IO
-
def
pSubscribe(channel: String, channels: String*)(fn: (PubSubMessage) ⇒ Any): Unit
- Definition Classes
- PubSub
-
def
pSubscribeRaw(channel: String, channels: String*): Unit
- Definition Classes
- PubSub
-
def
pUnsubscribe(channel: String, channels: String*): Unit
- Definition Classes
- PubSub
-
def
pUnsubscribe(): Unit
- Definition Classes
- PubSub
-
val
pairBulkReply: PairReply
- Definition Classes
- Reply
-
def
persist(key: Any)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
pexpire(key: Any, ttlInMillis: Int)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
pexpireat(key: Any, timestampInMillis: Long)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
pfadd(key: Any, value: Any, values: Any*): Option[Long]
- Definition Classes
- HyperLogLogOperations
-
def
pfcount(keys: Any*): Option[Long]
- Definition Classes
- HyperLogLogOperations
-
def
pfmerge(destination: Any, sources: Any*): Boolean
- Definition Classes
- HyperLogLogOperations
-
def
ping: Option[String]
- Definition Classes
- Operations
- def pipeline(f: (PipelineClient) ⇒ Any): Option[List[Any]]
-
def
pipelineNoMulti(commands: Seq[() ⇒ Any]): List[Promise[Any]]
Redis pipelining API without the transaction semantics.
Redis pipelining API without the transaction semantics. The implementation has a non-blocking semantics and returns a List of Promise. The caller may use Future.firstCompletedOf to get the first completed task before all tasks have been completed. If an exception is raised in executing any of the commands, then the corresponding Promise holds the exception. Here's a sample usage:
val x = r.pipelineNoMulti( List( {() => r.set("key", "debasish")}, {() => r.get("key")}, {() => r.get("key1")}, {() => r.lpush("list", "maulindu")}, {() => r.lpush("key", "maulindu")} // should raise an exception ) )
This queues up all commands and does pipelining. The returned r is a List of Promise. The client may want to wait for all to complete using:
val result = x.map{a => Await.result(a.future, timeout)}
Or the client may wish to track and get the promises as soon as the underlying Future is completed.
-
val
port: Int
- Definition Classes
- RedisClient → IO
-
def
psetex(key: Any, expiryInMillis: Long, value: Any)(implicit format: Format): Boolean
- Definition Classes
- StringOperations
-
def
pttl(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- Operations
-
val
pubSub: Boolean
- Definition Classes
- PubSub
-
def
publish(channel: String, msg: String): Option[Long]
- Definition Classes
- PubOperations
-
def
queuedReplyInt: Reply[Option[Int]]
- Definition Classes
- Reply
-
def
queuedReplyList: MultiReply
- Definition Classes
- Reply
-
def
queuedReplyLong: Reply[Option[Long]]
- Definition Classes
- Reply
-
def
quit: Boolean
- Definition Classes
- Operations
-
def
randomkey[A](implicit parse: Parse[A]): Option[A]
- Definition Classes
- Operations
-
def
readCounted(count: Int): Array[Byte]
- Definition Classes
- IO
-
def
readLine: Array[Byte]
- Definition Classes
- IO
-
def
receive[T](pf: Reply[T]): T
- Definition Classes
- Reply
-
def
reconnect: Boolean
- Definition Classes
- Redis
-
def
rename(oldkey: Any, newkey: Any)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
renamenx(oldkey: Any, newkey: Any)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
rpop[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- ListOperations
-
def
rpoplpush[A](srcKey: Any, dstKey: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- ListOperations
-
def
rpush(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- ListOperations
-
def
rpushx(key: Any, value: Any)(implicit format: Format): Option[Long]
- Definition Classes
- ListOperations
-
def
sadd(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- SetOperations
-
def
save: Boolean
- Definition Classes
- NodeOperations
-
def
scan[A](cursor: Int, pattern: Any = "*", count: Int = 10)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]
- Definition Classes
- Operations
-
def
scard(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- SetOperations
-
def
scriptExists(shahash: String): Option[Int]
- Definition Classes
- EvalOperations
-
def
scriptFlush: Option[String]
- Definition Classes
- EvalOperations
-
def
scriptLoad(luaCode: String): Option[String]
- Definition Classes
- EvalOperations
-
def
sdiff[A](key: Any, keys: Any*)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]
- Definition Classes
- SetOperations
-
def
sdiffstore(key: Any, keys: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- SetOperations
-
val
secret: Option[Any]
- Definition Classes
- RedisClient → RedisCommand
-
def
select(index: Int): Boolean
- Definition Classes
- Operations
-
def
send[A](command: String)(result: ⇒ A): A
- Definition Classes
- Redis
-
def
send[A](command: String, args: Seq[Any])(result: ⇒ A)(implicit format: Format): A
- Definition Classes
- Redis
-
def
set(key: Any, value: Any, onlyIfExists: Boolean, time: SecondsOrMillis): Boolean
- Definition Classes
- StringOperations
-
def
set(key: Any, value: Any)(implicit format: Format): Boolean
- Definition Classes
- StringOperations
-
def
setConfig(key: Any, value: Any)(implicit format: Format): Option[String]
- Definition Classes
- Operations
-
def
setbit(key: Any, offset: Int, value: Any)(implicit format: Format): Option[Int]
- Definition Classes
- StringOperations
-
def
setex(key: Any, expiry: Long, value: Any)(implicit format: Format): Boolean
- Definition Classes
- StringOperations
-
def
setnx(key: Any, value: Any)(implicit format: Format): Boolean
- Definition Classes
- StringOperations
-
def
setrange(key: Any, offset: Int, value: Any)(implicit format: Format): Option[Long]
- Definition Classes
- StringOperations
-
def
shutdown: Boolean
- Definition Classes
- NodeOperations
-
val
singleLineReply: SingleReply
- Definition Classes
- Reply
-
def
sinter[A](key: Any, keys: Any*)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]
- Definition Classes
- SetOperations
-
def
sinterstore(key: Any, keys: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- SetOperations
-
def
sismember(key: Any, value: Any)(implicit format: Format): Boolean
- Definition Classes
- SetOperations
-
def
slaveof(options: Any): Boolean
- Definition Classes
- NodeOperations
-
def
smembers[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]
- Definition Classes
- SetOperations
-
def
smove(sourceKey: Any, destKey: Any, value: Any)(implicit format: Format): Option[Long]
- Definition Classes
- SetOperations
-
val
socket: Socket
- Definition Classes
- IO
-
def
sort[A](key: String, limit: Option[(Int, Int)] = None, desc: Boolean = false, alpha: Boolean = false, by: Option[String] = None, get: List[String] = Nil)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
- Definition Classes
- Operations
-
def
sortNStore[A](key: String, limit: Option[(Int, Int)] = None, desc: Boolean = false, alpha: Boolean = false, by: Option[String] = None, get: List[String] = Nil, storeAt: String)(implicit format: Format, parse: Parse[A]): Option[Long]
- Definition Classes
- Operations
-
def
spop[A](key: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]
- Definition Classes
- SetOperations
-
def
spop[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- SetOperations
-
def
srandmember[A](key: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
- Definition Classes
- SetOperations
-
def
srandmember[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- Definition Classes
- SetOperations
-
def
srem(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- SetOperations
-
def
sscan[A](key: Any, cursor: Int, pattern: Any = "*", count: Int = 10)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]
- Definition Classes
- SetOperations
-
def
strlen(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- StringOperations
-
def
subscribe(channel: String, channels: String*)(fn: (PubSubMessage) ⇒ Any): Unit
- Definition Classes
- PubSub
-
def
subscribeRaw(channel: String, channels: String*): Unit
- Definition Classes
- PubSub
-
def
sunion[A](key: Any, keys: Any*)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]
- Definition Classes
- SetOperations
-
def
sunionstore(key: Any, keys: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- SetOperations
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
time[A](implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
- Definition Classes
- Operations
-
val
timeout: Int
- Definition Classes
- RedisClient → IO
-
def
toString(): String
- Definition Classes
- RedisClient → AnyRef → Any
-
def
trace(message: String, error: Throwable): Unit
- Definition Classes
- Log
-
def
trace(message: String, values: AnyRef*): Unit
- Definition Classes
- Log
-
def
ttl(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- Operations
-
def
unsubscribe(channel: String, channels: String*): Unit
- Definition Classes
- PubSub
-
def
unsubscribe(): Unit
- Definition Classes
- PubSub
-
def
unwatch(): Boolean
- Definition Classes
- Operations
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
warn(message: String, error: Throwable): Unit
- Definition Classes
- Log
-
def
warn(message: String, values: AnyRef*): Unit
- Definition Classes
- Log
-
def
watch(key: Any, keys: Any*)(implicit format: Format): Boolean
- Definition Classes
- Operations
-
def
write(data: Array[Byte]): Unit
- Definition Classes
- IO
-
def
write_to_socket(data: Array[Byte])(op: (OutputStream) ⇒ Unit): Unit
- Definition Classes
- IO
-
def
zadd(key: Any, score: Double, member: Any, scoreVals: (Double, Any)*)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zcard(key: Any)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zcount(key: Any, min: Double = Double.NegativeInfinity, max: Double = Double.PositiveInfinity, minInclusive: Boolean = true, maxInclusive: Boolean = true)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zincrby(key: Any, incr: Double, member: Any)(implicit format: Format): Option[Double]
- Definition Classes
- SortedSetOperations
-
def
zinterstore(dstKey: Any, keys: Iterable[Any], aggregate: Aggregate = SUM)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zinterstoreWeighted(dstKey: Any, kws: Iterable[Product2[Any, Double]], aggregate: Aggregate = SUM)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zrange[A](key: Any, start: Int = 0, end: Int = -1, sortAs: SortOrder = ASC)(implicit format: Format, parse: Parse[A]): Option[List[A]]
- Definition Classes
- SortedSetOperations
-
def
zrangeWithScore[A](key: Any, start: Int = 0, end: Int = -1, sortAs: SortOrder = ASC)(implicit format: Format, parse: Parse[A]): Option[List[(A, Double)]]
- Definition Classes
- SortedSetOperations
-
def
zrangebylex[A](key: Any, min: String, max: String, limit: Option[(Int, Int)])(implicit format: Format, parse: Parse[A]): Option[List[A]]
- Definition Classes
- SortedSetOperations
-
def
zrangebyscore[A](key: Any, min: Double = Double.NegativeInfinity, minInclusive: Boolean = true, max: Double = Double.PositiveInfinity, maxInclusive: Boolean = true, limit: Option[(Int, Int)], sortAs: SortOrder = ASC)(implicit format: Format, parse: Parse[A]): Option[List[A]]
- Definition Classes
- SortedSetOperations
-
def
zrangebyscoreWithScore[A](key: Any, min: Double = Double.NegativeInfinity, minInclusive: Boolean = true, max: Double = Double.PositiveInfinity, maxInclusive: Boolean = true, limit: Option[(Int, Int)], sortAs: SortOrder = ASC)(implicit format: Format, parse: Parse[A]): Option[List[(A, Double)]]
- Definition Classes
- SortedSetOperations
-
def
zrank(key: Any, member: Any, reverse: Boolean = false)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zrem(key: Any, member: Any, members: Any*)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zremrangebyrank(key: Any, start: Int = 0, end: Int = -1)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zremrangebyscore(key: Any, start: Double = Double.NegativeInfinity, end: Double = Double.PositiveInfinity)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zscan[A](key: Any, cursor: Int, pattern: Any = "*", count: Int = 10)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]
- Definition Classes
- SortedSetOperations
-
def
zscore(key: Any, element: Any)(implicit format: Format): Option[Double]
- Definition Classes
- SortedSetOperations
-
def
zunionstore(dstKey: Any, keys: Iterable[Any], aggregate: Aggregate = SUM)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
-
def
zunionstoreWeighted(dstKey: Any, kws: Iterable[Product2[Any, Double]], aggregate: Aggregate = SUM)(implicit format: Format): Option[Long]
- Definition Classes
- SortedSetOperations
Deprecated Value Members
-
def
hgetall[K, V](key: Any)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[Map[K, V]]
- Definition Classes
- HashOperations
- Annotations
- @deprecated
- Deprecated
(Since version 3.2) Use the more idiomatic variant hgetall1, which has the returned Map behavior more consistent. See issue https://github.com/debasishg/scala-redis/issues/122
-
def
hset(key: Any, field: Any, value: Any)(implicit format: Format): Boolean
Sets
field
in the hash stored atkey
tovalue
.Sets
field
in the hash stored atkey
tovalue
. Ifkey
does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.- returns
True
iffield
is a new field in the hash and value was set,False
iffield
already exists in the hash and the value was updated.
- Definition Classes
- HashOperations
- Deprecated
return value semantics is inconsistent with com.redis.HashOperations#hsetnx and com.redis.HashOperations#hmset. Use com.redis.HashOperations#hset1 instead
- See also
-
def
randkey[A](implicit parse: Parse[A]): Option[A]
- Definition Classes
- Operations
- Annotations
- @deprecated
- Deprecated
(Since version 2.8) use randomkey
-
def
set(key: Any, value: Any, nxxx: Any, expx: Any, time: Long): Boolean
- Definition Classes
- StringOperations
- Annotations
- @deprecated
- Deprecated
(Since version 2.14) Use the more typesafe variant
-
def
slaveOf(options: Any): Boolean
- Definition Classes
- NodeOperations
- Annotations
- @deprecated
- Deprecated
(Since version 1.2.0) use slaveof