for (Annotation annotation : annotations) {
Class<? extends Annotation> annotationType = annotation.annotationType();
if (annotationType.equals(Cache.class)) {
Cache cache = (Cache) annotation;
isCachable = true;
keyPattern = cache.keyPattern();
expire = cache.expire();
isPagination = cache.pagination();
categoryType = cache.type();
isGenericCache = isCategoryTypeGeneric(categoryType);
}