any memcached fans?

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 3 Days Ago
Vladimir Ghetau
 
Posts: n/a
Default any memcached fans?

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/
Reply With Quote
  #2 (permalink)  
Old 3 Days Ago
chander@otg-nc.com
 
Posts: n/a
Default Re: any memcached fans?

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0