 |
Kea
1.5.0
|
Go to the documentation of this file.
6 #ifndef CACHE_HOST_DATA_SOURCE_H
7 #define CACHE_HOST_DATA_SOURCE_H
48 virtual void flush(
size_t count) = 0;
53 virtual size_t size()
const = 0;
67 #endif // CACHE_HOST_DATA_SOURCE_H
virtual ~CacheHostDataSource()
Default destructor implementation.
boost::shared_ptr< Host > HostPtr
Pointer to the Host object.
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual size_t capacity() const =0
Return the maximum number of entries.
virtual bool remove(const HostPtr &host)=0
Remove a host from the cache.
Base interface for the classes implementing simple data source for host reservations.
boost::shared_ptr< CacheHostDataSource > CacheHostDataSourcePtr
CacheHostDataSource pointer.
Abstract interface extending base simple data source for host reservations to host cache.
virtual size_t size() const =0
Return the number of entries.
boost::shared_ptr< const Host > ConstHostPtr
Const pointer to the Host object.
virtual size_t insert(const ConstHostPtr &host, bool overwrite)=0
Insert a host into the cache.
virtual void flush(size_t count)=0
Flush entries.