I'm developing a PHP app on Mac OS X that will be deployed on CentOS. I apologize in advance for multiple dumb questions... here goes.
I had an idea to try the append( ) method in PHP [1] but I'm getting the error about compression: Warning: Memcached::append(): cannot append/prepend with compression turned on in /path/to/folder/cache.class.php This leads me to join this group and ask, given that it appears though the default configuration to have compression turned on [2], is turning it off and using append( ) a bad idea? It seems with compression turned on, I waste the power & speed of using memcached in the first place, if I want to use append-type functionality in my app... and thus have to $mc->get( ) + append in PHP + $mc->set( ) -- three operations instead of just one append operation? I looked into turning off compression at runtime in PHP, via memcached::setOption( ) [3]. The PHP docs don't specifiy much about compression and connecting to a pool of multiple servers. If I use a runtime flag to turn off compression for a specific set( ) or add( ) operation (one I want to use later with append), that's just for the value I am writing at the moment? Meaning, does turning compression off once for a script that is connecting to a shared memcached server pool that has compression on by default still allow the other connections/servers to happily read & write their compressed values? Thanks for the advice... [1] http://us3.php.net/manual/en/memcached.append.php [2] http://us3.php.net/manual/en/memcached.constants.php [3] http://us3.php.net/manual/en/memcached.setoption.php
