note 82401 modified in function.memcache-set by danbrown

From: Date: Sat, 19 Jun 2010 03:58:48 +0000
Subject: note 82401 modified in function.memcache-set by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170276@lists.php.net to get a copy of this message
I ran into problems using the MEMCACHE_COMPRESSED flag when storing small amounts of data, such as an integers. For expample. <?php Memcache::set('integer', 123456, MEMCACHE_COMPRESSED); //would return true Memcache::get('integer'); //would return false ?> This problem went away when I removed the MEMCACHE_COMPRESSED flag for values that were small. --was-- I ran into problems using the MEMCACHE_COMPRESSED flag when storing small amounts of data, such as an integers. For expample. Memcache::set('integer', 123456, MEMCACHE_COMPRESSED); //would return true Memcache::get('integer'); //would return false This problem went away when I removed the MEMCACHE_COMPRESSED flag for values that were small. http://php.net/manual/en/function.memcache-set.php

« previous php.notes (#170276) next »