get the memorycache factory from OCP\Server instead of a cache instance

this allows apps to specify a prefix to use