Adds support to collection using memcache.

This is the initial support to collections using memcache.