PHP Doku:: Checks if a variable exists in the user cache - function.wincache-ucache-exists.html

Verlauf / Chronik / History: (50) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDas Verhalten von PHP beeinflussenWindows Cache for PHPWinCache Funktionenwincache_ucache_exists

Ein Service von Reinhard Neidl - Webprogrammierung.

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
WinCache Funktionen

<<wincache_ucache_delete

wincache_ucache_get>>

wincache_ucache_exists

(PECL wincache >= 1.1.0)

wincache_ucache_exists Checks if a variable exists in the user cache

Beschreibung

bool wincache_ucache_exists ( string $key )

Checks if a variable with the key exists in the user cache or not.

Parameter-Liste

key

The key that was used to store the variable in the cache. key is case sensitive.

Rückgabewerte

Returns TRUE if variable with the key exitsts, otherwise returns FALSE.

Beispiele

Beispiel #1 Using wincache_ucache_exists()

<?php
if (!wincache_ucache_exists('green'))
    
wincache_ucache_set('green'1);
var_dump(wincache_ucache_exists('green'));
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

bool(true)

Siehe auch


Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)