Skip to content

Commit

Permalink
fix #139: edit cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-yhc committed Nov 18, 2023
1 parent 4eda65e commit fb5ed09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.Optional;

public interface ABTestUserGroupRepository extends JpaRepository<ABTestUserGroup, Long> {
@Cacheable(value = "ab_test_user_group", key = "#p0 +'::'+ #p1")
@Cacheable(value = "ab_test_user_group", key = "#p1.concat(':').concat(#p0)")
@Query("select a.groupName from ABTestUserGroup a where a.memberId = ?1 and a.testName = ?2")
Optional<String> findGroupNameByMemberIdAndTestName(Long memberId, String testName);

Expand Down

0 comments on commit fb5ed09

Please sign in to comment.