Example #1
0
 /**
  * Ensure that the dedicated lock store is ready to go.
  *
  * This should only happen if the cache store doesn't natively support it.
  */
 protected function ensure_cachelock_available()
 {
     if ($this->cachelockinstance === null) {
         $this->cachelockinstance = cache_helper::get_cachelock_for_store($this->get_store());
     }
 }