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
2
votes
1 answer

What the php caches that support tagging?

I need a cache system for PHP that suport tags. It's will be used caching a lot of queries results, from many users, and every time I will need to clear some user cache, or some module cache... I thinked, and conclude that tagging are the best way…
Tiago Gouvêa
  • 15,036
  • 4
  • 75
  • 81
2
votes
1 answer

How to connect to memcached server from outside?

I installed memcached on AWS EC2 Ubuntu, and I can connect it by telnet in the server: telnet localhost 11211 But how can I connect it from other machine? I know the interval ip is 172.31.17.208, but when I try to connect it from another EC2…
Jeff Tian
  • 5,210
  • 3
  • 51
  • 71
2
votes
1 answer

How to connect separate memcache server on Ubuntu and Use from other server?

I have LAMP based PHP & MySql web application hosted on digitalocean separate servers in Singapore region. One PHP server + one remote MySql DB server, both are working fine. Because the app has to read more than the write, I wanted to add one…
2
votes
1 answer

How to approach caching in a web application?

this might be a more general question, not just Rails related. I'm about to start working on an application that will need to employ some kind of caching strategy sooner or later. How to approach caching when programming a web application? Should I…
notme
  • 21
  • 2
2
votes
1 answer

Symfony Bundles : DoctrineCacheBundle - Memcached

I'm testing a DoctrineCacheBundle of Symfony on XAMPP. and IDE is phpstorm. but I have an issue about PHP Fatal error : Class 'Memcached' not found in ... Can you give me an advice ? my configuration is below. #…
Ryan Lim
  • 23
  • 1
  • 6
2
votes
1 answer

Issues installing Memcached

I am facing issues installing memcaced on my machine (Ubuntu 14.04) after downloading it from here . When I try to extract the tar file, it shows the below error : DaarioNaharis :~/Softwares/memcached$ tar zxvf memcached-1.4.25.tar.gz gzip: stdin:…
bub
  • 657
  • 1
  • 9
  • 18
2
votes
1 answer

Get PHP memcached stats and version from unix socket

I am able to successfully get the memcached version with PHP 5.6 when listening on a TCP port addServer('localhost', 11211); print_r($m->getStats()); print_r($m->getVersion()); ?> Then I get the output I…
Mike Andreasen
  • 379
  • 2
  • 11
2
votes
3 answers

Do I need external 2nd level cache for multiple NHibernate instances in Windows Azure?

I am developing AMF Flash gateway on FlourineFx application for deployment on Windows Azure and I want to use Azure SQL. I use NHibernate 2.1 + NHibernate.Linq 1.0 + FluentNHibernate 1.1 There will be two or more instances of this FlourineFx gateway…
mizi_sk
  • 1,007
  • 7
  • 33
2
votes
3 answers

Docker install PHP-7-fpm with Memcache extention ? fails with Cannot find config.m4

I am trying install Docker with PHP version 7.0 with memcache support, my docker-file is as below, however it fails @STEP 10 with error Step 10 : RUN /usr/bin/phpize ---> Running in 450678a59cd4 Cannot find config.m4. Make sure that you run…
mahen3d
  • 7,047
  • 13
  • 51
  • 103
2
votes
2 answers

rails 4 fragment caching for different views

In my rails 4 app I'm trying to take off with caching, but I'm a bit confused thanks to the different versions of cache-key-settings, cache helpers and auto-expiration. So let me ask this through few examples. I don't move the examples to different…
2
votes
1 answer

Doctrine Result caching with Memcached

I've just installed Memcached and i'm trying to use it to cache results of various queries done with Doctrine ORM (Doctrine 2.4.8+, Symfony 2.8+). My app/config/config_prod.yml have this : doctrine: orm: metadata_cache_driver:…
Harest
  • 31
  • 7
2
votes
1 answer

MEMCACHED get method always returns null

I'm trying to implement caching in our application using Memcached, I was able to set the key and value to the server, but when I'm trying to get the value it always return a null. Below is my sample code snippet. //memcached configuration in my…
r-r
  • 307
  • 2
  • 15
2
votes
0 answers

In dally gem, "socket_max_failures" options in not working for write and read operations

I am using dalli 2.7.0. I faced a problem where the memcache instance became unreachable. When a set request was triggered, it should have timed out in 0.5 seconds (the default timeout), instead the dalli client kept retrying. On further…
2
votes
1 answer

C# byte array doesn't understand by Java

i am using memcache , for communicating between java and c#. c# put data into memcache in byte[] format and from java application trying to read that byte array but in Java i m getting String Object . Sample :- C# code MemcachedClient _mc = new…
DJ DJ
  • 21
  • 1
2
votes
2 answers

When edited the entity, I made a mistake and it cached

When edited the entity, I made a mistake but I corrected it immediately, but it somehow cached, now I do not have such this in project but error still exists. I don't know have to clear doctrine cache with zend2 or what to do? I tried: -sh-4.2$…