Add more comments

This commit is contained in:
fbraem 2015-11-10 22:48:28 +01:00
parent ee19720231
commit 98918b39c4

View File

@ -50,6 +50,17 @@ class Redis_API Client
/// {
/// // We have a string value
/// }
///
/// To create Redis commands, the factory methods of the Command class can
/// be used or the Array class can be used directly.
///
/// Command llen = Command::llen("list");
///
/// is the same as
///
/// Array command;
/// command.add("LLEN").add("list");
///
{
public:
Client();
@ -137,7 +148,7 @@ public:
Type<Error>* error = dynamic_cast<Type<Error>*>(redisResult.get());
throw RedisException(error->value().getMessage());
}
if (redisResult->type() == ElementTraits<T>::TypeId)
{
Type<T>* type = dynamic_cast<Type<T>*>(redisResult.get());