@GetMapping(value = "/cache/{username}", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Display cached attributes in the attribute repository for user. If attributes are found in the cache, they are returned. "
        + "Otherwise, attribute repositories will be contacted to fetch and cache person attributes again",
        parameters = @Parameter(name = "username", required = true, in = ParameterIn.PATH, description = "The username to look up"))
    public PersonAttributes showCachedAttributesFor(@PathVariable("username") final String username) {
        val cachingRepository = getCachingPersonAttributeDao();
        return cachingRepository.getPerson(username);
    }
Show cached attributes for person.

@param username the username
@return the person attributes
support/cas-server-support-person-directory-core/src/main/java/org/apereo/cas/web/report/CasPersonDirectoryEndpoint.java