You are here

public function AcquiaPurgeStateStorageMemcache::commit in Acquia Purge 7

Commit the state data to its persistent storage location.

Overrides AcquiaPurgeStateStorageInterface::commit

File

lib/state/AcquiaPurgeStateStorageMemcache.php, line 44
Contains AcquiaPurgeStateStorageMemcache.

Class

AcquiaPurgeStateStorageMemcache
Memcached backed state storage.

Code

public function commit() {
  if (!$this->commit) {
    return;
  }
  else {
    $this->commit = FALSE;
  }
  dmemcache_set($this->key, $this->buffer, 0, $this->bin);
}