About |
About -> News -> Memcached supportMemcahed implementation of the memory caching APIA new module that provides a new caching method using memcached servers was added. Advantages over the existing "localcache" module:
Limitations:
Requirements:
Usage:
E.g: ... modparam("memcached", "server","group1 = localhost:9999,127.0.0.1" ); modparam("memcached", "server","y = random_url:8888" ); ... This creates two groups of servers( one called "group1" and one called "y"). Calls to the two groups will be done via the memcache API by passing the first parameter as "memcached_($GROUP_NAME)". E.g: ... cache_store("memcached_group1","key","$ru value"); ... This stores "key"="$ru value" on the group denoted by "group1". The key is only stored on one of the servers in a consistent fashion (subsequent calls with "key" will be stored, deleted from the same server). ... cache_fetch("memcached_y","key",$avp(i:10)); cache_remove("memcached_y","key"); ... This attempts to fetch/remove key from the group named "y". |