jadell/neo4jphp — pull request #37 by tinsley (2012-01-20 10:15:15+00:00)
Title: Added Memcache Plugin

I added the new caching plugin and the unit test file.

The only difference between memcache and memcached (as far as the cache interface is concerned) is that the set method takes an additional parameter "flag". This parameter can be set to MEMCACHE_COMPRESSED to compress cache entries before storing them. I just hard coded it to 0.

I considered adding an optional parameter to the constructor that would allow the user to specify whether or not the compression flag should be used, but decided against it since I haven't tested it and I've seen a few reports of certain types of data not being retrieved correctly.