cache_discard_policy.h
Go to the documentation of this file.
/*
* Copyright (C) 2015 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Michi Henning <michi.henning@canonical.com>
*/
#pragma once
namespace core
{
enum class CacheDiscardPolicy
{
lru_ttl,
lru_only
};
} // namespace core
core
Top-level namespace for core functionality.
Definition cache_codec.h:24
core::CacheDiscardPolicy
CacheDiscardPolicy
Indicates the discard policy to make room for entries when the cache is full.
Definition cache_discard_policy.h:36
core::CacheDiscardPolicy::lru_only
@ lru_only
Evict in LRU order.
Definition cache_discard_policy.h:38
core::CacheDiscardPolicy::lru_ttl
@ lru_ttl
Evict expired entries first, followed by eviction in LRU order.
Definition cache_discard_policy.h:37