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

installing "make" on Mac

I'm trying to install Memcached on Mac using this tutorial: http://tugdualgrall.blogspot.de/2011/11/installing-memcached-on-mac-os-x-and.html but when I try ./configure it says: configure: error: no acceptable C compiler found in $PATH when I try…
Baseem Najjar
  • 753
  • 4
  • 8
  • 16
27
votes
3 answers

Rails and caching, is it easy to switch between memcache and redis?

Is there a common api such that if I switch between Redis or Memcached I don't have to change my code, just a config setting?
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
27
votes
5 answers

Best way to cache RESTful API results of GET calls

I'm thinking about the best way to create a cache layer in front or as first layer for GET requests to my RESTful API (written in Ruby). Not every request can be cached, because even for some GET requests the API has to validate the requesting user…
maddin2code
  • 1,334
  • 1
  • 14
  • 16
27
votes
1 answer

Committed JDO writes do not apply on local GAE HRD, or possibly reused transaction

I'm using JDO 2.3 on app engine. I was using the Master/Slave datastore for local testing and recently switched over to using the HRD datastore for local testing, and parts of my app are breaking (which is to be expected). One part of the app…
eeeeaaii
  • 3,372
  • 5
  • 30
  • 36
26
votes
5 answers

Clearing specific cache in Django

I am using view caching for a django project. It says the cache uses the URL as the key, so I'm wondering how to clear the cache of one of the keys if a user updates/deletes the object. An example: A user posts a blog post to domain.com/post/1234/…
Brenden
  • 8,264
  • 14
  • 48
  • 78
26
votes
4 answers

Difference between In-Memory cache and In-Memory Database

I was wondering if I could get an explanation between the differences between In-Memory cache(redis, memcached), In-Memory data grids (gemfire) and In-Memory database (VoltDB). I'm having a hard time distinguishing the key characteristics between…
Yolo49
  • 489
  • 2
  • 7
  • 14
26
votes
5 answers

Memcache for PHP7 on Windows?

Does any one know about a Memcache version that supports PHP7 on Windows? Memcache is working great for PHP 5.6 (on Windows), but I cannot find the version for PHP7.
Jens Kirk
  • 526
  • 1
  • 5
  • 19
26
votes
2 answers

Twitter - twemproxy - memcached - Retry not working as expected

Simple setup: 1 node running twemproxy (vcache:22122) 2 nodes running memcached (vcache-1, vcache-2) both listening on 11211 I have the following twemproxy config: default: auto_eject_hosts: true distribution: ketama hash: fnv1a_64 listen:…
Mike Purcell
  • 19,847
  • 10
  • 52
  • 89
25
votes
5 answers

Does the Linux filesystem cache files efficiently?

I'm creating a web application running on a Linux server. The application is constantly accessing a 250K file - it loads it in memory, reads it and sends back some info to the user. Since this file is read all the time, my client is suggesting to…
laurent
  • 88,262
  • 77
  • 290
  • 428
25
votes
5 answers

Can memcached keys contain spaces?

I seem to have problems with memcached keys that have spaces, though I can't pinpoint exactly what.
philfreo
  • 41,941
  • 26
  • 128
  • 141
25
votes
5 answers

What's the best serialization method for objects in memcached?

My Python application currently uses the python-memcached API to set and get objects in memcached. This API uses Python's native pickle module to serialize and de-serialize Python objects. This API makes it simple and fast to store nested Python…
mb.
  • 1,293
  • 1
  • 12
  • 20
25
votes
3 answers

Importerror: No module named memcache (Django project)

In a Django project of mine, I run this command to run the project on localhost: python manage.py runserver It results in the error: Importerror: No module named memcache However, I've already fulfilled the requirement via: sudo apt-get install…
Hassan Baig
  • 15,055
  • 27
  • 102
  • 205
25
votes
1 answer

How to measure the size of a Ruby object?

I'm having Memcache problems and I was wondering what is the best way to know how big the objects I create are. The only solution I have is to put them into Memcache which display their size in bytes (by the way, can I customize Memcache's output? I…
martini-bonanza
  • 1,515
  • 3
  • 18
  • 33
25
votes
4 answers

Rails Caching DB Queries and Best Practices

The DB load on my site is getting really high so it is time for me to cache common queries that are being called 1000s of times an hour where the results are not changing. So for instance on my city model I do the following: def self.fetch(id) …
John Kopanas
  • 251
  • 1
  • 3
  • 3
25
votes
6 answers

Is there a port of memcache to .Net?

I am interested if there is a port for the server implementation.
David Robbins
  • 9,996
  • 7
  • 51
  • 82