PHP

PHP jest obiektowym, skryptowym jezykiem programowania zaprojektowanym do tworzenia dynamicznych stron www.


Funkcje PHP

Oficjalna strona PHP

Dodatkowe aplikacje PHP

Dodatkowe modu³y PHP

Wortal PHP
nauka jazdy warszawa - Hotele - GG, Gadu-Gadu - Wakacje mazury, jeziora, woda - Bwin - kredyt hipoteczny


Memcache::get

Memcache::get

(no version information, might be only in CVS)

Memcache::get -- Retrieve item from the server

Opis

string Memcache::get ( string key )

array Memcache::get ( array keys )

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

You can pass array of keys to Memcache::get() to get array of values. The result array will contain only found key-value pairs.

Parametry

key

Zwracane wartości

Returns the string associated with the key or FALSE on failure or if such key was not found.

Przykłady

Przykład 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');

/*
You also can use array of keys as a parameter.
If such item wasn't found at the server, the result
array simply will not include such key.
*/

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

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

?>

Wgraj swoje pliki za darmo Darmowy hosting plików Darmowy hosting plików - Forum komputerowe Forum komputerowe Forum komputerowe - zdjęcia - zdjęcia dzieci - tworzenie stron - porady - opisy na gg - Najlepsze miłosne opisy gg do Twojego komunikatora - pozycjonowanie - Super komputery tanie - tylko dobre łożyska mają gwarancję - pozycjonowanie stron bielsko-biała - pozycjonowanie bielsko-biała - oprogramowanie dla firm - logopedia

G:3,M:0,Y:21