Questions tagged [libmemcached]

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

110 questions
0
votes
1 answer

libmemcached - checking if I'm connected

Is there an easy way to check if a given memcached_st* is successfully connected to a memcached server? I'm connecting via memcached_server_add_with_weight, and it's returning MEMCACHED_SUCCESS when I give it spurious hostnames. Similarly, calling…
Dominic Rodger
  • 97,747
  • 36
  • 197
  • 212
0
votes
0 answers

configure, compile, and make memcached.a file instead of memcached executable

I am able to compile in Linux memcached into an executable. i am using 1.6.19 version source https://memcached.org/downloads/. there are two questions: Can I build it for targets Windows, Mac, and Linux? I want the memcached source file has to have…
Gary
  • 2,293
  • 2
  • 25
  • 47
0
votes
1 answer

Unable to load MemcacheD extension in PHP 8.1.7

I am running the PECL PHP-Memcached 3.2.0 on PHP 7.x and PHP 8.1.0 Windows servers without problem. Unfortunately, it's impossible to make it work under PHP 8.1.7. Unable to load dynamic library - The specified module could not be found I obviously…
b126
  • 544
  • 4
  • 11
0
votes
0 answers

Already defined symbol (void * __cdecl operator new(unsigned __int64,void *) when using libmemcached

I'm creating and using libmemcached with Visual Studio. Since we have updated the compiler version operator new and new [] are defined in that library and I get errors when linking a DLL. dumpbin /symbols microsoft_net_16_YlibmemcachedD.lib | grep…
user12429628
0
votes
1 answer

What's the default behavior of memcache for MEMCACHED_BEHAVIOR_NO_BLOCK?

As is stated in the doc "Default behavior is the library strives to be quick and accurate" and MEMCACHED_BEHAVIOR_NO_BLOCK Causes libmemcached(3) to use asychronous IO. This is the fastest transport available for storage functions. I want to know…
konchy
  • 573
  • 5
  • 16
0
votes
1 answer

Throughput setting in Memaslap (a memcached testing tool) does not seem to work

I am testing the response time of memcached by using memaslap. The memaslap is installed in a lxc (container with 1 core and 1 cache way), and the memcached is installed in another lxc (7 cores with 19 cache ways). I use the default settings for…
Dennis
  • 7
  • 3
0
votes
1 answer

How does PHP memcached determine which node in a cluster to store a key on?

I have some data that I want to store in memcached (using the PHP libmemcached client: https://www.php.net/manual/en/intro.memcached.php). It's something that's hit extremely frequently across my web app. In order to reduce the amount of traffic to…
Zachary Wright
  • 23,480
  • 10
  • 42
  • 56
0
votes
2 answers

Trying to compile libmemcached in Solaris 10 SPARC

I have a SPARC enterprise server with Solaris 10 SPARC OS installed. I have unpacked the tarball file 'libmemcached-0.10.tar.gz' into a directory and I am trying to compile it. I get the following error on terminal pod2man: command not found What…
0
votes
0 answers

Compiling libmemcached in OpenSolaris/OpenIndiana

I wish to compile libmemcached into OpenIndiana OS. The configure process works perfectly with the following output configure: creating ./config.status config.status: creating libhashkit/hashkitcon.h config.status: creating…
0
votes
1 answer

Unable to send UDP get request to memcached server with libmemcached module

I'm writing a Memcached UDP client with libmemcached/memcached.h to send some arbitrary loads on Memcached server. I can send set requests in UDP but I'm unable to send get requests, here is the snippet I wrote for this! #include #include…
Alireza Sanaee
  • 465
  • 1
  • 7
  • 21
0
votes
1 answer

install shibboleth sp: Requires: libmemcached.so.2

I'm trying install shibboleth sp. I added the repository: sudo curl -o /etc/yum.repos.d/security:shibboleth.repo http://download.opensuse.org/repositories/security:/shibboleth/CentOS_7/security:shibboleth.repo But when I run: sudo yum install…
0
votes
0 answers

Class 'Memcache' not found in config.php file

I am trying to run php with memcache support but I am constantly receiving this error message in the config.php file. Fatal error: Class 'Memcache' not found in Below is the relevant config.php snippet require…
xor
  • 2,668
  • 2
  • 28
  • 42
0
votes
1 answer

Memcached "get" returns nothing, but "cachedump" returns the key

I use memcached to store some HTML files, but sometimes I cannot retrieve them. I am using telnet to connect to memcached. I run stats cachedump 0 which gives me an output similar to ITEM mobile-https://local.master.lan/url-path-1 [232372 b;…
b2238488
  • 990
  • 2
  • 15
  • 32
0
votes
1 answer

memcache: strategy for updating keys?

What could be better way to update a frequently existing key in memcache set() or replace()? Observation: I have observed set vs replace influence on evictions. Can any one confirm whats the difference from memory management point for these 2…
arunk2
  • 2,246
  • 3
  • 23
  • 35
0
votes
1 answer

Can't compile php --with-libmemcached-dir is not recognized?

I am running into a strange issue when compiling php 7. I got that error : configure: WARNING: unrecognized options: --with-libmemcached-dir Any idea ?