1 Getting version information
2 ===========================
7 #include <libmemcached/memcached.h>
8 Compile and link with -lmemcached
10 .. function:: const char * memcached_lib_version (void)
12 :returns: version string of `libmemcached`
14 .. function:: memcached_return_t memcached_version (memcached_st *ptr)
16 :param ptr: pointer to initialized `memcached_st` struct
17 :returns: `memcached_return_t` indicating success
22 :func:`memcached_lib_version` is used to return a simple version string
23 representing the `libmemcached` version (client library, not server).
25 :func:`memcached_version` is used to set the major, minor, and micro versions of
26 each memcached server being used by the `memcached_st` connection structure.
27 It returns the memcached server return code.
32 :func:`memcached_lib_version` returns a string with the version of the libmemcached driver.
34 A value of :type:`memcached_return_t` is returned from :func:'memcached_version'
36 On success that value will be `MEMCACHED_SUCCESS`.
38 If called with the `MEMCACHED_BEHAVIOR_USE_UDP` behavior set, the value
39 `MEMCACHED_NOT_SUPPORTED` will be returned.
41 Use :func:`memcached_strerror` to translate this value to
49 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`