1 Getting version information about the client and server
2 =======================================================
7 #include <libmemcached/memcached.h>
9 .. function:: const char * memcached_lib_version (void)
11 .. function:: memcached_return_t memcached_version (memcached_st *ptr)
13 Compile and link with -lmemcached
18 :func:`memcached_lib_version` is used to return a simple version string representing the libmemcached version (client library version, not server version)
20 :func:`memcached_version` is used to set the major, minor, and micro versions of each memcached server being used by the memcached_st connection structure. It returns the memcached server return code.
25 :func:`memcached_lib_version` returns a string with the version of the libmemcached driver.
27 A value of :type:`memcached_return_t` is returned from :func:'memcached_version'
29 On success that value will be `MEMCACHED_SUCCESS`.
31 If called with the `MEMCACHED_BEHAVIOR_USE_UDP` behavior set, the value
32 `MEMCACHED_NOT_SUPPORTED` will be returned.
34 Use :func:`memcached_strerror` to translate this value to
42 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`