JedisのmaxInactiveIntervalInSeconds
943 ワード
JedisのmaxInactiveIntervalInSeconds
public class RedisOperationsSessionRepository implements
FindByIndexNameSessionRepository,
MessageListener {
...
...
...
/** key ,
* Sets the maximum inactive interval in seconds between requests before newly created
* sessions will be invalidated. A negative time indicates that the session will never
* timeout. The default is 1800 (30 minutes).
* , key , 1800
* @param defaultMaxInactiveInterval the number of seconds that the {@link Session}
* should be kept alive between client requests.
*/
public void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval) {
// 1800
this.defaultMaxInactiveInterval = defaultMaxInactiveInterval;
}
...
...
}