See parent task. This is a bug against core, bugs for extensions, if needed, should be subtasks of this one.
- Soft deprecate in 1.35.
- Remove usage in core and in bundled/wmf extensions.
- Remove in 1.36.
See also T243336: Migrate use of $wgMemc in extensions not bundled with core or otherwise maintained by WMF