Skip to content

Commit d352675

Browse files
committed
update README
1 parent 6fa030b commit d352675

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,17 @@ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/path/to/hiredis -DCMAKE_IN
9696
*redis-plus-plus* has been fully tested with the following compilers:
9797

9898
```
99-
gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
99+
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
100100
gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu1)
101101
gcc version 6.5.0 20181026 (Ubuntu 6.5.0-2ubuntu1~18.04)
102-
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
102+
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
103+
gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1~18.04.1)
103104
clang version 3.9.1-19ubuntu1 (tags/RELEASE_391/rc2)
104105
clang version 4.0.1-10 (tags/RELEASE_401/final)
105106
clang version 5.0.1-4 (tags/RELEASE_501/final)
106107
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
107108
clang version 7.0.0-3~ubuntu0.18.04.1 (tags/RELEASE_700/final)
108-
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
109+
Apple clang version 11.0.0 (clang-1100.0.33.8)
109110
```
110111

111112
After compiling with cmake, you'll get a test program in *compile/test* directory: *compile/test/test_redis++*.
@@ -295,7 +296,8 @@ try {
295296
redis.hgetall("hash", std::inserter(m, m.begin()));
296297

297298
// Get value only.
298-
std::vector<std::string> vals;
299+
// NOTE: since field might NOT exist, so we need to parse it to OptionalString.
300+
std::vector<OptionalString> vals;
299301
redis.hmget("hash", {"field1", "field2"}, std::back_inserter(vals));
300302

301303
// ***** SET commands *****

0 commit comments

Comments
 (0)