From: Joel Rosdahl Date: Mon, 28 Jun 2021 05:18:12 +0000 (+0200) Subject: Improve SecondaryStorage comments X-Git-Tag: v4.4~177 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42c8860f7733a9e63d0d4b81f6ef5dc1e557562c;p=thirdparty%2Fccache.git Improve SecondaryStorage comments --- diff --git a/src/storage/SecondaryStorage.hpp b/src/storage/SecondaryStorage.hpp index bb667f64b..ce8c373fe 100644 --- a/src/storage/SecondaryStorage.hpp +++ b/src/storage/SecondaryStorage.hpp @@ -40,20 +40,20 @@ public: virtual ~SecondaryStorage() = default; - // Get value associated with `key`. Returns the value on success, - // nonstd::nullopt if entry is not present. + // Get the value associated with `key`. Returns the value on success or + // nonstd::nullopt if the entry is not present. virtual nonstd::expected, Error> get(const Digest& key) = 0; // Put `value` associated to `key` in the storage. A true `only_if_missing` is // a hint that the value does not have to be set if already present. Returns - // true if the entry was stored or false if the entry wasn't stored. + // true if the entry was stored, otherwise false. virtual nonstd::expected put(const Digest& key, const std::string& value, bool only_if_missing = false) = 0; - // Remove `key` and its associated value. Return true if the entry was - // removed. + // Remove `key` and its associated value. Returns true if the entry was + // removed, otherwise false. virtual nonstd::expected remove(const Digest& key) = 0; };