private void loadCategoryCache() {
        List<Category> categories = categoryRepository.findAll();
        categoryCache.invalidateAll();
        categories.forEach(category -> categoryCache.put(category.getId(), category));
    }
getRolesByCategoryId

@param categoryId categoryId
@return List
src/main/java/com/tuituidan/openhub/service/CacheService.java