attach
既に実行されている永続性サービスに MATLAB セッションを接続
説明
例
永続性サービスへの MATLAB セッションの接続
MATLAB コードを永続性サービスに接続します。
システムのコマンド ラインから mps-cache
を使用するかダッシュボードを使用して、MATLAB セッションの外部で永続性サービスを開始します。接続名 myOutsideRedisConnection
を使用してポート 8899
でサービスを開始したと仮定し、それに MATLAB セッションを MATLAB デスクトップから接続します。
ctrl = mps.cache.control('myOutsideRedisConnection','Redis','Port',8899); attach(ctrl)
入力引数
ctrl
— サービス コントローラー
mps.cache.Controller
オブジェクト
永続性サービス コントローラー。mps.cache.Controller
オブジェクトとして表現します。
例: attach(ctrl)
バージョン履歴
R2018b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)