use of org.killbill.billing.util.security.shiro.dao.RedisSessionDao in project killbill by killbill.
the class SessionDAOProvider method get.
@Override
public SessionDAO get() {
final CachingSessionDAO sessionDao;
if (redisCacheConfig.isRedisCachingEnabled()) {
sessionDao = new RedisSessionDao();
} else {
sessionDao = new JDBCSessionDao(dbi, roDbi);
}
if (sessionManager instanceof DefaultSessionManager) {
final DefaultSessionManager defaultSessionManager = (DefaultSessionManager) sessionManager;
defaultSessionManager.setSessionDAO(sessionDao);
defaultSessionManager.setGlobalSessionTimeout(rbacConfig.getGlobalSessionTimeout().getMillis());
}
return sessionDao;
}
Aggregations