473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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/
Jun 2 '08 #1
1 1769
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Little Twin Star | last post by:
Hello all A questions from 10,000ft: I'm looking to use memcached as a Cache::Cache. Looks like I'll need to wrap Cache::Memcached to conform to the Cache::Cache interface...? Has this been...
17
by: CarpetMnuncher! | last post by:
Does anyone know how to turn ON and OFF a Pc cooling fans, using VB .Net 2003, Win XP Pro ??? I want to make a small program to turn my Pc cooling fans ON or OFF manually, I know there is a way to...
3
by: surfivor | last post by:
I understand that memcached can store objects on different servers using hashing, and I've seen typical things such as storing query results. Say at line 100 in module 'A', I want to render some...
0
by: Rico | last post by:
Memcached improves latency of site from 23 seconds to .23ms http://teenwag.com
0
by: Umbrae | last post by:
Hey guys, Just wanted to ask your opinion - I just wrote up and released as Open Source a class called AppCache. AppCache is an easy to use class implementation of an Application scope in PHP,...
1
by: Gilles Ganault | last post by:
Hello I'd like to play with MemcacheD and see how it improves read access to data, but I'm a bit lost at how to get from a working Apache2 + PHP5 + MySQL5 server on FreeBSD 6.3. I've never...
3
by: Gilles Ganault | last post by:
Hello A friend of mine is running a site that has about 1,000 concurrent users when it's really busy. Until now, he kept data in sessions (including output from SELECT fetched from a remote...
3
by: bigqiang | last post by:
Memcached is a high-performance, distributed memory object caching system. its website is http://www.danga.com/memcached/ . How to use Memcached in Classic Asp? Help thanks .
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.