Generate Json::Value for this object
| 98 | |
| 99 | // Generate Json::Value for this object |
| 100 | Json::Value CacheBase::JsonValue() { |
| 101 | |
| 102 | // Create root json object |
| 103 | Json::Value root; |
| 104 | root["max_bytes"] = std::to_string(max_bytes); |
| 105 | |
| 106 | // return JsonValue |
| 107 | return root; |
| 108 | } |
| 109 | |
| 110 | // Load Json::Value into this object |
| 111 | void CacheBase::SetJsonValue(const Json::Value root) { |
nothing calls this directly
no outgoing calls
no test coverage detected