Questions tagged [libmemcached]

libMemcached is an open source C/C++ client library and tools for the memcached server.

libmemcached
Filter by
Sorted by
Tagged with
1 vote
3 answers
7k views

Install memcached on Ubuntu 12.04

sudo pecl install memcached It prompts: libmemcached directory [no] : Tried the default value and a lot of different directories and downloaded source. Sure do enjoy these vague error messages. ...
jSnake04's user avatar
  • 113
1 vote
1 answer
382 views

Building libmemcached with SASL on Debian Wheezy

I'm trying to build libmemcached-1.0.18 on Debian Wheezy with libsasl2 in /usr/lib/x86_64-linux-gnu/libsasl2.so and memcached in /usr/bin/memcached. When I run ./configure --with-memcached-sasl --...
Jacek's user avatar
  • 464
0 votes
4 answers
4k views

Pip unable to install pylibmc

CentOS release 6.5 (Final). Python 2.7.5 using Virtualenv. > rpm -qa '*memcache*' libmemcached-devel-0.31-1.1.el6.x86_64 libmemcached-0.31-1.1.el6.x86_64 libmemcache-devel-1.4.0-0.1.rc2.el6.rf....
skyler's user avatar
  • 8,188
0 votes
2 answers
803 views

How can I reduce memcached key size using base64 encoding?

Here you can read: 64-bit UID's are clever ways to identify a user, but suck when printed out. 18446744073709551616. 20 characters! Using base64 encoding, or even just hexadecimal, you can cut ...
user avatar
0 votes
0 answers
532 views

PHP+Memcached exceptions when running via CLI

We recently started using the Memcached cache adapter provided by ZF2. While the server appears to be running perfectly when using the web browser (Apache HTTP Server), I have seen two different ...
webjawns.com's user avatar
  • 2,300
0 votes
0 answers
190 views

Using setOption function with memcache in php

I am using memcache extension for connecting and playing around with the Memcache server. But now, I want to use a function that is not present in this library but present in Memcached called ...
Manu's user avatar
  • 901
2 votes
2 answers
280 views

MySql 5.6 and missing libmemcached.so

After update Mysql 5.5 to 5.6 on debian I want start using memchached. In /usr/lib/mysql/plugin/ i do not see libmemcached.so plugin. How i can install this plugin and use?
Alexander Savenko's user avatar
0 votes
1 answer
568 views

Memcache Class still not found

Having a lot of trouble getting Memcache to work on my server. I have: Apached 2.4 PHP 5.5.11 Memcache 3.0.8 ts vc11 x86 I have placed the line: extension=php_memcache.dll In my php.ini file ...
imperium2335's user avatar
  • 23.8k
2 votes
1 answer
532 views

Preventing the python and ffmpeg heroku buildpacks from overwriting LD_LIBRARY_PATH

I'm deployng a Django app to heroku, which requires ffmpeg. To accomplish this I am using heroku-buildpack-multi to install both heroku-buildpack-ffmpeg and heroku-buildpack-python, and all of that ...
Simon's user avatar
  • 3,667
4 votes
2 answers
17k views

Install PECL Memcached Error

I followed the following steps to install PECL memcached in my Centos Server, always got errors. First. Install libmemcached cd /opt wget http://launchpad.net/libmemcached/1.0/0.40a/+download/...
Tester's user avatar
  • 798
2 votes
1 answer
552 views

MemcachedError on collectstatic with Django Storage and S3

I've deployed a bare-bones Django app on Heroku. When I run collectstatic to upload the static files to S3, I get the following error: Traceback (most recent call last): File "appname/manage.py", ...
geeljire's user avatar
  • 226
0 votes
1 answer
829 views

90th percentile latency of memcached

I'm running the memaslap client from libmemcached 1.0.16 to benchmark memcached-1.4.15 and I want to get the 90th percentile latency. Is there a good way to get it from memaslap? Or are there ...
trauzti's user avatar
  • 219
0 votes
1 answer
1k views

Working with memcache and mysql using memcache_functions_mysql UDFs

I have installed the following packages -- libevent-2.0.21 memcached-1.4.17 libmemcached-0.34 memcached_functions_mysql_1.1 All of the above have been installed successfully. The output of the ...
Ravi's user avatar
  • 2,462
1 vote
1 answer
265 views

Dokku install libmemcached

I am trying to deploy Django application with Dokku. My requirements.txt contains django-pylibmc that requires pre-installed libmemcached. So when I push my repo it fails with this message: remote: ...
Vladimir Nani's user avatar
1 vote
0 answers
151 views

c++ memcached_get doesn't return large values

This program are working fine memcached_st *memc; memcached_return rc; memcached_return error; memc= memcached_create(NULL); servers= memcached_server_list_append(servers, "localhost", 11211, &rc)...
RoiHatam's user avatar
  • 886
1 vote
0 answers
1k views

memcached turning off compression for certain keys

I have certain keys that I'd like to use append / prepend methods on, but the memcached documentation says I need to have compression turned off. Now, I'm assuming I would like to have compression on ...
Jacob Kranz's user avatar
40 votes
3 answers
15k views

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's user avatar
  • 39.2k
4 votes
0 answers
257 views

Having trouble installing pylibmc OSX 10.9

I've installed libmemcached with homebrew, and tried to install pylibmc with PIP but to no avail: Downloading/unpacking pylibmc==1.2.2 Running setup.py egg_info for package pylibmc Installing ...
Guy Bowden's user avatar
  • 5,047
0 votes
1 answer
50 views

Can I use memcached selectively?

How does memcached really work? If I have 5 different Percona MySQL databases d1, d2..d5, each serving a different PHP application a1, a2..a5 respectively, then can I just try to boost d1 with ...
OC2PS's user avatar
  • 1,059
3 votes
1 answer
978 views

UDP Benchmark for Memcached [closed]

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 ...
Udit Gupta's user avatar
  • 3,222
3 votes
2 answers
2k views

Persistent memcached in PHP - server pool growing until curr_connections 10

I have a problem with Memcached persistence in PHP. Memcached lib returns empty getServerList() until there are 10 concurrent connections. Couldn't find sensible explanation of that, but found people ...
s3m3n's user avatar
  • 4,197
1 vote
1 answer
320 views

How do I determine when data in memcached is supposed to expire?

I am working on a PHP Laravel project as a tester and I am trying to test to make sure that some data in Memcached (running this locally) only expires after 30 days. But I am having trouble figuring ...
Patrick's user avatar
  • 3,363
2 votes
0 answers
81 views

Inconsistent behavior of Memcached server 1.4 with php

I used the following combination :: OS -> CentOS php -> 5.4 Memcached Server -> 1.4 Memcached -> 2.1 [ client library for php ] ...
Tarun Chabarwal's user avatar
0 votes
1 answer
162 views

Connecting to remote services from multiple threaded requests

I have a boost asio application with many threads, similar to a web server, handling hundreds of concurrent requests. Every request will need to make calls to both memcached and redis (via ...
Harry's user avatar
  • 873
1 vote
1 answer
3k views

is memcached used by couchbase?

As i observe couchbase is using internally memcached server for storing data in memory. what is the advantage of memcached bucket over memcached server in couchbase as its using same damn thing. ...
nilesh's user avatar
  • 21
1 vote
1 answer
108 views

what is alternative of memcached_dump in libcouchbase?

as I observe did not found any alternative of memcached_dump in libcouchbase api. I have seen tap function in 1.8 version but as i observe it is not their in 2.0.
nilesh's user avatar
  • 21
2 votes
1 answer
1k views

To what extent is Couchbase a drop in replacement for Memcached

Official couchbase documentation says. "If you already have an application that uses the Memcached protocol then you can start using your Couchbase Server immediately. If so, you can simply ...
binithb's user avatar
  • 1,990
3 votes
1 answer
1k views

How to pass username and password in the localhost url to connect with the memcached in Java?

Hi, I want to pass the username and password to connect to localhost where I have deployed memcached. Here is my code. import java.io.IOException; import java.net.InetSocketAddress; import net.spy....
Zain's user avatar
  • 5,471
0 votes
1 answer
1k views

How to use consistent hashing in memcached c client?

I am using libmemcached c client for set and get the memcache value. memcached_server_st *servers = NULL; memcached_st *memc; memcached_return rc; char *key= "keystring"; char *value= "...
Querier's user avatar
  • 185
0 votes
2 answers
1k views

ibmemcached Linking Error: undefined reference to `memcached_exist'

I am trying to write a sample code using libmemcached c/c++ client version (0.53) gcc -o test test.c -I/home/libmemcached/include -L/home/libmemcached/lib -lmemcached -lmemcachedutil However i get ...
Antony1's user avatar
0 votes
1 answer
337 views

PHP class Libmemcached not found

I am transferring a PHP application 9running on apache) from Centos to Ubuntu. When I deploy the code on Ubuntu I get an error "Class Libmemcached not found". When I compare phpinfo pages, I can see ...
Vladimir Makhnovsky's user avatar
0 votes
1 answer
157 views

Couldn't store key: SYSTEM ERROR when running c program under cgi-bin

When I run following program from commandline on CentOS 6.4, I get the expected results but when I run it as Apache cgi, I error Couldn't store key: SYSTEM ERROR error. I am running Memcached, Apache ...
Me Unagi's user avatar
  • 415
0 votes
1 answer
831 views

Is consistent hashing implemented consistently the same in c and java memcached clients

I want to set the Memcache value in java and get the same through c client. Is it possible for multiple memcache environment. Does both use same hashing standards?
Querier's user avatar
  • 185
3 votes
1 answer
925 views

libmemcached - memcached_mget seems to block

I have a single memcached server. I use the libmemcached C api to interface with it. I am using non blocking mode and no reply mode (behavior flags). I am also using libmemcached inside an nginx C ...
florinp's user avatar
  • 329
0 votes
1 answer
2k views

When to use libmemcached in non-blocking mode?

I'm starting to integrate libmemcached into my application and reading the documentation, there is a non-blocking mode flag. After a quick google, there seems to be a performance advantage to non ...
Wiz's user avatar
  • 4,745
1 vote
0 answers
109 views

doesn't detect memcached failure

i am using libmemcached-0.32. I set the behavior flags as below memcached_behavior_set(memcached, MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT, 5); memcached_behavior_set(memcached, ...
JohnG's user avatar
  • 827
77 votes
11 answers
33k views

Error when install pylibmc using pip

Hello when I attempt to install pylibmc on OSX Lion using pip I get the following error: ./_pylibmcmodule.h:42:10: fatal error: 'libmemcached/memcached.h' file not found #include <libmemcached/...
harristrader's user avatar
  • 1,191
1 vote
1 answer
1k views

How to properly prevent memcached "protocol injection"?

I found that when I put \r\n in the key to get the value from memcached server, it can be used to inject the memcached protocol to run another command. Following is the code example, In PHP: <?...
lqs's user avatar
  • 1,434
5 votes
2 answers
10k views

how to install libmemcached for django framework in ubuntu 10.04

I installed libmemcached 0,37 and ln -s /usr/local/lib/libmemcached.so.2 /usr/lib/libmemcached.so.2 but when I run manage.py it still return import _pylibmc RuntimeError: pylibmc requires >= ...
zztczcx's user avatar
  • 430
2 votes
1 answer
489 views

Zend_Session_SaveHandler_Interface and a session_id mysterie

I'm trying to setup my own Zend_Session_SaveHandler based on this code http://blog.digitalstruct.com/2010/10/24/zend-framework-cache-backend-libmemcached-session-cache/ This works great, except that ...
Peter's user avatar
  • 1,211
1 vote
2 answers
2k views

data stored by pylibmc cannot be uncompressed in php memcached

We have an application where we are using python to store lots of data in memcached.We are using pylibmc in python and on php side we are using php-memcached library.As a summary pylibmc v.1.2.3 php-...
Shades88's user avatar
  • 8,162
1 vote
1 answer
891 views

PECL-Memcache can't read INTs set from PECL-Memcached

I'm in the process of switching applications from PHP PECL-Memcache client to PECL-Memcached and I'm hitting a snag. It seems that if I set an INT value from PECL-Memcached that PECL-Memcache can't ...
Gary Richardson's user avatar
0 votes
1 answer
1k views

Libmemcached make error

I am having a problem with the make command for libmemcached, it throws up all these errors near the end of the command CXX example/memcached_light.o example/memcached_light.cc:40:19: error: event....
boundless08's user avatar
1 vote
1 answer
2k views

How to install libmemcache on CentOS [closed]

I need to install libmemcache onto a CentOS box. I don't have root privileges, so preferably everything would go somewhere inside my home directory. I've tried downloading libmemcached-1.0.12.tar.gz ...
Chap's user avatar
  • 3,709
0 votes
1 answer
912 views

Problems building libmemcached on Mac OSX (and Mint, and CentOS)

Downloaded the tarball from https://launchpad.net/libmemcached/+download/libmemcached-1.0.12.tar.gz (linked to from libmemcached.org). Ran the usual ./configure + make protocol, got a number of ...
Chap's user avatar
  • 3,709
0 votes
1 answer
1k views

Configuring SASL support in libmemcached

I'm trying to build libmemcached with SASL support on OS X Mountain Lion. I have built memcached (1.4.15) with SASL support: $ memcached -S -vv Initialized SASL. slab class 1: chunk ...
John Keyes's user avatar
  • 5,574
0 votes
1 answer
374 views

Asynchronous libmemcached usage

I want to use the method memcached_mget_execute() to retrieve values from a memcached server. But I get the following error message: "ACTION NOT SUPPORTED, ASCII protocol is not supported for ...
sourabh0612's user avatar
3 votes
2 answers
6k views

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 ...
Hayden's user avatar
  • 361
0 votes
1 answer
188 views

"sudo make" returns error memcache setup [closed]

As per this post. I was able to ./configure after installing libmemcache-devel, but now when I move to the next setup and run sudo make I get the following: Making all in src make[1]: Entering ...
Hayden's user avatar
  • 361
2 votes
1 answer
2k views

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 ...
Hayden's user avatar
  • 361