/kankicache

Kanki Cache

Primary LanguageC#MIT LicenseMIT

kankicache

kankicache

Kanki Cache

NuGet version Build Status


How to use ?

Install kankicache

Install-Package kankicache

or

dotnet add package kankicache

Import Project

using kankicache;

Has Value

KankiCache.HasValue("keyname");

Add Value (Default Expiration: 1 Hour)

KankiCache.AddValue("keyname", "value-test");

Add Value With Expiration (Expiration Parameter Type: Minute)

KankiCache.AddValueWithExpiration("keyname", "value-test", 10); // 10 minute expiration

Get Value

KankiCache.GetValue("keyname");

Remove Value

KankiCache.RemoveValue("keyname");