Questions tagged [libmemcache]

Libmemcache is the C API for memcached, a high-performance, distributed memory object caching system.

64 questions
15
votes
2 answers

Memcache Consistent Hashing, Cluster, PHP code, Ketama and all about it

I have been trying for the whole day to understand and code for Memcache with PHP but I am getting confused at few points. I have gone through many articles and almost every SO questions related this but could not find exact answers. 1) What would…
user2925077
12
votes
3 answers

Memcache PHP extension on windows 10 works intermittently

I have memcache extensions on apache/php windows 10 (details at the end) Created a simple test: $memcache = new…
Nir
  • 22,471
  • 25
  • 78
  • 114
8
votes
2 answers

PHP sessions not being saved in memcache

Running an application using php 5.4 on AWS using the Amazon Linux. PHP version is PHP 5.4.28. memcache lib installed from the AWS repo is php54-pecl-memcache-3.0.8-1.11.amzn1.x86_64 I have verified that php is using…
chris
  • 33,326
  • 50
  • 148
  • 232
5
votes
0 answers

Zend Framework memcache session save handler and using existing session

I've got a legacy PHP application on a main domain which uses memcache as a backend for our sessions. This works great. I'm trying to add a new Zend Framework application on a subdomain that can share the same sessions that get created on the main…
Jeremy Hicks
  • 3,640
  • 5
  • 38
  • 48
5
votes
2 answers

PHP memcache - check if any server is available in pool?

I have the following code: $cluster['local'] = array('host' => '192.168.1.1', 'port' => '11211', 'weight' => 50); $cluster['local2'] = array('host' => '192.168.1.2', 'port' => '11211', 'weight' => 50); $this->memcache = new Memcache; foreach…
Industrial
  • 36,181
  • 63
  • 182
  • 286
5
votes
2 answers

Build errors when trying to install pylibmc

Just got a new laptop, setting up my dev environment from scratch, and I'm getting this weird error that doesn't seem to be a result of missing dependencies (though I could be wrong). I'm working in a virtualenv with Python 2.7.3. Libevent,…
renegadeofunk
  • 425
  • 1
  • 3
  • 9
4
votes
1 answer

pecl install memcache fails on OS X Yosemite with "memcache support requires ZLIB"

I'm trying to perform a pecl install memcache with XAMPP on OS X Yosemite, but it fails to find zlib, producing this error: checking for the location of ZLIB... no checking for the location of zlib... configure: error: memcache support requires…
MMuzammilQ
  • 147
  • 1
  • 11
3
votes
1 answer

UDP Benchmark for Memcached

I am looking for an Open source UDP Benchmarking client for Memcached Server. If any one knows of any one that would be of great help. We are trying to write our own client but somehow it is working for TCP but not for UDP. I am actually looking for…
Udit Gupta
  • 2,772
  • 11
  • 38
  • 68
2
votes
2 answers

PHP Memcached keys and incrememnting version numbers to invalidate cache - How?

I am beginning to add a memcached layer to my application. so far so good. I realised quite quickly however that I will be needing to invalidate/delete large batches of keys in one go when someone uploads a file to the site in order to keep the data…
gordyr
  • 5,618
  • 13
  • 51
  • 118
2
votes
1 answer

gcc failed with exit status 1 when installing libmemcached

While trying to follow the python-libmemcached instructions at http://code.google.com/p/python-libmemcached/ I run into trouble at step 3 ("python setup.py install") (gigmash_venv)m:python-libmemcached matthewparrilla$ python setup.py build …
Matt Parrilla
  • 2,901
  • 4
  • 30
  • 50
2
votes
1 answer

Having huge problems getting memcached plugin working on ub 9.04

Heya, so I've spent about 6 hours now trying to get this working. I had the following set of rules I uses to compile in the memcached plugin to php, installing libmemcached dependency first. Here are the steps: cd ~ sudo wget…
onassar
  • 2,776
  • 6
  • 32
  • 48
2
votes
0 answers

Memcached / Memcache Keys Not Expiring

It seems that data expires as expected with Memcached, but the keys themselves never expire. Why are the keys sticking around after the value has nulled? When I run this code: $frontCache = new Phalcon\Cache\Frontend\Data(array( "lifetime" =>…
Tabby Laredo
  • 177
  • 3
  • 9
2
votes
1 answer

How to fix?: mysql> show variables like 'plugin_dir'; Does not show plugin_dir location

After this post I continued to try to setup MySQL memcached User-Defined Functions as per these instructions: http://stanley-huang.blogspot.com/2010/04/level-3-install-memcached-user-defined.html But now when trying to find the plugin_dir location I…
Hayden
  • 241
  • 3
  • 17
2
votes
1 answer

libmemcached path?

Trying to follow these instructions: (http://dev.mysql.com/doc/refman/5.1/en/ha-memcached-interfaces-mysqludf.html) shell> tar zxf memcached_functions_mysql-1.1.tar.gz shell> cd memcached_functions_mysql-1.1 shell> # If memcached library is not…
Hayden
  • 241
  • 3
  • 17
2
votes
2 answers

using memcached_get() in libmemcached without value_length

so I got a question very much related to: question with memcached_get() in libmemcached it doesn't seem apparent or possible to me from the documentation. is it possible to get a value based on a key without knowing the length of the data? i plan on…
jcfrei
  • 1,797
  • 4
  • 17
  • 34
1
2 3 4 5