interface PersistingStoreInterface

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.

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