Redis for HTTP Session caching

121 views
Skip to first unread message

kavan somanna

unread,
Jun 14, 2017, 3:43:20 PM6/14/17
to Redis DB
Hi,

We have a requirement to cache HTTP session using a caching solution for a JAVA based application, i wanted to know if Redis supports the same? If 'Yes' can you point me to any documentation?

Thanks,
Som

hva...@gmail.com

unread,
Jun 14, 2017, 11:41:46 PM6/14/17
to Redis DB
Redis functions as a nice cache, but it does not have any built-in features specific to HTTP sessions.  A Java class/module would need to do that.

A google search for:
java redis "http session"

shows a number of blogs and Q&A sites describing how to use Spring to store session data in Redis.

Anton Bessonov

unread,
Jun 15, 2017, 11:57:10 AM6/15/17
to redi...@googlegroups.com
Hi Som,

if you use Spring, then you can try Spring Session [1]. It supports also other backends. If not, well, then you can try session manager implementation for your servlet container. For Tomcat see memcached session manager [2]. It supports redis too [3].

[1] http://projects.spring.io/spring-session/
[2] https://github.com/magro/memcached-session-manager
[3] https://github.com/magro/memcached-session-manager/wiki/SetupAndConfiguration#example-for-non-sticky-sessions--kryo--redis

Best regards,
Anton
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.


-- 
Certified Prince2:2009 Project Manager
Professional Scrum Expert
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer

Now that's a test of the character of an organization.
Of the organizations that are attempting to implement
Scrum probably, 30% - 35% will successfully implement it.
- Ken Schwaber
Reply all
Reply to author
Forward
0 new messages