This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Stop a persistence service and detach it from a MATLAB session





stop(ctrl) stops a persistence service represented by ctrl and detaches it from a current MATLAB® session.

  • You cannot stop a service that has not been started.

  • You can only stop a service that has been started using start.

  • Exiting MATLAB will automatically call stop on all persistence services that were started using start.


collapse all

Stop a persistence service.

First, create a persistence service controller object and use that object to start the persistence service. Once you have a persistence service running, you can then stop it.

ctrl = mps.cache.control('myRedisConnection','Redis','Port',4519);

Input Arguments

collapse all

Persistence service controller, represented as a mps.cache.Controller object.

Example: stop(ctrl)

Introduced in R2018b