Molybden API
Loading...
Searching...
No Matches
molybden::HttpCache Class Referenceabstract

An HTTP cache service. More...

#include <http_cache.hpp>

Public Member Functions

virtual std::shared_ptr< Profileprofile ()=0
 Returns the profile of this http cache.
 
virtual void clear (std::function< void()> callback)=0
 Marks all the cache entries for deletion.
 

Detailed Description

An HTTP cache service.

By default HTTP cache stores the resources fetched from the web on a disk or in the memory. Chromium itself decides how to cache the resources for optimal performance.

The memory cache stores and loads the resources to and from the process memory – RAM. It is a fast but non-persistent way.

The disk cache is persistent. The cached resources are stored and loaded to and from the disk. The disk cache is stored in the Cache folder in the User Data directory.

Member Function Documentation

◆ clear()

virtual void molybden::HttpCache::clear ( std::function< void()>  callback)
pure virtual

Marks all the cache entries for deletion.

Parameters
callbackthe callback that is invoked when the whole cache is cleared.

The documentation for this class was generated from the following file: