Xamarin.CustomCache 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Xamarin.CustomCache --version 1.0.0
NuGet\Install-Package Xamarin.CustomCache -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xamarin.CustomCache" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.CustomCache --version 1.0.0
#r "nuget: Xamarin.CustomCache, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin.CustomCache as a Cake Addin
#addin nuget:?package=Xamarin.CustomCache&version=1.0.0

// Install Xamarin.CustomCache as a Cake Tool
#tool nuget:?package=Xamarin.CustomCache&version=1.0.0

CustomCache

A Shared Xamarin component for Caching custom data on to disk

Usage:

    using Subsystems.Cache.External;
    ....
    ....
    
    var cachedFolderPathString = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
    var cacheProxy = new CMPCacheProxy(cachedFolderPathString, 5 * 1024); // sizeLimitInKB = 5MB
    cacheProxy.ExpiryDays(7); // Cache will invalidate after 7 days from Creation or Last Update

    string cacheString = null;				
    byte[] retrievedBytes = cacheProxy.RetieveItem("testfile81");
    if (retrievedBytes != null)
    {
        cacheString = System.Text.Encoding.UTF8.GetString(retrievedBytes);
        Console.WriteLine("cacheString:" + cacheString);
    }
    else
    {

        cacheString = "Test String38";
        byte[] cacheBytes = System.Text.Encoding.UTF8.GetBytes(cacheString);
        cacheProxy.CacheItem(cacheBytes, "testfile81");

    }
Product Compatible and additional computed target framework versions.
MonoAndroid monoandroid81 is compatible. 
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • MonoAndroid 8.1

    • No dependencies.
  • Xamarin.iOS 1.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Xamarin.CustomCache:

Package Downloads
Xamarin.ImageLoader

A Reusable component to Download Image directly from URL. This also supportes Caching the downloaded images efficiently

Xamarin.CustomImageView.iOS

A custom ImageView component for iOS with inteligent Caching, Handle Cache expiry, Automatic Download

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 1,148 11/9/2018
1.0.3 687 10/22/2018
1.0.2 823 8/1/2018
1.0.1 761 8/1/2018
1.0.0 774 8/1/2018

1. Initial version for Custom Cache
2. Ready for remote push