From 98918b39c4ac32c4063d095881fb7f9575bc1395 Mon Sep 17 00:00:00 2001 From: fbraem Date: Tue, 10 Nov 2015 22:48:28 +0100 Subject: [PATCH] Add more comments --- Redis/include/Poco/Redis/Client.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Redis/include/Poco/Redis/Client.h b/Redis/include/Poco/Redis/Client.h index 82f272135..40f2ca45a 100644 --- a/Redis/include/Poco/Redis/Client.h +++ b/Redis/include/Poco/Redis/Client.h @@ -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 = dynamic_cast*>(redisResult.get()); throw RedisException(error->value().getMessage()); } - + if (redisResult->type() == ElementTraits::TypeId) { Type* type = dynamic_cast*>(redisResult.get());