Release advisory lock on persistence service mutex
Release Advisory Lock
First, create a persistence service controller object and use that object to start the persistence service.
ctrl = mps.cache.control('myRedisConnection','Redis','Port',4519); start(ctrl)
Use the connection name to create a persistence service mutex.
lk = mps.sync.lock('myDbLock','Connection','myRedisConnection')
Try to acquire advisory lock. If lock is unavailable, retry acquiring for 20 seconds.
TF = release(lk)
TF = logical 1
TF — Logical value
TF has a logical
1 (true) if releasing the
advisory lock was successful, and a logical
- Use Data Cache to Persist Data (MATLAB Production Server)