cache can use a general localCache key; clear method is added to cache,
clearing both the in-memory and localStorage cache