Skip to content

nurhat/Tavis.PrivateCache

 
 

Repository files navigation

Tavis.PrivateCache

This library is an implementation of a HTTP private cache. It is designed to be plugged into the System.Net.Http.HttpClient class as a message handler.

         var httpCache = new HttpCache(new InMemoryContentStore());
         var cachingHandler = new PrivateCacheHandler(httpClientHandler, httpCache);
         var client = new HttpClient(cachingHandler);

The objective of this library is to implement all the functionality described by the httpbis caching spec, that is applicable to private caches.

The motivation for this library was to provide a PCL compatible replacement for WinInetProxy cache and fix the parts of that library that do not work.

The caching logic and the storage mechanism are separated to allow different storage options. Currently there is only an in-memory store. A file based store is high on the list of priorities.

About

Private HTTP Cache handler for HttpClient

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%