detach
既に実行されている永続性サービスから MATLAB セッションを切断
説明
例
MATLAB コードの切断
永続性サービスから MATLAB コードを切断します。
まず、永続性サービス コントローラー オブジェクトを作成し、そのオブジェクトを使用して永続性サービスを開始します。永続性サービスが実行されたら、そのサービスに MATLAB コードを接続できます。その後、サービスからコードを切断できます。
ctrl = mps.cache.control('myRedisConnection','Redis','Port',4519); start(ctrl) attach(ctrl) detach(ctrl)
入力引数
ctrl
— サービス コントローラー
mps.cache.Controller
オブジェクト
永続性サービス コントローラー。mps.cache.Controller
オブジェクトとして表現します。
例: detach(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)