You are here

service lock in Redis 8

Class

Drupal\Core\Lock\LockBackendInterface
2 string references to lock
RedisLockFunctionalTest::testLockAcquire in tests/src/Functional/Lock/RedisLockFunctionalTest.php
Confirms that we can acquire and release locks in two parallel requests.
RedisLockTest::setUp in tests/src/Kernel/RedisLockTest.php

File

./example.services.yml
example.services.yml

View source
  1. class: Drupal\Core\Lock\LockBackendInterface
  2. factory:
  3. - '@redis.lock.factory'
  4. - get