Currently browsing tag

memcached tutorial

Memcached Tutorial

Memcached is Free & open source, high-performance, distributed memory object caching system. Memcached is used by almost all the major websites with …

How to install Memcached Server on Windows as Service

In my earlier posts, I explained how to install memcached server on *nix and Mac OS systems. Today I will explain how to install memcached server on Windows operating system.

To install Memcached Server on Windows, we need to have its exe or batch process but memcached server was written for *nix operating system and you can’t get a Windows version from memcached server official website.

The problem is solved by Jellycan Code and they provide the Win32 version in binary format that can be used to install memcached server on Windows.

Memcached Java Client with sample program

In my previous post, I listed down most common telnet commands for memcached with sample execution terminal logs. Today I want to discuss about the Memcached Client program available in Java language.

There are three most widely used memcached client programs in java

1. xmemcached
2. spymemcached
3. gwhalin memcached client

I have used Greg Whalin memcached client and found it easy to understand and use. It provides all the basic functionalities with thread pooling. Its available under BSD license and you can download it from below URL:

Memcached Telnet Commands with example

In earlier posts, we saw how to install memcached server on Mac OS and Unix systems. After that we worked on it to start at boot time as a daemon process in Mac OS. Today, we will go through some of the basic memcached telnet commands that we can use to check the health of memcached server. These commands are very helpful in debugging purpose and can be used from any operating system with telnet installed.

If you are on unix system, then using “ps -eaf | grep memcached” command you can check the port on which its running.

How to setup Memcached Server to run at boot time in Mac OS

If you want to run memcache when system boots for Mac OS, then you have to put the PList configuration file in /Library/LaunchDaemons/ directory and set the owner to root user.

Create a file in the /Library/LaunchDaemons/ directory with name memcached.plist having below content.

How to install Memcached Server on Mac OS/Linux

Memcached is an open source high performance distributed memory object caching system. It is one of the most widely used cache mechanism used by some of the biggest websites like and It is also used by VBulletin software, for faster performance, that is one of the best software for Forums. Its easy to install and there are so many client programs available on Internet in different languages.

Memcached is a memory based caching mechanism and build using C language. To install memcached server on Mac OS or Linux we need C library. Here I am assuming that C library is already present in the system. If its not, then you can download C compiler and install it or install XCode that installs gcc compiler with it.

Subscribe to JournalDev Newsletter
Get the FREE access to Monthly Newsletter and Free PDF eBooks
*No Spam Guaranteed. By entering your email address, you agree also subscribing to our newsletter.
Oops! - Something went wrong.
Cryptography For Dummies - eBook (usually $22.99) FREE for a limited time! Download Now
Exclusive Offer: Citrix™ Whitepaper on Denial of Service Attack Download Now