4 #include "IAssetRequest.h"
29 virtual std::optional<CacheItem>
getEntry(
const std::string& key)
const = 0;
47 const std::string& key,
48 std::time_t expiryTime,
49 const std::string& url,
50 const std::string& requestMethod,
54 const gsl::span<const std::byte>& responseData) = 0;
Provides database storage interface to cache completed request.
virtual bool clearAll()=0
Removes all cache entries from the database.
virtual bool prune()=0
Remove cache entries from the database to satisfy the database invariant condition (....
virtual std::optional< CacheItem > getEntry(const std::string &key) const =0
Gets a cache entry from the database.
virtual bool storeEntry(const std::string &key, std::time_t expiryTime, const std::string &url, const std::string &requestMethod, const HttpHeaders &requestHeaders, uint16_t statusCode, const HttpHeaders &responseHeaders, const gsl::span< const std::byte > &responseData)=0
Store a cache entry in the database.
Classes that support asynchronous operations.
std::map< std::string, std::string, CaseInsensitiveCompare > HttpHeaders
Http Headers that maps case-insensitive header key with header value.