Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

Memcache::get

(no version information, might be only in CVS)

Memcache::get -- Retrieve item from the server

Description

mixed Memcache::get ( string key)

Memcache::get() returns previously stored data if an item with such key exists on the server at this moment.

例 1. Memcache::get() example

<?php

/* procedural API */
$memcache_obj = memcache_connect('memcache_host', 11211);
$var = memcache_get($memcache_obj, 'some_key');

/* OO API */
$memcache_obj = new Memcache;
$memcache_obj->connect('memcache_host', 11211);
$var = $memcache_obj->get('some_key');

?>

Memcache::get() returns FALSE on failure.

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "PHP マニュアル". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.