@CacheEvict(value = "signonCache", key = "'petstore:signon:'+#user.username") public void update(@Valid Signon user) { dao.update(user); }
@Cacheable(value = "signonCache", key = "'petstore:signon:'+#username", unless = "#result==null") public Signon findByName(String username) { // return // dsl.selectFrom(SIGNON).where(SIGNON.USERNAME.eq(username)).fetchOne().into(Signon.class); return dao.fetchOneByUsername(username); }