You can test your Membase Server installation by using Telnet to connect to the server and using the Memcached text protocol. This is the simplest method for determining if your Membase Server is running.
You will not need to use the Telnet method for communicating with your server within your application. Instead, use one of the Membase SDKs.
You will need to have telnet installed on your server to connect to Membase Server using this method. Telnet is supplied as standard on most platforms, or may be available as a separate package that should be easily installable via your operating systems standard package manager.
Connect to the server:
shell> telnet localhost 11211 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'.
Make sure it's responding (stats is a great way to check basic health):
stats STAT delete_misses 0 STAT ep_io_num_write 0 STAT rejected_conns 0 ... STAT time 1286678223 ... STAT curr_items_tot 0 ... STAT threads 4 STAT pid 23871 ... END
Put a key in:
set test_key 0 0 1 a STORED
Retrieve the key:
get test_key VALUE test_key 0 1 a END
quit Connection closed by foreign host. shell>
All of the Memcached protocols commands will work through Telnet.