Click or drag to resize

IHttpCache Interface

An HTTP cache service.

Namespace:  DotNetBrowser.Cache
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.19.0
Syntax
C#
public interface IHttpCache : IAutoDisposable

The IHttpCache type exposes the following members.

Properties
  NameDescription
Public propertyEngine
Gets the IEngine instance associated with this object.
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyProfile
Gets the IProfile instance associated with this object.
Top
Methods
  NameDescription
Public methodClear
Marks all the cache entries for deletion. The deletion of the entries is performed asynchronously by the Chromium engine itself. If the engine is closed during this task executing - the operation will be canceled.
Top
Events
  NameDescription
Public eventDiskCacheCleared
Occurs when the disk cache has been cleared.
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Top
Remarks

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 HttpCache folder in the User Data directory.

See Also