Check ownership of advisory lock on a persistence service mutex object
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')
Check if you own the advisory lock.
TF = own(lk)
TF = logical 0
TF— Logical value
TF has a logical
1 (true) if you own the
advisory lock on the persistence service mutex, and a logical