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
IllegalStateExceptionString getStringValue() throws IllegalStateException
IllegalStateExceptionboolean getBooleanValue()
throws IllegalStateException
IllegalStateExceptionCopyright © 2009–2021. All rights reserved.