Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Commit

Permalink
Make cache handling static
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulsom committed Sep 6, 2016
1 parent f534310 commit 749a7c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/groovy/util/AppUtil.groovy
Expand Up @@ -44,7 +44,7 @@ class AppUtil {
* @param closure The eval for cached value
* @return The value
*/
public <T> T getCachedValue(
public static <T> T getCachedValue(
String cacheName,
Expiration expiration = Expiration.byDeltaMillis(HOUR),
Closure<T> closure
Expand All @@ -71,7 +71,7 @@ class AppUtil {
* Evicts value from cache
* @param cacheName name of cached value
*/
void evictCache(String cacheName) {
static void evictCache(String cacheName) {
AsyncMemcacheService asyncCache = MemcacheServiceFactory.asyncMemcacheService
asyncCache.setErrorHandler(ErrorHandlers.getConsistentLogAndContinue(Level.INFO))

Expand Down

0 comments on commit 749a7c4

Please sign in to comment.