jcoleman / tomcat-redis-session-manager

Redis-backed non-sticky session store for Apache Tomcat
MIT License
1.8k stars 1.12k forks source link

This CreateSession() will create a key that never expires #105

Closed eoc2015 closed 6 years ago

eoc2015 commented 6 years ago

每天都会积累很多ttl=-1的key,所以我只有把CreateSession方法里的setnx改成.set(key, value, nxxx, expx, time)来替代了