public Boolean containsKey(String key)
        {
            if (!enabled) return false;
            if (mainCache.containsKey(key)) return true;
            if (useBuffer && mainCache.containsKey(key)) return true;
            return false;
        }