Main Content

attach

Connect MATLAB session to persistence service that is already running

Description

attach(ctrl) connects a MATLAB® session to a persistence service that is already running.

example

Examples

collapse all

Attach MATLAB code to a persistence service.

Start a persistence service outside your MATLAB session from the system command line using mps-cache (MATLAB Production Server) or using the dashboard. Assuming your started the service using a connection name myOutsideRedisConnection at port 8899, attach your MATLAB session to it from the MATLAB desktop.

ctrl = mps.cache.control('myOutsideRedisConnection','Redis','Port',8899);
attach(ctrl)

Input Arguments

collapse all

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

Example: attach(ctrl)

Version History

Introduced in R2018b

See Also

| | |

Topics