session: support memcache interface