MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
启动持久性服务并将其连接到 MATLAB 会话
start(ctrl)
start(ctrl) 用于启动 ctrl 所表示的持久性服务,并将其连接到当前 MATLAB® 会话。
ctrl
要使持久性服务在 MATLAB 会话中可用,必须启动该服务,然后将其连接到相关 MATLAB 会话。start 可执行这两个操作。
start
如果持久性服务已启动,则无需调用 start。请改用 attach。
attach
start 和 stop、attach 和 detach 必须成对使用。
stop
detach
如果您使用 start 将持久性服务连接到 MATLAB 会话,则必须使用 stop 断开连接。
如果您使用 attach 建立连接,则必须使用 detach 断开连接。
示例
全部折叠
首先,创建一个持久性服务控制器对象并使用该对象启动持久性服务。
ctrl = mps.cache.control('myRedisConnection','Redis','Port',4519); start(ctrl)
mps.cache.Controller
持久性服务控制器,以 mps.cache.Controller 对象形式表示。
示例: start(ctrl)
全部展开
Redis™ 支持这些产品中的数据持久化功能。请改为提供您自己的 Redis 持久性服务。受影响的函数包括 start、stop 和 restart。
restart
stop | restart | attach | detach
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处