Cache.setProperty(cacheKey, delimitedCacheString);
}
+ /**
+ * Method for deleted cached items for a given cache key
+ *
+ * @param cacheKey
+ */
public void deleteCacheItems(String cacheKey)
{
cacheItems.put(cacheKey, new LinkedHashSet<String>());
persistCache(cacheKey);
}
+ /**
+ * Method for obtaining the preset maximum cache limit for a given cache key
+ *
+ * @param cacheKey
+ * @return
+ */
public String getCacheLmit(String cacheKey)
{
String uniqueKey = cacheKey + DEFAULT_LIMIT_KEY;
return Cache.getDefault(uniqueKey, DEFAULT_LIMIT);
}
+ /**
+ * Method for updating the preset maximum cache limit for a given cache key
+ *
+ * @param cacheKey
+ * @param newLimit
+ * @return
+ */
public int updateCacheLimit(String cacheKey, String newLimit)
{
String uniqueKey = cacheKey + DEFAULT_LIMIT_KEY;