memcached
Is it recommended to store PHP Sessions in MemCache?
1: YES. And I strongly recommend storing PHP sessions in Memcached. Here’s why: Memcached is great for storing small chunks of data that are frequently accessed by the database and filesystem. Memcached was designed specifically for sessions. It was originally the brainchild of the lead developer of livejournal.com and later used to also cache the … Read more
Memcached with Windows and .NET
Why do you need to run memcached on windows? It’s an expensive affair in a production environment. If your code needs to run in a Windows environment get a windows memcached client and talk to a *nix based memcached machine. In a production environment running memcached on Server 2003 or 2008 would mean that you … Read more
NoSQL (MongoDB) vs Lucene (or Solr) as your database [closed]
This is a great question, something I have pondered over quite a bit. I will summarize my lessons learned: You can easily use Lucene/Solr in lieu of MongoDB for pretty much all situations, but not vice versa. Grant Ingersoll’s post sums it up here. MongoDB etc. seem to serve a purpose where there is no … Read more
Can I get Memcached running on a Windows (x64) 64bit environment?
North Scale labs have released a build of memcached 1.4.4 for Windows x64: http://blog.couchbase.com/memcached-windows-64-bit-pre-release-available http://labs.northscale.com/memcached-packages/ UPDATE: they have recently released Memcached Server – still FREE but enhanced distro with clustering, web-based admin/stats UI etc. (I’m not related to them in any way) Check it out at http://northscale.com/products/memcached.html and download at: http://www.northscale.com/download.php?a=d UPDATE 2: NorthScale Memcached … Read more
PHP memcached Fatal error: Class ‘Memcache’ not found
There are two extensions for memcached in PHP, “memcache” and “memcached“. It looks like you’re trying to use one (“memcache”), but the other is installed (“memcached”).
Memcached vs APC which one should I choose? [closed]
Memcached is a distributed caching system, whereas APC is non-distributed – and mainly an opcode cache. If (and only if) you have a web application which has to live on different webservers (loadbalancing), you have to use memcache for distributed caching. If not, just stick to APC and its cache. You should always use an … Read more
When should I use Memcache instead of Memcached?
Memcached client library was just recently released as stable. It is being used by digg ( was developed for digg by Andrei Zmievski, now no longer with digg) and implements much more of the memcached protocol than the older memcache client. The most important features that memcached has are: Cas tokens. This made my life … Read more
Memcached vs. Redis? [closed]
Summary (TL;DR) Updated June 3rd, 2017 Redis is more powerful, more popular, and better supported than memcached. Memcached can only do a small fraction of the things Redis can do. Redis is better even where their features overlap. For anything new, use Redis. Memcached vs Redis: Direct Comparison Both tools are powerful, fast, in-memory data … Read more
Best way of creating a record cache ( Memcache in this example ) [closed]
Why even worry about this? The point is that the query is cached. If the results of two different queries partially overlap, well, so be it. Unless those results are many many megabytes in size and hence take a lot of space, it doesn’t matter. What does matter is that if you want to run … Read more