interface BlockingStoreInterface implementsPersistingStoreInterface

Methods

void
save(Key$key)

Stores the resource if it's not locked by someone else.

void
delete(Key$key)

Removes a resource from the storage.

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
waitAndSave(Key$key)

Waits until a key becomes free, then stores the resource.

Details

void save(Key$key)

Stores the resource if it's not locked by someone else.

Parameters

Key $key

Return Value

void

Exceptions

LockAcquiringException
LockConflictedException

void delete(Key$key)

Removes a resource from the storage.

Parameters

Key $key

Return Value

void

Exceptions

LockReleasingException

bool exists(Key$key)

Returns whether or not the resource exists in the storage.

Parameters

Key $key

Return Value

bool

void putOffExpiration(Key$key,float$ttl)

Extends the TTL of a resource.

Parameters

Key $key
float $ttl

Return Value

void

Exceptions

LockConflictedException

void waitAndSave(Key$key)

Waits until a key becomes free, then stores the resource.

Parameters

Key $key

Return Value

void

Exceptions

LockConflictedException