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
12
votes
1 answer

Error while trying to retrieve expired object from memcached

I'm trying to learn how to use the memcached plugin in MySQL 5.6. I used telnet to get and set values to memcached. When I try to get an expired value from memcache, it says "Connection closed by foreign host.". More details are below: database…
12
votes
5 answers

MAMP: How to install Memcached?

I have tried to install memcached in MAMP - Snow Leopard 10.6.2 using this tutorial: Setup a Memcached-Enabled MAMP Sandbox Environment I finished with no errors the first to the last step: Bonus Section: Start and Stop Memcache with MAMP After that…
marknt15
  • 5,047
  • 14
  • 59
  • 67
12
votes
1 answer

Can't access Session variables on different servers

I have dedicated a server to maintain Memcached and store sessions, so that all my servers can work on the same session without difficulties. But somehow I think I may have misunderstood the meaning of Memcached possibilities about PHP sessions. I…
Corfitz.
  • 1,864
  • 3
  • 31
  • 53
12
votes
2 answers

Memcached (not memcache) PHP extension on Windows

I can't seem to find the MemcacheD extension for PHP. There are a few compilations of php_memcache.dll, but that's not the same. The main thing I'm missing is getMulti(), which doesn't exist in Memcache. So far I found this, but there's no…
Oleg Kikin
  • 411
  • 4
  • 10
12
votes
2 answers

Rails action caching and json responses

I am having problems responding with JSON to json request, while having action caching enabled. I have a fairly simple controller which responds to both JSON and HTML and caching works fine for HTML response, but I noticed when I request JSON, and…
Victor S
  • 5,098
  • 5
  • 44
  • 62
12
votes
1 answer

memcached-session-manager on AWS

I've got a website running on Amazon Web Services that is deployed using Elastic Beanstalk and runs on a minimum of 2 EC2 micro instances. An auto scaling policy is in place, so that it can scale up and scale down depending on the the traffic in the…
12
votes
2 answers

Scaling and Clustering JPA

I am putting together a regular Java EE application on jboss7 that will use JPA in the data tier. I would like to make this application such that it scales up with load. While it is pretty clear how to scale up the web tier: create more machines and…
Raj
  • 2,852
  • 4
  • 29
  • 48
11
votes
2 answers

PHP Memcached extension result codes

I'm using the Memcached::set() and Memcached::get() methods. The documentation states that if an error occurs, or, in general, to check the status of these methods, I should call Memcached::getResultCode(). Where can I find a complete list of result…
rid
  • 61,078
  • 31
  • 152
  • 193
11
votes
3 answers

What if I want to store a None value in the memcache?

This is specifically related to the Google App Engine Memcache API, but I'm sure it also applies to other Memcache tools. The dictionary .get() method allows you to specify a default value, such as dict.get('key', 'defaultval') This can be useful if…
JJ.
  • 4,974
  • 5
  • 39
  • 48
11
votes
4 answers

How do I determine why Enyim memcache is returning false when storing an item?

How can I determine WHY Enyim returned false from the following call: cache.Store(Enyim.Caching.Memcached.StoreMode.Set, key, value); Other items are getting stored fine, so it doesn't seem to be an issue with a connection to the server. The…
Dugan
  • 908
  • 2
  • 13
  • 30
11
votes
1 answer

Invalidate a specific model in the Rails cache

I'm using Rails 3 with Memcached to cache some models. When the model changes, I want to invalidate the cache for that record. With view fragments, I just say expire_fragment("blah"). How do I do this with my models? I don't want to say…
Paul A Jungwirth
  • 23,504
  • 14
  • 74
  • 93
11
votes
3 answers

php caching techniques

Hi this is more of an information request really. I'm currently working on a pretty large event listing website and have started thinking about some caching for the data sets being used. I have been messing with APC this week and have seen some real…
Mike Waites
  • 1,688
  • 3
  • 19
  • 26
11
votes
1 answer

How to access memcache on App Engine Nodejs Standard

How does one access memcache from the nodejs standard environment?
Tim
  • 2,359
  • 2
  • 23
  • 21
11
votes
3 answers

How to install memcached module for php@7.1 on MacOS High Sierra?

I have the issue installing a memcached's module for php 7.1. I use MacOS High Sierra and php@7.1 installing using homebrew. During the installation of memcached module for php using command pecl install memcached I received the errors: checking…
alexius
  • 111
  • 1
  • 1
  • 7
11
votes
2 answers

Memcached consistent hashing not working with 3 of 4 servers down

Story I have 3 memcached servers running where I shutdown the one or the other to investigate how PHP-memcached behaves upon a server not beeing reachable. I have defined 4 servers in PHP, 1 to simulate a server that is mostly offline (spare…
Daniel W.
  • 31,164
  • 13
  • 93
  • 151