get_memcached_server

Description

Used by cache_get_data() and cache_put_data() to pick a (random) memCache server.

Syntax

void get_memcached_server ([int $level])



Parameter $level

Expected type: Integer
Description: How many times the function should recursively call itself before giving up. Default is 3.


Notes

  • Attempts to connect to a random server in the cache_memcached setting.
  • Recursively calls itself up to $level times.
  • Most errors here are suppressed
Advertisement: