Main Content

attach

Connect aMATLABsession to a persistence service that is already running

Syntax

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 or using the dashboard. Assuming your started the service using a connection namemyOutsideRedisConnectionat port8899, 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 amps.cache.Controllerobject.

Example:attach(ctrl)

See Also

|||

Topics

Introduced in R2018b