// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_FEED_CORE_V2_PUBLIC_PERSISTENT_KEY_VALUE_STORE_H_ #define COMPONENTS_FEED_CORE_V2_PUBLIC_PERSISTENT_KEY_VALUE_STORE_H_ #include <memory> #include <optional> #include <string> #include "base/functional/callback.h" namespace feed { // A generic persistent key-value cache. Has a maximum size determined by // `feed::Config`. Once size of all values exceed the maximum, older keys // are eventually evicted. Key age is determined only by the last call to // `Put()`. class PersistentKeyValueStore { … }; } // namespace feed #endif // COMPONENTS_FEED_CORE_V2_PUBLIC_PERSISTENT_KEY_VALUE_STORE_H_