Back to MemcachedStorage class

Method isSupported

public static bool
isSupported
()
Test to see if the storage handler is available.
Returns
  • bool
Since
  • 3.0.0

Method isSupported - Source code

/**
 * Test to see if the storage handler is available.
 *
 * @return  boolean
 *
 * @since   3.0.0
 */
public static function isSupported()
{
    /*
     * GAE and HHVM have both had instances where Memcached the class was defined but no extension was loaded.
     * If the class is there, we can assume support.
     */
    return class_exists('Memcached');
}