fixed cache sync
This commit is contained in:
parent
351148e435
commit
8ab3ddf725
1 changed files with 3 additions and 6 deletions
|
@ -77,8 +77,7 @@ public class ExamSessionCacheService {
|
||||||
@Cacheable(
|
@Cacheable(
|
||||||
cacheNames = CACHE_NAME_RUNNING_EXAM,
|
cacheNames = CACHE_NAME_RUNNING_EXAM,
|
||||||
key = "#examId",
|
key = "#examId",
|
||||||
unless = "#result == null",
|
unless = "#result == null")
|
||||||
sync = true)
|
|
||||||
public Exam getRunningExam(final Long examId) {
|
public Exam getRunningExam(final Long examId) {
|
||||||
|
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
|
@ -166,7 +165,6 @@ public class ExamSessionCacheService {
|
||||||
@Cacheable(
|
@Cacheable(
|
||||||
cacheNames = CACHE_NAME_SEB_CONFIG_EXAM,
|
cacheNames = CACHE_NAME_SEB_CONFIG_EXAM,
|
||||||
key = "#exam.id",
|
key = "#exam.id",
|
||||||
unless = "#result == null",
|
|
||||||
sync = true)
|
sync = true)
|
||||||
public InMemorySebConfig getDefaultSebConfigForExam(final Exam exam) {
|
public InMemorySebConfig getDefaultSebConfigForExam(final Exam exam) {
|
||||||
try {
|
try {
|
||||||
|
@ -181,7 +179,7 @@ public class ExamSessionCacheService {
|
||||||
|
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
log.error("Unexpected error while getting default exam configuration for running exam; {}", exam, e);
|
log.error("Unexpected error while getting default exam configuration for running exam; {}", exam, e);
|
||||||
return null;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,8 +195,7 @@ public class ExamSessionCacheService {
|
||||||
@Cacheable(
|
@Cacheable(
|
||||||
cacheNames = CACHE_NAME_PING_RECORD,
|
cacheNames = CACHE_NAME_PING_RECORD,
|
||||||
key = "#connectionToken",
|
key = "#connectionToken",
|
||||||
unless = "#result == null",
|
unless = "#result == null")
|
||||||
sync = true)
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public ClientEventRecord getPingRecord(final String connectionToken) {
|
public ClientEventRecord getPingRecord(final String connectionToken) {
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue