| 49 | } |
| 50 | |
| 51 | Json::Value Cache::DumpEntries() |
| 52 | { |
| 53 | Json::Value entries = Json::arrayValue; |
| 54 | |
| 55 | std::vector<std::string> names = this->State->GetCacheEntryKeys(); |
| 56 | std::sort(names.begin(), names.end()); |
| 57 | |
| 58 | for (std::string const& name : names) { |
| 59 | entries.append(this->DumpEntry(name)); |
| 60 | } |
| 61 | |
| 62 | return entries; |
| 63 | } |
| 64 | |
| 65 | Json::Value Cache::DumpEntry(std::string const& name) |
| 66 | { |