mps.cache.Controller
MATLAB 테스트 환경에서 영속성 서비스의 라이프사이클 관리
향후 릴리스부터 Redis™는 더 이상 MATLAB® Production Server™ 및 MATLAB Compiler SDK™와 함께 제공되지 않습니다. Redis는 이러한 제품의 데이터 영속성 기능을 지원합니다. 대신 자체 Redis 영속성 서비스를 제공하십시오. 영향을 받는 함수에는 start
, stop
, restart
가 포함됩니다.
설명
mps.cache.Controller
는 MATLAB 테스트 환경에서 영속성 서비스의 라이프사이클을 관리하는 데 사용됩니다. 객체를 사용하여 서비스 시작과 중지 등 다양한 동작을 수행할 수 있습니다.
생성
mps.cache.control
을 사용하여 mps.cache.Controller
객체를 만듭니다.
속성
객체 함수
mps.cache.control | Create a persistence service controller object |
start | Start a persistence service and attach it to a MATLAB session |
stop | Stop a persistence service and detach it from a MATLAB session |
restart | 영속성 서비스를 다시 시작하고 이를 MATLAB 세션에 연결합니다. |
attach | Connect MATLAB session to persistence service that is already running |
detach | Disconnect MATLAB session from persistence service that is already running |
ping | 영속성 서비스에 연결할 수 있는지 테스트 |
version | Version number for persistence provider |
예제
Redis 서비스 컨트롤러 만들기
ctrl = mps.cache.control('myRedisConnection','Redis','Port',4519)
ctrl = Controller with properties: ActiveConnection: False ManageService: Unknown Host: 'localhost' Port: 4519 Operations: "read | write | create | update" ProviderName: 'Redis' ConnectionName: 'myRedisConnection'
MATLAB 서비스 컨트롤러 만들기
mctrl = mps.cache.control('myMATFileConnection','MatlabTest','Folder','c:\tmp')
mctrl = Controller with properties: ActiveConnection: False ManageService: Unknown Folder: 'c:\tmp' Operations: "read | write | create | update" ProviderName: 'MatlabTest' ConnectionName: 'myMATFileConnection'
버전 내역
R2018b에 개발됨