interface PersistingStoreInterface

Methods

void
save(Key$key,float$ttlInSecond)

Stores the resource if the semaphore is not full.

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$ttlInSecond)

Extends the TTL of a resource.

Details

void save(Key$key,float$ttlInSecond)

Stores the resource if the semaphore is not full.

Parameters

Key $key
float $ttlInSecond

Return Value

void

Exceptions

SemaphoreAcquiringException

void delete(Key$key)

Removes a resource from the storage.

Parameters

Key $key

Return Value

void

Exceptions

SemaphoreReleasingException

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$ttlInSecond)

Extends the TTL of a resource.

Parameters

Key $key
float $ttlInSecond

Return Value

void

Exceptions

SemaphoreExpiredException