<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.wincache.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.wincache-ucache-inc.php',
    1 => 'wincache_ucache_inc',
    2 => 'Increments the value associated with the key',
  ),
  'up' => 
  array (
    0 => 'ref.wincache.php',
    1 => 'WinCache İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.wincache-ucache-get.php',
    1 => 'wincache_ucache_get',
  ),
  'next' => 
  array (
    0 => 'function.wincache-ucache-info.php',
    1 => 'wincache_ucache_info',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/wincache/functions/wincache-ucache-inc.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.wincache-ucache-inc" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">wincache_ucache_inc</h1>
  <p class="verinfo">(PECL wincache &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">wincache_ucache_inc</span> &mdash; <span class="dc-title">
   Increments the value associated with the key
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.wincache-ucache-inc-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>wincache_ucache_inc</strong></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.integer.php" class="type int">int</a></span> <code class="parameter">$inc_by</code><span class="initializer"> = 1</span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter reference">&$success</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

  <p class="para rdfs-comment">
   Increments the value associated with the <code class="parameter">key</code> by 1 or as specified 
   by <code class="parameter">inc_by</code>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.wincache-ucache-inc-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">key</code></dt>
     <dd>
      <p class="para">
       The <code class="parameter">key</code> that was used to store the variable in the cache. 
       <code class="parameter">key</code> is case sensitive.
      </p>
     </dd>
    
    
     <dt><code class="parameter">inc_by</code></dt>
     <dd>
      <p class="para">
       The value by which the variable associated with the <code class="parameter">key</code> will get incremented. 
       If the argument is a floating point number it will be truncated to nearest integer. The variable 
       associated with the <code class="parameter">key</code> should be of type <code class="literal">long</code>, otherwise 
       the function fails and returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">success</code></dt>
     <dd>
      <p class="para">
       Will be set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success and <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.wincache-ucache-inc-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Returns the incremented value on success and <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.wincache-ucache-inc-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 Using <span class="function"><strong>wincache_ucache_inc()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />wincache_ucache_set</span><span style="color: #007700">(</span><span style="color: #DD0000">'counter'</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">wincache_ucache_inc</span><span style="color: #007700">(</span><span style="color: #DD0000">'counter'</span><span style="color: #007700">, </span><span style="color: #0000BB">2921</span><span style="color: #007700">, </span><span style="color: #0000BB">$success</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$success</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">int(2922) 
bool(true)</pre>
</div>
    </div>    
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.wincache-ucache-inc-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.wincache-ucache-dec.php" class="function" rel="rdfs-seeAlso">wincache_ucache_dec()</a> - Decrements the value associated with the key</span></li>
    <li><span class="function"><a href="function.wincache-ucache-cas.php" class="function" rel="rdfs-seeAlso">wincache_ucache_cas()</a> - Compares the variable with old value and assigns new value to it</span></li>
   </ul>
  </p>
 </div>


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