Services_Weather_Common::setCache()

Services_Weather_Common::setCache()  -- Active le cache pour les données, son utilisation est très fortement recommandée

Synopsis

require_once '/Weather/Common.php';

PEAR_Error|bool Services_Weather_Common::setCache (string [$cacheType = "file"], array [$cacheOptions = array()])

Description

Nécessite le paquet Cache

Paramètres

chaîne de caractères $cacheType

array $cacheOptions

Valeurs renvoyées

Un objet PEAR_Error::SERVICES_WEATHER_ERROR_CACHE_INIT_FAILED est lancé

Note

Cette fonction ne peut pas être appelée de façon statique.