[dev] [cvs] commit: framework/Cache/Cache memcache.php

Duck duck at obala.net
Mon May 21 11:51:45 UTC 2007


On Monday 21 of May 2007 13:00:30 Michael M Slusarz wrote:
> slusarz     2007-05-21 07:00:30 EDT
>
>   Modified files:
>     Cache/Cache          memcache.php
>   Log:
>   Improved performance of memcache cache driver.  Cache results of exists()
> call since we will likely use the same data in a (almost sure to follow)
> get() call. Use single memcache call to get both data and expire time. 
> Don't reset expire timestamp on exists()/get() call - that is not the
> purpose of the timestamp parameter.  Use shorter expire key name (every
> byte counts!).  Honor the user-defined prefix.  Elimiate some unneeded
> variable definitions.
>

I guess the line 121 with $this->_db->expire($key) must be 
$this->expire($key). 


Duck



More information about the dev mailing list