Skip to content

Commit dbb7f85

Browse files
authored
Update lock.rst
Redis store doesn't support blocking so doesn't make sense to use it as an example
1 parent 24b9fa4 commit dbb7f85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/lock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ pass ``true`` as the argument of the ``acquire()`` method. This is called a
145145
lock is acquired::
146146

147147
use Symfony\Component\Lock\LockFactory;
148-
use Symfony\Component\Lock\Store\RedisStore;
148+
use Symfony\Component\Lock\Store\FlockStore;
149149

150-
$store = new RedisStore(new \Predis\Client('tcp://localhost:6379'));
150+
$store = new FlockStore('/var/stores');
151151
$factory = new LockFactory($store);
152152

153153
$lock = $factory->createLock('pdf-creation');

0 commit comments

Comments
 (0)