Installing memcached for a django project

Just do pip install python-memcached and you should be good. As for installing memcached itself, it depends on the platform you are on. Windows – http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-for-php/ OS X – brew install memcached Debian/Ubuntu – sudo apt-get install memcached On OS X/Linux, just run memcached in the command line.

What’s the memcached server

I agree with most things @phihag has answered but I must clarify some things. Memcached stores data according to a key (phihag called it an id, not to be confused with database ids). Data can be of various sizes so you can store small bits (like 1 record pulled from the database) or you can … Read more

Rails.cache error in Rails 3.1 – TypeError: can’t dump hash with default proc

This might be a little verbose but I had to spend some time with the Rails source code to learn how the caching internals work. Writing things down aids my understanding and I figure that sharing some notes on how things work can’t hurt. Skip to the end if you’re in a hurry. Why It … Read more

Laravel Lumen Memcached not found

I spent 3 hours on this problem today. With the help of the post of demve in this topic, I found the solution. Very simple! I hope it won’t affect me later in my development. Just to it, in the .env file : CACHE_DRIVER=array SESSION_DRIVER=array QUEUE_DRIVER=array Ok, I make an UPDATE because I was faced … Read more

Memcache maximum key expiration time

You can set key expiration to a date, by supplying a Unix timestamp instead of a number of days. This date can be more than 30 days in the future: Expiration times are specified in unsigned integer seconds. They can be set from 0, meaning “never expire”, to 30 days (60*60*24*30). Any time higher than … Read more

Java Memcached Client [closed]

As the author of spymemcached, I’m a bit biased, but I’d say it’s mine for the following reasons: Designed from scratch to be non-blocking everywhere possible. When you ask for data, issue a set, etc… there’s one tiny concurrent queue insertion and you get a Future to block on results (with some convenience methods for … Read more

Memcache vs Java Memory

Advantages of Java memory over memcache: Java memory is faster (no network). Java memory won’t require serialization, you have Java objects available to you. Advantages of memcache over Java memory: It can be accessed by more than one application server, so your cache will be shared among all your app servers. It can be accessed … Read more

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