azizkhani.net

I know that I know nothing

how to set redis key time out (spring session timeout) maxInactiveInterval

clock October 6, 2015 20:22 by author Administrator

 

when using spring session in a container when http session is time out session or key that store in redis dose not time out for solve this problem and set timeout or that config like this code 


<beanclass="org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration"p:maxInactiveIntervalInSeconds="180"/>



MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk

clock September 5, 2015 20:12 by author Administrator

 

after i run redis in docker and config my spring security and spring session when i login to application . i see that i can not login and get ths exception

org.springframework.dao.InvalidDataAccessApiUsageException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.;nested exception is redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

after search in intenet i know that i dont run redis in persist state and i run docker with this command

 docker run -d -p 6379:6379 -v /azizkhani/Java/pdf/redis --name redis_c_p redis



About the author

 Welcome to this web site . This page has two purposes: Sharing information about my professional life such as articles, presentations, etc.
This website is also a place where I would like to share content I enjoy with the rest of the world. Feel free to take a look around, read my blog


Java,J2EE,Spring Framework,JQuery,

Hibernate,NoSql,Cloud,SOA,Rest WebService and Web Stack tech...

RecentPosts

Month List

Sign In