Example #1
0
 /**
  * @since 2.1
  *
  * @param string $id
  * @param string $hash
  */
 public function saveToCache($id, $hash)
 {
     $this->cache->save($id, $hash);
 }
Example #2
0
 /**
  * @since 2.1
  *
  * @param integer $id
  * @param string $title
  * @param integer $namespace
  */
 public function addRedirectForId($id, $title, $namespace)
 {
     $this->insert($id, $title, $namespace);
     $hash = HashBuilder::createHashIdFromSegments($title, $namespace);
     $this->cache->save($hash, $id);
 }