Exemplo n.º 1
0
 /**
  * Initialises a new instance of the cache store given the definition the instance is to be used for.
  *
  * This function should prepare any given connections etc.
  *
  * @param cache_definition $definition
  * @return bool
  */
 public function initialise(cache_definition $definition)
 {
     $this->definition = $definition;
     $definition_id = $definition->get_mode() . '/' . $definition->get_component() . '/' . $definition->get_area();
     $this->prefix = $this->name . '/data/' . $definition_id . '/';
     $this->prefix_lock = $this->name . '/lock/' . $definition_id . '/';
     $this->prefix_length = strlen($this->prefix);
     return true;
 }