See the test folder for test cases / scenarios and usage
API - Simple Cache
Simple Cache is key-value caching for number, string and object values
It exposes the following functions: setCache, getCache, deleteCache and
clearCache
API - Hash Cache
Hash Cache: hash-key-value storage for caching number, string and object
values
It exposes the following functions: setHashCache, getHashCache,
deleteHashCache and clearHashCache
Usage
// simple-cacheimport{
deleteCache,
getCache,
setCache,}from"https://deno.land/x/mccache@v0.2.2/mod.ts";// hash-cacheimport{
deleteHashCache,
getHashCache,
setHashCache,}from"https://deno.land/x/mccache@v0.2.2/mod.ts";// See the test folder for different test cases / scenarios and usage