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
13
votes
2 answers

configure: error: memcache support requires ZLIB.

When try to configuring memcache with php in xmapp server by following steps shows error. # /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 # ./configure…
Lakshmikandan
  • 4,301
  • 3
  • 28
  • 37
13
votes
1 answer

Memcached rubygem + Rlibmemcached argument error with memcache_mget()

I am getting an exception when using Evan Weaver's Memcached gem (as Memcached::Rails.new) -> (http://github.com/fauna/memcached) and calling get_multi() ArgumentError: wrong # of arguments(2 for 4) from…
Kyle
  • 1,054
  • 2
  • 14
  • 27
13
votes
4 answers

How to use memcached from codeigniter

How to use memcached from codeigniter, and how to store session data to memcached. Please help me. Thanks
noname.cs
  • 1,938
  • 4
  • 16
  • 25
13
votes
3 answers

Memcache compression - good/bad?

I was curious... are there any pro/cons of using compression in memcache?
user15063
13
votes
3 answers

FastCgi vs PHP-FPM using Nginx web server

I am using this tutorial to install nginx, php and mysql on my new web server. The tutorial is using ISPConfig 3 and there is an option to whether use FastCgi or PHP-FPM. I am wondering which is better of the two. In terms of performance and speed,…
jaypabs
  • 1,519
  • 10
  • 43
  • 62
13
votes
3 answers

What are some useful tips/tools for monitoring/tuning memcached health?

Yesterday, I found this cool script 'memcache-top' which nicely prints out stats of memcached live. It looks like, memcache-top v0.6 (default port: 11211, color: on, refresh: 3 seconds) INSTANCE USAGE HIT % CONN TIME …
David Lam
  • 4,689
  • 3
  • 23
  • 34
13
votes
2 answers

Django, low requests per second with gunicorn 4 workers

I'm trying to see why my django website (gunicorn 4 workers) is slow under heavy load, I did some profiling http://djangosnippets.org/snippets/186/ without any clear answer so I started some load tests from scratch using ab -n 1000 -c 100…
surfeurX
  • 1,262
  • 12
  • 16
13
votes
3 answers

MongoDB is better replacement of Memcached?

Can we use MongoDB as a replacement of Memory Caching library (memcache and memcached).? and what are the deference in MongoDB and Memory Caching Library.
Ayaz
  • 376
  • 1
  • 3
  • 14
13
votes
4 answers

Memcached for PHP and failover

We are deploying memcached for our application, and I would like to make it as resistant as I can. We plan to use the newer memcacheD extension. One thing that I haven not fully figured out is, what happens if one of the servers dies. At the very…
Evert
  • 93,428
  • 18
  • 118
  • 189
13
votes
2 answers

NHibernate and Memcached - should use_minimal_puts be enabled?

I use NHibernate with Memcached as a second level cache and have always been curious about the cache.use_minimal_puts configuration option. According to the documentation: hibernate.cache.use_minimal_puts: Optimizes second-level cache operation to…
DanP
  • 6,310
  • 4
  • 40
  • 68
13
votes
2 answers

Will the LRU delete entries that have not been used for some amount of time?

When in memcache the available memory is full, memcache uses the LRU (last recently used) algorithm to free memory. My question is will the LRU Algorithm rather delete entries that have not been used for some amount of time (last recently used) than…
zaphod1984
  • 836
  • 2
  • 7
  • 22
12
votes
3 answers

Sessions Failover with PHP-memcache against memcached

Colleagues! I'm running php 5.3 (5.3.8) with memcache (2.2.6) client library (http://pecl.php.net/package/memcache) to deal with memcached server. My goal is to have failover solution for sessions engine, namely: Only native php sessions support…
Eugene
  • 362
  • 1
  • 4
  • 11
12
votes
3 answers

Caching database queries with Node.js

Is there an implementation of database (mysql) query caching written purely in Node.js? I'm writing a Node web app and was planning on caching queries with memcached, but while considering this I realised it's probably possible to do the caching…
thelastshadow
  • 3,406
  • 3
  • 33
  • 36
12
votes
3 answers

What to use for session management?

I'm trying to do some research to find the best option for sessions management in a multi-server environment and was wondering what people have found successful and why. Pros and cons. RDBMS - Slower. Better used for other data. Memcached - You…
Brad Proctor
  • 543
  • 6
  • 11
12
votes
4 answers

Cache consistency when using memcached and a rdbms like MySQL

I have taken a database class this semester and we are studying about maintaining cache consistency between the RDBMS and a cache server such as memcached. The consistency issues arise when there are race conditions. For example: Suppose I do a…