public CacheStringResponse KeyDelete(string cacheKey) { var cacheResponse = new CacheStringResponse(); EnsureValuesDictionaryExists(); if (ObjectValues.ContainsKey(cacheKey)) { ObjectValues.Remove(cacheKey); } cacheResponse.Stop(); return(cacheResponse); }
public CacheStringResponse StringSet(string cacheKey, string value) { var cacheResponse = new CacheStringResponse(); EnsureValuesDictionaryExists(); if (ObjectValues.ContainsKey(cacheKey)) { ObjectValues[cacheKey] = value; } else { ObjectValues.Add(cacheKey, value); } cacheResponse.Stop(); return(cacheResponse); }