[dev] Horde cache driver inconsistence

Chuck Hagenbuch chuck at horde.org
Sun Nov 25 00:22:31 UTC 2007


Quoting Duck <duck at obala.net>:

> While reusing horde cached data in an external application I discovered that
> the memcached driver  serialize passed data by its own. But other drivers
> does not. This is a inconsistence between drivers. I guess the driver should
> not serialize passed data since string, boolean ans integer values does not
> need to be serialized. And forcing the driver to serialize you get only
> additional parsing overhead of double (un)serialization.

I don't remember the details of why the memcached driver always  
serializes data, but in general, cache drivers should not run  
serialize/unserialize; the client code is responsible for doing that.

-chuck


More information about the dev mailing list