You are here

public function MemcacheLockFactory::get in Memcache API and Integration 8.2

Gets a lock backend instance.

Return value

\Drupal\Core\Lock\LockBackendInterface A locked Memcache backend instance.

File

src/Lock/MemcacheLockFactory.php, line 42

Class

MemcacheLockFactory
THe memcache lock factory.

Namespace

Drupal\memcache\Lock

Code

public function get() {
  return new MemcacheLockBackend($this->bin, $this->factory
    ->get($this->bin));
}