fr.paris.lutece.plugins.dila.utils
Class CacheKeyUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.utils.CacheKeyUtils

public final class CacheKeyUtils
extends Object

Class used to generate and decode cache key


Method Summary
static String generateCacheKey(Long lCategoryId, String strCardId)
          Generate cache key
static String getCardIdFromCacheKey(String strKey)
          Get card id part of cache key
static Long getCategoryFromCacheKey(String strKey)
          Get category part of cache key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateCacheKey

public static String generateCacheKey(Long lCategoryId,
                                      String strCardId)
Generate cache key

Parameters:
lCategoryId - the category id
strCardId - the card id
Returns:
the generated key

getCategoryFromCacheKey

public static Long getCategoryFromCacheKey(String strKey)
Get category part of cache key

Parameters:
strKey - the key to split
Returns:
the category id of cache key

getCardIdFromCacheKey

public static String getCardIdFromCacheKey(String strKey)
Get card id part of cache key

Parameters:
strKey - the key to split
Returns:
the card id of cache key


Copyright © 2014 Mairie de Paris. All Rights Reserved.