Skip to content

Commit

Permalink
SAK-33680 newCache => getCache (sakaiproject#5064)
Browse files Browse the repository at this point in the history
  • Loading branch information
axxter99 authored and buckett committed Dec 4, 2017
1 parent 855a2e1 commit 9ea6412
Showing 1 changed file with 5 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@
import java.util.Date;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sakaiproject.event.api.Event;
import org.sakaiproject.memory.api.Cache;
import org.sakaiproject.memory.api.CacheRefresher;
import org.sakaiproject.memory.api.MemoryService;
import org.sakaiproject.signup.dao.SignupMeetingDao;
import org.sakaiproject.signup.model.SignupMeeting;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* <p>
Expand All @@ -58,8 +56,7 @@
*
*/

public class SignupCacheServiceImpl implements SignupCacheService,
CacheRefresher {
public class SignupCacheServiceImpl implements SignupCacheService {

private MemoryService memoryService;

Expand All @@ -78,15 +75,15 @@ public void init() {
try {
// The other parameters are not needed for this cache
m_signupSiteCache = memoryService
.newCache("org.sakaiproject.signup.logic.siteCache");
.getCache("org.sakaiproject.signup.logic.siteCache");
if (m_instance == null) {
m_instance = this;
}

if (M_log.isDebugEnabled()) {
M_log.debug(this + ".init()");
}
} catch (Throwable t) {
} catch (Exception t) {
M_log.warn(this + "init(): ", t);
}
}
Expand Down Expand Up @@ -172,16 +169,6 @@ public void destroy() {
M_log.info("destroy()");
}

/**
* {@inheritDoc}
*/
public Object refresh(Object key, Object oldValue, Event event) {
/*
* instead of refreshing when an entry expires, let it go and we'll get
* it again if needed
*/
return null;
}

public MemoryService getMemoryService() {
return memoryService;
Expand Down

0 comments on commit 9ea6412

Please sign in to comment.