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

Parameter

string $cacheType

array $cacheOptions

Throws

Un objet PEAR_Error::SERVICES_WEATHER_ERROR_CACHE_INIT_FAILED est lancé

Note

This function can not be called statically.