$cache is of type \OC\Memcache\Cache - should be documented accordingly