public interface ValueResponse extends Response
Command.RANDOMKEY
will return a key in a single line reply, and not a bulk reply.
(As of 04/02/09. Ex randomkey response => +woof )
This class deals with all responses that are a single line responses distinct from 'status' replies. For now, this means the result is either a UTF-8 String key or number. [TODO: document me!]
Response.Type
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue() |
long |
getLongValue()
Redis number values are "64bit signed integers".
|
String |
getStringValue() |
long getLongValue() throws IllegalStateException
IllegalStateException
String getStringValue() throws IllegalStateException
IllegalStateException
boolean getBooleanValue() throws IllegalStateException
IllegalStateException
Copyright © 2009–2018. All rights reserved.