mps.sync.TimedRedisMutex
Represent a Redis persistence service mutex
Description
mps.sync.TimedRedisMutex
is a synchronization primitive used to
protect data in a Redis™ persistence service from being simultaneously accessed by multiple
workers.
Creation
Create a mps.sync.TimedRedisMutex
object using mps.sync.mutex
.
Properties
Object Functions
mps.sync.mutex | Create a persistence service mutex |
acquire | Acquire advisory lock on persistence service mutex |
own | Check ownership of advisory lock on a persistence service mutex object |
release | Release advisory lock on persistence service mutex |
Examples
Create a Redis Lock Object
ctrl = mps.cache.control('myRedisConnection','Redis','Port',4519); start(ctrl) lk = mps.sync.mutex('myMutex','Connection','myRedisConnection')
lk = TimedRedisMutex with properties: Expiration: 10 ConnectionName: 'myRedisConnection' MutexName: 'myMutex'
Version History
Introduced in R2018b