<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.memcached.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'memcached.prependbykey.php',
    1 => 'Memcached::prependByKey',
    2 => '指定したサーバーで既存のアイテムの前にデータを付加する',
  ),
  'up' => 
  array (
    0 => 'class.memcached.php',
    1 => 'Memcached',
  ),
  'prev' => 
  array (
    0 => 'memcached.prepend.php',
    1 => 'Memcached::prepend',
  ),
  'next' => 
  array (
    0 => 'memcached.quit.php',
    1 => 'Memcached::quit',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/memcached/memcached/prependbykey.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="memcached.prependbykey" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Memcached::prependByKey</h1>
  <p class="verinfo">(PECL memcached &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">Memcached::prependByKey</span> &mdash; <span class="dc-title">指定したサーバーで既存のアイテムの前にデータを付加する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-memcached.prependbykey-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Memcached::prependByKey</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$server_key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$value</code></span>): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>Memcached::prependByKey()</strong></span> は機能的に
   <span class="methodname"><a href="memcached.prepend.php" class="methodname">Memcached::prepend()</a></span> と同等です。しかし、自由形式の
   <code class="parameter">server_key</code> を使用して、
   <code class="parameter">key</code> を特定のサーバーに関連付けることができます。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-memcached.prependbykey-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">server_key</code></dt>
     <dd>
      <p class="para">
       値を格納したりデータを取得したりするサーバーを表すキー。
アイテムの実際のキーをハッシュするかわりにサーバーのキーをハッシュして、どの memcached サーバーとやりとりするのか選びます。
これで、関連するアイテムを一つのサーバーにまとめられるようになり、マルチ操作の効率が上がります。
      </p>
     </dd>
    
    
     <dt><code class="parameter">key</code></dt>
     <dd>
      <p class="para">
       データを先頭に付加したいアイテムのキー。
      </p>
     </dd>
    
    
     <dt><code class="parameter">value</code></dt>
     <dd>
      <p class="para">
       先頭に付加する文字列。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-memcached.prependbykey-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
   圧縮が有効になっている場合は <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-memcached.prependbykey-errors">
  <h3 class="title">エラー / 例外</h3>
  <p class="para">
   圧縮が有効になっている場合は <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> を返し、
   <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>  が発生します。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-memcached.prependbykey-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="memcached.prepend.php" class="methodname" rel="rdfs-seeAlso">Memcached::prepend()</a> - 既存のアイテムの前にデータを付加する</span></li>
    <li><span class="methodname"><a href="memcached.append.php" class="methodname" rel="rdfs-seeAlso">Memcached::append()</a> - データを既存のアイテムに追記する</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>