Author: bicou
Date: 2010-04-09 14:15:32 +0200 (Fri, 09 Apr 2010)
New Revision: 29050
Modified:
plugins/sfRedisPlugin/trunk/lib/Doctrine/Cache/Redis.php
plugins/sfRedisPlugin/trunk/package.xml.tmpl
Log:
[sfRedisPlugin] implement Doctrine_Cache_Driver::_getCacheKeys (for symfony
1.{3,4}.4)
Modified: plugins/sfRedisPlugin/trunk/lib/Doctrine/Cache/Redis.php
===================================================================
--- plugins/sfRedisPlugin/trunk/lib/Doctrine/Cache/Redis.php 2010-04-09
10:33:55 UTC (rev 29049)
+++ plugins/sfRedisPlugin/trunk/lib/Doctrine/Cache/Redis.php 2010-04-09
12:15:32 UTC (rev 29050)
@@ -80,7 +80,7 @@
*
* @return array
*/
- protected function getKeys()
+ protected function _getCacheKeys()
{
return $this->_redis->smembers($this->getCacheKeyIndexKey());
}
@@ -96,65 +96,6 @@
/**
* @see Doctrine_Cache_Driver
*/
- public function deleteAll()
- {
- $keys = $this->getKeys();
- foreach ($keys as $key) {
- $this->delete($key);
- }
- }
-
- /**
- * @see Doctrine_Cache_Driver
- */
- public function deleteByRegex($regex)
- {
- $count = 0;
- $keys = $this->getKeys();
- foreach ($keys as $key) {
- if (preg_match($regex, $key)) {
- $count++;
- $this->delete($key);
- }
- }
- return $count;
- }
-
- /**
- * @see Doctrine_Cache_Driver
- */
- public function deleteByPrefix($prefix)
- {
- $count = 0;
- $keys = $this->getKeys();
- foreach ($keys as $key) {
- if (strpos($key, $prefix) === 0) {
- $count++;
- $this->delete($key);
- }
- }
- return $count;
- }
-
- /**
- * @see Doctrine_Cache_Driver
- */
- public function deleteBySuffix($suffix)
- {
- $count = 0;
- $keys = $this->getKeys();
- foreach ($keys as $key) {
- if (substr($key, -1 * strlen($suffix)) == $suffix) {
- $count++;
- $this->delete($key);
- }
- }
- return $count;
- }
-
- /**
- * @see Doctrine_Cache_Driver
- */
protected function _saveKey($key)
{
return $this->_redis->sadd($this->getCacheKeyIndexKey(), $key);
Modified: plugins/sfRedisPlugin/trunk/package.xml.tmpl
===================================================================
--- plugins/sfRedisPlugin/trunk/package.xml.tmpl 2010-04-09 10:33:55 UTC
(rev 29049)
+++ plugins/sfRedisPlugin/trunk/package.xml.tmpl 2010-04-09 12:15:32 UTC
(rev 29050)
@@ -35,28 +35,51 @@
<package>
<name>symfony</name>
<channel>pear.symfony-project.com</channel>
- <min>1.2.0</min>
- <max>1.3.0</max>
+ <min>1.3.0</min>
+ <max>2.0.0</max>
<exclude>1.3.0</exclude>
+ <exclude>1.3.1</exclude>
+ <exclude>1.3.2</exclude>
+ <exclude>1.3.3</exclude>
+ <exclude>1.4.0</exclude>
+ <exclude>1.4.1</exclude>
+ <exclude>1.4.2</exclude>
+ <exclude>1.4.3</exclude>
+ <exclude>2.0.0</exclude>
</package>
</required>
</dependencies>
<phprelease></phprelease>
<changelog>
<release>
- <version>
- <release>0.9.0</release>
- <api>0.9.0</api>
- </version>
- <stability>
- <release>beta</release>
- <api>stable</api>
- </stability>
- <license uri="http://www.symfony-project.org/license">MIT license</license>
- <date>2010-03-28</date>
- <notes>
- * First public release
- </notes>
- </release>
+ <version>
+ <release>0.9.1</release>
+ <api>0.9.0</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.symfony-project.org/license">MIT
license</license>
+ <date>2010-04-09</date>
+ <notes>
+ * Implement Doctrine_Cache_Driver::_getCacheKeys()
+ </notes>
+ </release>
+ <release>
+ <version>
+ <release>0.9.0</release>
+ <api>0.9.0</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.symfony-project.org/license">MIT
license</license>
+ <date>2010-03-28</date>
+ <notes>
+ * First public release
+ </notes>
+ </release>
</changelog>
</package>
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.