diff options
author | Vitaly Takmazov | 2019-08-05 10:49:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-08-05 10:49:20 +0300 |
commit | 17578516fe0978602ddfac56055cfb1d1b2e0121 (patch) | |
tree | 6573d8fcf9b24294952817f9771399e2faa6c9dd /src/main/java/com/juick/service/EmailService.java | |
parent | 82cbd49555a723f91ed3684a64debeade9c0b3f8 (diff) |
Evict caches on user changes, fix tests
Diffstat (limited to 'src/main/java/com/juick/service/EmailService.java')
-rw-r--r-- | src/main/java/com/juick/service/EmailService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/EmailService.java b/src/main/java/com/juick/service/EmailService.java index 0708cd96..26f26d59 100644 --- a/src/main/java/com/juick/service/EmailService.java +++ b/src/main/java/com/juick/service/EmailService.java @@ -17,12 +17,15 @@ package com.juick.service; +import org.springframework.cache.annotation.CacheEvict; + import java.util.List; /** * Created by vitalyster on 09.12.2016. */ public interface EmailService { + @CacheEvict(value = "users_by_name", allEntries = true) boolean verifyAddressByCode(Integer userId, String code); boolean addVerificationCode(Integer userId, String account, String code); boolean addEmail(Integer userId, String email); |