Class GeoCodeCacheService
- java.lang.Object
-
- fr.paris.lutece.portal.service.cache.AbstractCacheableService
-
- fr.paris.lutece.plugins.geocodes.service.cache.GeoCodeCacheService
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService,fr.paris.lutece.portal.service.util.LuteceService,java.lang.Cloneable,net.sf.ehcache.event.CacheEventListener
public final class GeoCodeCacheService extends fr.paris.lutece.portal.service.cache.AbstractCacheableService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetFromCitiesCodesByDateInCache(java.lang.String strKey)java.lang.ObjectgetFromCityCache(java.lang.String strKey)java.lang.ObjectgetFromCountryCache(java.lang.String strKey)static GeoCodeCacheServicegetInstance()Get the instance of CalendarCacheServicejava.lang.StringgetName()Get the service namevoidputCitiesCodesByDateInCache(java.lang.String strKey, java.lang.Object object)voidputCityInCache(java.lang.String strKey, java.lang.Object object)voidputCountryInCache(java.lang.String strKey, java.lang.Object object)voidremoveCache(java.lang.String strKey)Remove the cache by a key-
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
-
-
-
-
Method Detail
-
getInstance
public static GeoCodeCacheService getInstance()
Get the instance of CalendarCacheService- Returns:
- an instance of CalendarCacheService
-
getName
public java.lang.String getName()
Get the service name- Returns:
- the service name
-
putCityInCache
public void putCityInCache(java.lang.String strKey, java.lang.Object object)
-
putCitiesCodesByDateInCache
public void putCitiesCodesByDateInCache(java.lang.String strKey, java.lang.Object object)
-
putCountryInCache
public void putCountryInCache(java.lang.String strKey, java.lang.Object object)
-
getFromCityCache
public java.lang.Object getFromCityCache(java.lang.String strKey)
-
getFromCitiesCodesByDateInCache
public java.lang.Object getFromCitiesCodesByDateInCache(java.lang.String strKey)
-
getFromCountryCache
public java.lang.Object getFromCountryCache(java.lang.String strKey)
-
removeCache
public void removeCache(java.lang.String strKey)
Remove the cache by a key- Parameters:
strKey- the cache key
-
-