JsonHttpClient with cache


I’m following instructions from GitHub - ServiceStackApps/HelloMobile: Mobile HTTP API examples of WPF, iOS, Android, UWP and OSX Clients to implement client with caching and ModernHttpClient, but there is no WithCache() extension method on JsonHttpClient.
Also, there is no CachedHttpClient class.
I have tried it in both PCL and Android projects with ServiceStack 4.0.60 version.

My project references:

My code:

Looks like the referencing to CachedHttpClient class was missing in the PCL project, I’ve also added the HttpClient project to ServiceStack.PCL solution in this commit.

This change is available from v4.0.61 that’s now available on MyGet.