M: amendment about memcached's session
R: refactored checking memcached's instance