Acquire advisory lock on persistence service mutex
Apply 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 = logical 1
timeout — Retry duration
Duration after which to retry acquiring lock.
TF — Logical value
TF has a logical
1 (true) if acquiring the
advisory lock was successful, and a logical