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
14
votes
3 answers

how to make junit test run methods in order

guys! I have a new question for you. I'm adding some data to cache using different cache managers and I'm facing the problem with it. I'm doing it using junit and spring. When I run the test, the test methods are executed randomly, but I need them…
PAcan
  • 871
  • 2
  • 15
  • 32
14
votes
5 answers

Memcache won't flush or clear memory

I've been trying to clear my memcache as I'm noticing the storage taking up almost 30% of server memory when using ps -aux. So I ran the following php code. $memcache = new Memcache; $memcache->connect("localhost",11211); …
pedalpete
  • 21,076
  • 45
  • 128
  • 239
14
votes
5 answers

Users take sessions of other users when sessions are stored in memcached (Rails)

I have a very weird problem, when storing my session in Memcached. From time to time some users takes the session of others. E.g. John, becomes logged in as Maria, Maria as Chris and so on. I use Rails 2.3.4, but the same problem has been happening…
Stan Bright
  • 1,355
  • 1
  • 15
  • 22
14
votes
1 answer

Hibernate EHCache vs MemCache

I would like to use caching in my web application which will be scalable and distributed as well. I have used EHCache and MemCache both in small-small web application separately. Have googled and got mixed review about both, hence would like to get…
Manoj Kathiriya
  • 3,366
  • 5
  • 19
  • 19
14
votes
5 answers

Simple Java caching library or design pattern?

I need to frequently access the result of a time-consuming calculation. The result changes infrequently, so I have to recalculate the data from time to time but it is ok to use the outdated result for a while. What would be the easiest way to do…
nn4l
  • 945
  • 1
  • 12
  • 28
13
votes
2 answers

Does memcached.dll exist?

Does the memcached (not memcache) extension exist for Windows? I have looked through old answers and haven't found anything.
qitch
  • 829
  • 3
  • 12
  • 21
13
votes
2 answers

What are the advantages of Memcached compared to .NET Cache system?

I saw some people in a development team using Memcached to cache database results, instead of built-in .NET Framework Cache system. I do not understand clearly why would they use this specific cache. Maybe the performance is better. Anyway, is…
Junior Mayhé
  • 16,144
  • 26
  • 115
  • 161
13
votes
1 answer

Automatically clearing tmp files in webgrind

I use webgrind, and it produces large amounts of cache files. How do i automatically clear those files after the server closes or something like that. I use WAMP installation on a windows7 machine. It may sound silly, But i am not sure how to…
footy
  • 5,803
  • 13
  • 48
  • 96
13
votes
4 answers

How to enable igbinary with memcached installed first

I have memcached installed with libmemcached. Also I have installed igbinary. This is my php.ini: ; Directory in which the loadable extensions (modules) reside. ;extension_dir = "./" extension_dir =…
DelphiLynx
  • 911
  • 1
  • 16
  • 41
13
votes
4 answers

What would you recommend for a large-scale Java data grid technology: Terracotta, GigaSpaces, Coherence, etc?

I've been reading up on so-called "data grid" solutions for the Java platform including Terracotta, GigaSpaces and Coherence. I was wondering if anyone has real-world experience working any of these tools and could share their experience. I'm also…
cliff.meyers
  • 17,666
  • 5
  • 51
  • 66
13
votes
2 answers

Memcached LRU and expiry

If an item in memcached is set to never expire, is it exempt from LRU eviction? The docs that I've seen don't paint a clear picture as to which takes precedence. In my mind, it would be ideal (perhaps very complicated internally) to have LRU only…
Mark
  • 837
  • 2
  • 9
  • 19
13
votes
4 answers

increase item max size in memcached?

i am using memcached on my centos server , my project is large and has objects more than 1MB which i need to save to memcached , well , i can't ! because the max_item_size is 1MB , anyway to edit that ? Thank you
Rami Dabain
  • 4,709
  • 12
  • 62
  • 106
13
votes
1 answer

MemCached vs Redis for ASP.NET and Entity framework?

We have narrowed our choices for caching down to memcached and redis in our application. We already have considered and will apply Output Caching in our application. My question is what is your experience with both and which one should I prefer? We…
Vishal
  • 12,133
  • 17
  • 82
  • 128
13
votes
1 answer

is the expiration time updated in memcached after an increment?

When you put a value in memcached, you can set an expiration time. However, when you increment a value you can not (at least not from PHP) set a new expiration time. My question: Is the expiration time reset on increment to it's initial value? Or it…
Toad
  • 15,593
  • 16
  • 82
  • 128
13
votes
10 answers

php-fpm child process exited on signal 11

Our application runs in a Docker container on AWS: Operating system: Ubuntu 14.04.2 LTS (Trusty Tahr) Nginx version: nginx/1.4.6 (Ubuntu) Memcached version: memcached 1.4.14 PHP version: PHP 5.5.9-1ubuntu4.11 (cli) (built: Jul 2 2015…
jobycxa
  • 321
  • 1
  • 3
  • 6