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.

attach

Connect a MATLAB session to a persistence service that is already running

Syntax

attach(ctrl)

Description

example

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

Examples

collapse all

Attach MATLAB code to a persistence service.

Start a persistence service outside your MATLAB session from system command line using mps-cache 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 MATLABdesktop.

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)

Introduced in R2018b