- 2.3.1 Basic memcached Operations
- 2.3.2 Using memcached as a MySQL Caching Layer
- 2.3.3 Using
libmemcachedwith C and C++
- 2.3.4 Using MySQL and memcached with Perl
- 2.3.5 Using MySQL and memcached with Python
- 2.3.6 Using MySQL and memcached with PHP
- 2.3.7 Using MySQL and memcached with Ruby
- 2.3.8 Using MySQL and memcached with Java
- 2.3.9 Using the memcached TCP Text Protocol
A number of language interfaces let applications store and retrieve information with memcached servers. You can write memcached applications in popular languages such as Perl, PHP, Python, Ruby, C, and Java.
Data stored into a memcached server is referred to by a single string (the key), with storage into the cache and retrieval from the cache using the key as the reference. The cache therefore operates like a large associative array or hash table. It is not possible to structure or otherwise organize the information stored in the cache. To emulate database notions such as multiple tables or composite key values, you must encode the extra information into the strings used as keys. For example, to store or look up the address corresponding to a specific latitude and longitude, you might turn those two numeric values into a single comma-separated string to use as a key.