- String separatedStr = Cache.getProperty(cacheable.getCacheKey());
- if (separatedStr == null || separatedStr.isEmpty())
- {
- return;
- }
-
- List<String> persistedCacheItems = Arrays.asList(separatedStr.split(CACHE_DELIMITER));
- String cacheKey = cacheable.getCacheKey();
-
- LinkedHashSet<String> foundCacheItems = cacheItems.get(cacheKey);
- if (foundCacheItems == null)
- {
- foundCacheItems = new LinkedHashSet<String>();
- }
+ cacheItems.put(cacheKey, new LinkedHashSet<String>());
+ persistCache(cacheKey);
+ }