public ClientDto loadClientByClientId(String clientId) {
        RBucket<ClientDto> clientBucket = redisson.getBucket(clientRedisKey(clientId));
        ClientDto clientDto = clientBucket.get();
        if (clientDto != null) {
            return clientDto;
        }
        Client clientObj = clientService.loadClientByClientId(clientId);
        clientDto = BeanUtil.copyProperties(clientObj, ClientDto.class);
        clientBucket.set(clientDto);
        return clientDto;
    }
@author zlt
<p>
Blog: http://zlt2000.gitee.io
Github: https://github.com/zlt2000
zlt-uaa/src/main/java/com/central/oauth/service/impl/RegisteredClientService.java