object RedisKey extends RedisKey
- Alphabetic
- By Inheritance
- RedisKey
- RedisKey
- 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
del[K, V](keys: K*)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Delete one or more keys.
Delete one or more keys.
- returns
The number of keys that were removed.
- Definition Classes
- RedisKey
-
def
dump[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Array[Byte]]
Return a serialized version of the value stored at the specified key.
Return a serialized version of the value stored at the specified key.
- returns
The serialized value.
- Definition Classes
- RedisKey
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exists[K, V](keys: K*)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Determine how many keys exist.
Determine how many keys exist.
- returns
Number of existing keys
- Definition Classes
- RedisKey
-
def
expire[K, V](key: K, seconds: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
Set a key's time to live in seconds.
Set a key's time to live in seconds.
- returns
True if the timeout was set. false if key does not exist or the timeout could not be set.
- Definition Classes
- RedisKey
-
def
expireat[K, V](key: K, timestamp: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
- Definition Classes
- RedisKey
-
def
expireat[K, V](key: K, timestamp: Date)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
Set the expiration for a key as a UNIX timestamp.
Set the expiration for a key as a UNIX timestamp.
- returns
True if the timeout was set. False if key does not exist or the timeout could not be set.
- Definition Classes
- RedisKey
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keys[K, V](pattern: K)(implicit connection: StatefulRedisConnection[K, V]): Observable[K]
Find all keys matching the given pattern.
Find all keys matching the given pattern.
- returns
Keys matching the pattern.
- Definition Classes
- RedisKey
-
def
migrate[K, V](host: String, port: Int, key: K, db: Int, timeout: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Atomically transfer a key from a Redis instance to another one.
Atomically transfer a key from a Redis instance to another one.
- returns
The command returns OK on success.
- Definition Classes
- RedisKey
-
def
move[K, V](key: K, db: Int)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
Move a key to another database.
Move a key to another database.
- returns
True if the move operation succeeded, false if not.
- Definition Classes
- RedisKey
-
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()
-
def
objectEncoding[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
returns the kind of internal representation used in order to store the value associated with a key.
returns the kind of internal representation used in order to store the value associated with a key.
- returns
String
- Definition Classes
- RedisKey
-
def
objectIdletime[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Returns the number of seconds since the object stored at the specified key is idle (not requested by read or write operations).
Returns the number of seconds since the object stored at the specified key is idle (not requested by read or write operations).
- returns
Number of seconds since the object stored at the specified key is idle.
- Definition Classes
- RedisKey
-
def
objectRefcount[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Returns the number of references of the value associated with the specified key.
Returns the number of references of the value associated with the specified key.
- returns
Long
- Definition Classes
- RedisKey
-
def
persist[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
Remove the expiration from a key.
Remove the expiration from a key.
- returns
True if the timeout was removed. false if key does not exist or does not have an associated timeout.
- Definition Classes
- RedisKey
-
def
pexpire[K, V](key: K, milliseconds: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
Set a key's time to live in milliseconds.
Set a key's time to live in milliseconds.
- returns
True if the timeout was set. False if key does not exist or the timeout could not be set.
- Definition Classes
- RedisKey
-
def
pexpireat[K, V](key: K, timestamp: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
- Definition Classes
- RedisKey
-
def
pexpireat[K, V](key: K, timestamp: Date)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
- returns
Boolean integer-reply specifically: { @literal true} if the timeout was set. { @literal false} if { @code key} does not exist or the timeout could not be set (see: { @code EXPIRE}).
- Definition Classes
- RedisKey
-
def
pttl[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Get the time to live for a key in milliseconds.
Get the time to live for a key in milliseconds.
- returns
Long integer-reply TTL in milliseconds, or a negative value in order to signal an error (see the description above).
- Definition Classes
- RedisKey
-
def
randomkey[K, V]()(implicit connection: StatefulRedisConnection[K, V]): Task[V]
Return a random key from the keyspace.
Return a random key from the keyspace.
- returns
The random key, or null when the database is empty.
- Definition Classes
- RedisKey
-
def
rename[K, V](key: K, newKey: K)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Rename a key.
Rename a key.
- returns
String simple-string-reply
- Definition Classes
- RedisKey
-
def
renamenx[K, V](key: K, newKey: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
Rename a key, only if the new key does not exist.
Rename a key, only if the new key does not exist.
- returns
True if key was renamed to newkey. False if newkey already exists.
- Definition Classes
- RedisKey
-
def
restore[K, V](key: K, ttl: Long, value: Array[Byte])(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Create a key using the provided serialized value, previously obtained using DUMP.
Create a key using the provided serialized value, previously obtained using DUMP.
- returns
The command returns OK on success.
- Definition Classes
- RedisKey
-
def
scan[K, V](scanCursor: ScanCursor)(implicit connection: StatefulRedisConnection[K, V]): Task[KeyScanCursor[K]]
- Definition Classes
- RedisKey
-
def
scan[K, V]()(implicit connection: StatefulRedisConnection[K, V]): Task[KeyScanCursor[K]]
Incrementally iterate the keys space.
Incrementally iterate the keys space.
- returns
Scan cursor.
- Definition Classes
- RedisKey
-
def
sort[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Observable[V]
Sort the elements in a list, set or sorted set.
Sort the elements in a list, set or sorted set.
- returns
Sorted elements.
- Definition Classes
- RedisKey
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
touch[K, V](keys: K*)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Touch one or more keys.
Touch one or more keys. Touch sets the last accessed time for a key. Non-exsitent keys wont get created.
- returns
The number of found keys.
- Definition Classes
- RedisKey
-
def
ttl[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Get the time to live for a key.
Get the time to live for a key.
- returns
TTL in seconds, or a negative value in order to signal an error (see the description above).
- Definition Classes
- RedisKey
-
def
type[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Determine the type stored at key.
Determine the type stored at key.
- returns
Type of key, or none when key does not exist.
- Definition Classes
- RedisKey
-
def
unlink[K, V](keys: K*)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Unlink one or more keys (non blocking DEL).
Unlink one or more keys (non blocking DEL).
- returns
The number of keys that were removed.
- Definition Classes
- RedisKey
-
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
- @throws( ... ) @native()