private void loadRoleCache() {
        List<Role> roles = roleRepository.findAll();
        roleCache.invalidateAll();
        roles.forEach(item -> roleCache.put(item.getId(), item));
    }
getRolesByCategoryId

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