BlockingSharedLockStoreInterface
interface BlockingSharedLockStoreInterface implementsSharedLockStoreInterface
Methods
void
save(Key$key)
Stores the resource if it's not locked by someone else.
bool
exists(Key$key)
Returns whether or not the resource exists in the storage.
void
putOffExpiration(Key$key,float$ttl)
Extends the TTL of a resource.
void
saveRead(Key$key)
Stores the resource if it's not locked for reading by someone else.
void
waitAndSaveRead(Key$key)
Waits until a key becomes free for reading, then stores the resource.