mps.cache.control
Create a persistence service controller object
Syntax
Description
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.
Examples
Create a Redis Service Controller
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'
Create a MATLAB Service Controller
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'
Input Arguments
Output Arguments
Version History
Introduced in R2018b
See Also
mps.cache.Controller
| start
| stop
| restart
Topics
- Data Caching Basics (MATLAB Production Server)