diff options
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 158fae80..bdd7d405 100644 --- a/src/main/java/com/juick/service/EmailService.java +++ b/src/main/java/com/juick/service/EmailService.java @@ -19,12 +19,15 @@ package com.juick.service; import com.juick.model.User; +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); |