Main Content

detach

Disconnect MATLAB session from persistence service that is already running

Description

detach(ctrl) disconnects MATLAB® session from a persistence service that is already running.

example

Examples

collapse all

Disconnect MATLAB code from 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 connect MATLAB code to it. You can then disconnect the code from the service.

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

Input Arguments

collapse all

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

Example: detach(ctrl)

Version History

Introduced in R2018b