Questions tagged [memcached]

Memcached is a simple distributed object cache that caches information in memory, and can be used to improve the performance of dynamic web applications by reducing access time and database load.

Memcached is open source easily deployable in-memory distributed cache, cross application and cross Platform Engine meaning the same server(s) can be accessed from a variety of languages - PHP, Java, and .NET and from Windows, Linux, etc. Memcached is currently distributed under a BSD-style open source license.

5184 questions
1483
votes
17 answers

Memcached vs. Redis?

We're using a Ruby web-app with Redis server for caching. Is there a point to test Memcached instead? What will give us better performance? Any pros or cons between Redis and Memcached? Points to consider: Read/write speed. Memory usage. Disk I/O…
Sagiv Ofek
  • 25,190
  • 8
  • 60
  • 55
332
votes
4 answers

When should I use Memcache instead of Memcached?

It seems that PHP has two memcached libraries named memcache and memcached. What is the difference and how do you know which one to use? Is one outdated? It seems that memcached offers more methods so I would assume that means it has had the most…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
284
votes
10 answers

NoSQL (MongoDB) vs Lucene (or Solr) as your database

With the NoSQL movement growing based on document-based databases, I've looked at MongoDB lately. I have noticed a striking similarity with how to treat items as "Documents", just like Lucene does (and users of Solr). So, the question: Why would…
eduncan911
  • 17,165
  • 13
  • 68
  • 104
191
votes
6 answers

Is memcached a dinosaur in comparison to Redis?

I have worked quite a bit with memcached the last weeks and just found out about Redis. When I read this part of their readme, I suddenly got a warm, cozy feeling in my stomach: Redis can be used as a memcached on steroids because is as fast as …
Industrial
  • 41,400
  • 69
  • 194
  • 289
170
votes
8 answers

get all keys set in memcached

How can I get all the keys set in my memcached instance(s)? I tried googling, but didn't find much except that PHP supports a getAllKeys method, which means it is actually possible to do this somehow. How can I get the same within a telnet…
Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186
166
votes
16 answers

configure: error: C compiler cannot create executables

I've checked a number of similar questions on stackoverflow but haven't found an answer yet. I'm trying to install memcached on Lion OSX as shown here. Here's what I'm getting: j-court-demones-macbook-pro:libevent-1.4.12-stable jcourtdemone$…
CourtDemone
  • 5,772
  • 6
  • 23
  • 25
165
votes
7 answers

Memcached vs APC which one should I choose?

I read this article: http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/ from way back when.. I want to get the best caching engine available so that my application is really fast. Of course I don't want to over-cache but I want to at…
Thomaschaaf
  • 17,847
  • 32
  • 94
  • 128
146
votes
2 answers

Memcache Vs. Memcached

Possible Duplicate: Using Memcache vs Memcached with PHP Someone can explain me the difference between Memcache and Memcached in PHP environment? What are the advantages of one over the other? Can you also suggest the criteria used to choose…
Luca Bernardi
  • 4,191
  • 2
  • 31
  • 39
120
votes
6 answers

How to call cURL without using server-side cache?

Is there a way to tell cURL command not to use server's side cache? e.g; I have this curl command: curl -v www.example.com How can I ask curl to send a fresh request to not use the cache? Note: I am looking for an executable command in the terminal.
tokhi
  • 21,044
  • 23
  • 95
  • 105
117
votes
2 answers

Memcache(d) vs. Varnish for speeding up 3 tier web architecture

I'm trying to speed up my benchmark (3 tier web architecture), and I have some general questions related to Memcache(d) and Varnish. What is the difference? It seems to me that Varnish is behind the web server, caching web pages and doesn't require…
user449219
  • 1,333
  • 2
  • 9
  • 7
109
votes
12 answers

How to stop and restart memcached server?

How to stop and restart memcached server 1.4.5 in linux OS from command line?
smriti
  • 1,119
  • 2
  • 8
  • 5
104
votes
6 answers

cannot find autoconf. please check your autoconf installation Xampp in CentOS

Getting another error when configuring memcahed with php in XAMPP in CentOS # /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoconf.…
Lakshmikandan
  • 4,301
  • 3
  • 28
  • 37
95
votes
3 answers

Good examples of python-memcache (memcached) being used in Python?

I'm writing a web app using Python and the web.py framework, and I need to use memcached throughout. I've been searching the internet trying to find some good documentation on the python-memcached module, but all I could find was this example on the…
Jonathan Prior
  • 6,114
  • 7
  • 29
  • 26
93
votes
14 answers

How do you know if memcached is doing anything?

I'm testing out using memcached to cache django views. How can I tell if memcached is actually caching anything from the Linux command line?
MikeN
  • 45,039
  • 49
  • 151
  • 227
92
votes
6 answers

Redis and Memcache or just Redis?

I'm using memcached for some caching in my Rails 3 app through the simple Rails.cache interface and now I'd like to do some background job processing with redis and resque. I think they're different enough to warrant using both. On heroku though,…
markquezada
  • 8,444
  • 6
  • 45
  • 52
1
2 3
99 100