class Response extends AnyRef
The response received from the REDIS server. Redis responses can have several representations:
- simple string - C string
- integer - 64bit integer value
- bulk - byte array
- multi - list
Due to the dynamic nature the response object will try to cast the received response to the desired type. A special case should be noted that multi responses are also handled by the response object as it implements the iterable interface. So in this case constructs like for loops on the response will give you access to the underlying elements.
- Alphabetic
- By Inheritance
- Response
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Response(_asJava: AnyRef)
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 asJava: AnyRef
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(key: String): Response
Get this multi response value at a string key.
Get this multi response value at a string key. Note that REDIS does not support strings as keys but by convention it encodes hashes in lists where index i is the key, and index i+1 is the value. * @param key the required key.
- returns
Response value.
-
def
get(index: Int): Response
Get this multi response value at a numerical index.
Get this multi response value at a numerical index. * @param index the required index.
- returns
Response value.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getKeys(): Set[String]
Get this multi response keys from a hash.
Get this multi response keys from a hash. Note that REDIS does not support strings as keys but by convention it encodes hashes in lists where index i is the key, and index i+1 is the value. * @return the set of keys.
-
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()
-
def
size(): Int
Get this size of this multi response.
Get this size of this multi response. * @return the size of the multi.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBoolean(): Boolean
Get this response as a Boolean.
Get this response as a Boolean. * @return boolean value.
-
def
toBuffer(): Buffer
Get this response as Buffer.
Get this response as Buffer. * @return buffer value.
-
def
toByte(): Byte
Get this response as a Byte.
Get this response as a Byte. * @return byte value.
-
def
toInteger(): Int
Get this response as a Integer.
Get this response as a Integer. * @return int value.
-
def
toLong(): Long
Get this response as a Long.
Get this response as a Long. * @return long value.
-
def
toShort(): Short
Get this response as a Short.
Get this response as a Short. * @return short value.
-
def
toString(): String
Get this response as a String.
Get this response as a String. * @return string value
- Definition Classes
- Response → AnyRef → Any
-
def
type(): ResponseType
The response return type.
The response return type. * @return the type.
-
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( ... )