This is a discussion on any memcached fans? within the PHP Language forums, part of the PHP Programming Forums category; Hi guys, Have you noticed the add, set, and replace functions of the PHP memcached extension? I'm trying to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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/ |
|
|||
|
On May 8, 2:38*pm, Vladimir Ghetau <vladi...@pixeltomorrow.com> wrote:
> 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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|