Reputation: 11
Does it use php function serialize() or some internal function of memcache extension? If it uses serialize(), then I can serialize my data myself with json_encode, for example. Will it be faster?
Upvotes: 1
Views: 1328
Reputation: 401002
The documentation of Memcache::set
says (quoting) :
Strings and integers are stored as is, other types are stored serialized.
So I'm guessing it uses serialize
internally ;-)
There are a couple of notes about that in theses slides presented by Ilia Alshanetsky a couple of weeks ago at the Forum PHP 2010 in Paris : APC & Memcached the High Performance Duo
Upvotes: 4