MCPcopy Create free account
hub / github.com/cinience/RedisStudio / GetData

Method GetData

RedisStudio/SSDB/SSDBStringModel.cpp:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10bool SSDBStringModel::GetData( const std::string& key, RedisResult& results )
11{
12 std::string val;
13 if (GetClient()->get(key, &val).ok())
14 {
15 results.NewColumn("Value");
16 results.NewRow();
17 string& myvalue = results.Value(results.RowSize()-1, 0);
18 myvalue = val;
19 return true;
20 }
21 else
22 {
23 return false;
24 }
25 return true;
26}
27
28bool SSDBStringModel::UpdateData( const std::string& key,
29 const std::string& oldValue,

Callers

nothing calls this directly

Calls 6

okMethod · 0.80
NewColumnMethod · 0.80
NewRowMethod · 0.80
ValueMethod · 0.80
RowSizeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected