The Cache::Memcached::libmemcached module for Perl makes use of the C libmemcached library, and therefore shares the same features and functionality of the main C library.
Because Cache::Memcached::libmemcached is based on libmemcached, the Perl Cache::Memcached::libmemcached module is a Type 1 interface.
The easiest way to download and install Cache::Memcached::libmemcached module is to use CPAN:
You must set the list of memcached servers to be used, either explicitly when the new object is created, or using the server_add() method to append a server to the existing configuration.
For example:
Is equivalent to:
You can store values using the set() method:
If the value that you set is an object, the object will be serialized on store and deserialized on retrieval.
To retrieve a value: