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

Method GetData

RedisStudio/SSDB/SSDBQueueModel.cpp:10–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10bool SSDBQueueModel::GetData( const std::string& key, RedisResult& results )
11{
12 results.NewColumn("Value");
13 std::vector<std::string> values ;
14 if (GetClient()->qslice(key, 0, 20000, &values).ok())
15 {
16 for (std::size_t idx=0; idx<values.size(); ++idx)
17 {
18 results.NewRow();
19 string& myvalue = results.Value(results.RowSize()-1, 0);
20 myvalue = values[idx];
21 }
22 }
23 else
24 {
25 return false;
26 }
27
28 return true;
29}
30
31bool SSDBQueueModel::UpdateData( const std::string& key,
32 const std::string& oldValue,

Callers

nothing calls this directly

Calls 7

NewColumnMethod · 0.80
okMethod · 0.80
qsliceMethod · 0.80
NewRowMethod · 0.80
ValueMethod · 0.80
RowSizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected