Examples of ExpiringSession


Examples of org.springframework.session.ExpiringSession

        return result;
    }

    @Override
    public void delete(String sessionId) {
        ExpiringSession session = getSession(sessionId, true);
        if(session == null) {
            return;
        }

        String key = getKey(sessionId);
View Full Code Here

Examples of org.springframework.session.ExpiringSession

        new RedisOperationsSessionRepository(null);
    }

    @Test
    public void createSessionDefaultMaxInactiveInterval() throws Exception {
        ExpiringSession session = redisRepository.createSession();
        assertThat(session.getMaxInactiveInterval()).isEqualTo(new MapSession().getMaxInactiveInterval());
    }
View Full Code Here

Examples of org.springframework.session.ExpiringSession

    @Test
    public void createSessionCustomMaxInactiveInterval() throws Exception {
        int interval = 1;
        redisRepository.setDefaultMaxInactiveInterval(interval);
        ExpiringSession session = redisRepository.createSession();
        assertThat(session.getMaxInactiveInterval()).isEqualTo(interval);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.