RetryTillSaveStore
class RetryTillSaveStore implements StoreInterface, LoggerAwareInterface
RetryTillSaveStore is a StoreInterface implementation which decorate a non blocking StoreInterface to provide a blocking storage.
Traits
LoggerAwareTrait
Methods
__construct(StoreInterface $decorated, int $retrySleep = 100, int $retryCount = PHP_INT_MAX)
No description
Details
waitAndSave(Key $key)
Waits until a key becomes free, then stores the resource.
If the store does not support this feature it should throw a NotSupportedException.
putOffExpiration(Key $key, $ttl)
Extends the ttl of a resource.
If the store does not support this feature it should throw a NotSupportedException.