cvs: pear /Services_Technorati/Services Technorati.php

From: Date: Thu, 02 Mar 2006 15:30:30 +0000
Subject: cvs: pear /Services_Technorati/Services Technorati.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38861@lists.php.net to get a copy of this message
jystewart Thu Mar 2 15:30:30 2006 UTC Modified files: /pear/Services_Technorati/Services Technorati.php Log: Added use of cache groups Added setting of auto-serialize option for Cache_Lite http://cvs.php.net/viewcvs.cgi/pear/Services_Technorati/Services/Technorati.php?r1=1.19&r2=1.20&diff_format=u Index: pear/Services_Technorati/Services/Technorati.php diff -u pear/Services_Technorati/Services/Technorati.php:1.19 pear/Services_Technorati/Services/Technorati.php:1.20 --- pear/Services_Technorati/Services/Technorati.php:1.19 Sun Nov 27 18:34:05 2005 +++ pear/Services_Technorati/Services/Technorati.php Thu Mar 2 15:30:30 2006 @@ -11,7 +11,7 @@ * @author James Stewart <james@jystewart.net> * @copyright 2004-2005 James Stewart * @license http://www.gnu.org/copyleft/lesser.html GNU LGPL - * @version CVS: $Id: Technorati.php,v 1.19 2005/11/27 18:34:05 jystewart Exp $ + * @version CVS: $Id: Technorati.php,v 1.20 2006/03/02 15:30:30 jystewart Exp $ * @link http://pear.php.net/package/Services_Technorati */ @@ -89,6 +89,7 @@ { $this->_apiKey = $apiKey; $this->_cache = $cache; + $this->_cache->setOption('automaticSerialization', true); } /** @@ -163,7 +164,8 @@ } /* Check if cached */ - if (isset($this->_cache) and $cache = $this->_cache->get($filename)) { + if (isset($this->_cache) and + $cache = $this->_cache->get($filename, 'services_technorati')) { return $cache; } @@ -172,7 +174,7 @@ /* Save the data in the cache if appropriate. We use the filename as the ID */ if (! PEAR::isError($value) and !empty($this->_cache)) { - $this->_cache->save($value, $filename); + $this->_cache->save($value, $filename, 'services_technorati'); } return $value; @@ -364,7 +366,7 @@ /* Store in cache */ - $this->_cache->save($value); + $this->_cache->save($value, 'services_technorati'); return $value; }

« previous php.pear.cvs (#38861) next »