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
47
votes
6 answers

How do I see if memcached is already running on my chosen port?

I am having some problems with memcached and one idea I am having is that perhaps it is already running on the port I am trying to run it on, started by some other user on our network. Is there a way to tell what memcached ports are currently in…
barclay
  • 4,362
  • 9
  • 48
  • 68
45
votes
2 answers

What's the memcached server

I'm a beginner in learning memcached. The memcached server confused me most. Can I see it as a single server computer just like web server? I'm also confused about the relationship between memcached server and client, are they located at different…
Allen Jee
  • 719
  • 2
  • 7
  • 14
44
votes
2 answers

Installing memcached for a django project

From the django docs: After installing Memcached itself, you'll need to install a memcached binding. There are several python memcached bindings available; the two most common are python-memcached and pylibmc. The pylibmc docs have their own…
Matt Parrilla
  • 3,171
  • 6
  • 35
  • 54
41
votes
12 answers

Get list of Cache Keys in Django

I'm trying to understand how Django is setting keys for my views. I'm wondering if there's a way to just get all the saved keys from Memcached. something like a cache.all() or something. I've been trying to find the key with cache.has_key('test')…
Brenden
  • 8,264
  • 14
  • 48
  • 78
40
votes
3 answers

Installing pylibmc on Ubuntu

When running pip install pylibmc on Ubuntu, I get the following error: _pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
Zags
  • 37,389
  • 14
  • 105
  • 140
39
votes
4 answers

Which .NET Memcached client do you use, EnyimMemcached vs. BeITMemcached?

Seems like both EnyimMemcached (https://github.com/enyim/EnyimMemcached) and BeITMemcached (http://code.google.com/p/beitmemcached/) are popular .NET Memcached libraries. Both are reasonably active projects under development and have over a thousand…
Ray
  • 12,101
  • 27
  • 95
  • 137
39
votes
2 answers

How to cache Django Rest Framework API calls?

I'm using Memcached as backend to my django app. This code works fine in normal django query: def get_myobj(): cache_key = 'mykey' result = cache.get(cache_key, None) if not result: result =…
39
votes
14 answers

Apache is "Unable to initialize module" because of module's and PHP's API don't match after changing the PHP configuration

php -v gives this PHP Warning: PHP Startup: memcache: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in Unknown on line 0 PHP Warning: PHP Startup:…
soshial
  • 5,906
  • 6
  • 32
  • 40
39
votes
5 answers

windows - php_memcache.dll - for PHP 5.4

I am borrowing the similar thread that wasn't helpfull for me: php_memcache.dll for PHP 5.3 I setup a server using the latest version of easyPHP for Windows. With it came PHP 5.4. I'm now looking for a memcache.dll file that worked for me before and…
DS_web_developer
  • 3,622
  • 13
  • 52
  • 83
36
votes
3 answers

expected declaration, found 'IDENT' item

Im writing a small code using Memcache Go API to Get data stored in one of its keys . Here are few of lines of code i used ( got the code from Go app-engine docs ) import "appengine/memcache" item := &memcache.Item { Key: "lyric", Value:…
Karthic Rao
  • 3,624
  • 8
  • 30
  • 44
36
votes
7 answers

Convert buffer to array

I am setting memcached with $memcached->set("item" , ["1" => "hello"]); anything work in PHP , In Node.js with memcached plugin , I get a buffer instead of array in result I can not convert such buffer to array In…
Ata
  • 12,126
  • 19
  • 63
  • 97
35
votes
7 answers

How to enable the memcached PHP extension after installing with homebrew?

I recently installed memcached with homebrew, I'm not entirely sure how to enable it on my PHP envirionment since I added extension=memcached.so in /etc/php.ini in Lion OS X. Even I restarted apache too, nothing is still loaded. If I call…
MacMac
  • 34,294
  • 55
  • 151
  • 222
35
votes
7 answers

How can we create two instances of memcached server in same server in different port?

I tried to add in the way -l 11211 -l 11212 in memcached conf file. But it is just listening to first one i.e 1121
panalbish
  • 363
  • 1
  • 3
  • 11
35
votes
4 answers

Is Memcache recommended when using MongoDB?

I would like to know if Memcache is recommended when using a NoSQL database like mongoDB.
Daniel Vigueras
  • 361
  • 1
  • 3
  • 6
35
votes
2 answers

How much memory of Memcache is available to a Google App Engine account?

Google App Engine has some information about Memcache limits: http://code.google.com/appengine/docs/quotas.html#Memcache http://code.google.com/appengine/docs/python/memcache/overview.html#Quotas_and_Limits However, total allowed size of…
Viet
  • 17,944
  • 33
  • 103
  • 135