Merging lp:~brianaker/libmemcached/rpm-mkdir-fix to Build branch
[m6w6/libmemcached] / docs / man / memcached.3
index 5756dbfcc7437697249811e02b1ff09c49e031da..fa0db98ae2c84b8fbba29ea561be9653b4bf0fde 100644 (file)
@@ -1,4 +1,4 @@
-.TH "MEMCACHED" "3" "April 14, 2011" "0.47" "libmemcached"
+.TH "MEMCACHED" "3" "May 31, 2012" "1.0.8" "libmemcached"
 .SH NAME
 memcached \- libmemcached Documentation
 .
@@ -31,6 +31,12 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .\" Man page generated from reStructeredText.
 .
 .SH SYNOPSIS
+.sp
+#include <libmemcached\-1.0/memcached.h>
+.INDENT 0.0
+.TP
+.B LIBMEMCACHED
+.UNINDENT
 .INDENT 0.0
 .TP
 .B memcached_st *memcached(const char\fI\ *string\fP, size_t\fI\ string_length\fP)
@@ -44,7 +50,7 @@ Compile and link with \-lmemcached
 .SH DESCRIPTION
 .sp
 Libmemcached implements a custom language for configuring and modifying
-servers. By passing in an option string you can generate a memcached_st object
+servers. By passing in an option string you can generate a \fBmemcached_st\fP object
 that you can use in your application directly.
 .INDENT 0.0
 .TP
@@ -54,6 +60,12 @@ that you can use in your application directly.
 Provide a servername to be used by the client. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1.
 .INDENT 0.0
 .TP
+.B \-\-SOCKET="<filepath>/?<optional_weight>"
+.UNINDENT
+.sp
+Provide a filepath to a UNIX socket file. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1.
+.INDENT 0.0
+.TP
 .B \-\-VERIFY\-KEY
 .UNINDENT
 .sp
@@ -261,7 +273,7 @@ End configutation processing.
 End configutation processing and throw an error.
 .SH RETURN
 .sp
-memcached() returns a pointer to the memcached_st that was
+\fI\%memcached()\fP returns a pointer to the memcached_st that was
 created (or initialized).  On an allocation failure, it returns NULL.
 .SH EXAMPLE
 .sp