Since added cached values are deferred until the end of the request, all cached values will use the last instance values that are set on the memcache module.
The correct solution should create one module per instance and add convenience methods that also have an instance parameter.
This doesn't affect any known code yet but might be an issue in the future.