note 82401 modified in function.Memcache-set by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 20:33:50 +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-147222@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.
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