forked from magro/memcached-session-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
magro edited this page Sep 13, 2010
·
1 revision
Why is it not implemented as Store for tomcats PersistentManagerBase?
The Store interface defines methods getSize(), keys() and clear() – these cannot be implemented with memcached.
Also PersistentManagerBase backups all sessions in batches (processMaxIdleBackups() is called by the background thread after active sessions have been checked for expiration). If each session shall be up to date in the store, all sessions would be sent to memcached again and again.
The memcached-session-manager instead backups a session after the request was finished, so only sessions that were (potentially) modified are sent to memcached.