- isArray
bool isArray()
Undocumented in source. Be warned that the author may not have intended to support it.
- isError
bool isError()
Undocumented in source. Be warned that the author may not have intended to support it.
- isInt
bool isInt()
Undocumented in source. Be warned that the author may not have intended to support it.
- isNil
bool isNil()
Undocumented in source. Be warned that the author may not have intended to support it.
- isStatus
bool isStatus()
Undocumented in source. Be warned that the author may not have intended to support it.
- isString
bool isString()
Undocumented in source. Be warned that the author may not have intended to support it.
- isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
- opApply
int opApply(int delegate(size_t, Response) dg)
Support foreach(k, v; response)
- opApply
int opApply(int delegate(Response) dg)
Support foreach(v; response)
- opApplyReverse
int opApplyReverse(int delegate(size_t, Response) dg)
Support foreach_reverse(k, v; response)
- opApplyReverse
int opApplyReverse(int delegate(Response) dg)
Support foreach_reverse(v; response)
- opCast
T opCast()
Allows casting a Response to an integral, bool or string
- opCast
C[] opCast()
Allows casting a Response to (u)byte[]
- back
auto back [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- front
auto front [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- popBack
void popBack [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- popFront
void popFront [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- save
auto save [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- toBool
bool toBool [@property getter]
Attempts to check for truthiness of a Response.
- toBytes
C[] toBytes [@property getter]
Attempts to convert a response to an array of bytes
- toDiagnosticString
string toDiagnosticString [@property getter]
Returns the value of this Response as a string, along with type information
- toInt
T toInt [@property getter]
Converts a Response to an integral (byte to long)
- toString
string toString [@property getter]
Returns the value of this Response as a string
The Response struct represents returned data from Redis.
Stores values true to form. Allows user code to query, cast, iterate, print, and log strings, ints, errors and all other return types.
The role of the Response struct is to make it simple, yet accurate to retrieve returned values from Redis. To aid this it implements D op* functions as well as little helper methods that simplify user facing code.