Interface CacheService
-
public interface CacheService
Cache service allowing to get all, clear and clear all caches
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear(java.util.List<java.lang.String> cacheNames)
Clears a list of cachesvoid
clearAll()
Clears all caches of the current scopejava.util.List<java.lang.String>
getAll()
Gets all caches of the current scope
-
-
-
Method Detail
-
getAll
java.util.List<java.lang.String> getAll() throws com.flower.docs.domain.exception.TechnicalException, com.flower.docs.domain.exception.FunctionalException
Gets all caches of the current scope- Returns:
- A list containing all caches names
- Throws:
com.flower.docs.domain.exception.FunctionalException
- If a functional error occurredcom.flower.docs.domain.exception.TechnicalException
- If a technical error occurred
-
clear
void clear(java.util.List<java.lang.String> cacheNames) throws com.flower.docs.domain.exception.TechnicalException, com.flower.docs.domain.exception.FunctionalException
Clears a list of caches- Parameters:
cacheNames
- A list containing the names of all caches to delete- Throws:
com.flower.docs.domain.exception.FunctionalException
- If a functional error occurredcom.flower.docs.domain.exception.TechnicalException
- If a technical error occurred
-
clearAll
void clearAll() throws com.flower.docs.domain.exception.TechnicalException, com.flower.docs.domain.exception.FunctionalException
Clears all caches of the current scope- Throws:
com.flower.docs.domain.exception.FunctionalException
- If a functional error occurredcom.flower.docs.domain.exception.TechnicalException
- If a technical error occurred
-
-