added cache adapter for memcache, added database and cache examples to heartbeat controller