Molybden API
Loading...
Searching...
No Matches
http_cache.hpp
1// Copyright (c) 2000-2023 TeamDev Ltd. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_HTTP_CACHE_HPP
6#define MOLYBDEN_HTTP_CACHE_HPP
7
8#include <functional>
9#include <memory>
10
11namespace molybden {
12
13class Profile;
14
29class HttpCache {
30 public:
31 virtual ~HttpCache() = default;
32
36 virtual std::shared_ptr<Profile> profile() = 0;
37
44 virtual void clear(std::function<void()> callback) = 0;
45};
46
47} // namespace molybden
48
49#endif // MOLYBDEN_HTTP_CACHE_HPP
An HTTP cache service.
Definition http_cache.hpp:29
virtual std::shared_ptr< Profile > profile()=0
Returns the profile of this http cache.
virtual void clear(std::function< void()> callback)=0
Marks all the cache entries for deletion.