Create a persistence service controller object
creates a persistence service controller object using a connection to a persistence service
specified by ctrl
= mps.cache.control(connectionName
,Provider
,'Port',num
)connectionName
, a persistence provider specified by
Provider
, and a port number num
for the
service.
You cannot compile and deploy this function on the server. This function is available only for testing.
creates a persistence service controller object that uses a folder specified by
ctrl
= mps.cache.control(connectionName
,Provider
,'Folder',folderPath
)folderPath
as a database.
Use this syntax when you want to use MATLAB® as a persistence provider for testing purposes.
You cannot compile and deploy this function on the server. This function is available only for testing.
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'
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'
mps.cache.Controller
| restart
| start
| stop