By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

any memcached fans?

P: n/a
Hi guys,

Have you noticed the add, set, and replace functions of the PHP
memcached extension?

I'm trying to figure out if there's any difference between set, and
(add or replace).

After few tests, I've proven myself that the set() method is enough to
add a new variable or update it.

Is there any functionality difference between add and set that I'm
missing here?

Thanks,

Vladimir
http://www.Vladimirated.com/
Jun 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 8, 2:38*pm, Vladimir Ghetau <vladi...@pixeltomorrow.comwrote:
Hi guys,

Have you noticed the add, set, and replace functions of the PHP
memcached extension?
Set will overwrite any data that is in cache if its already there, and
will add a new item if its not there.
Add will only add a new item to cache where the key doesn't already
exist.
Replace will only replace an item that is existing in cache, it won't
add new items.
--
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC 27560
919-463-0999/877-258-8987
http://www.otg-nc.com
Ask me about Expert PHP Training - delivered on-site worldwide or via
open enrollment public courses.
Jun 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.