public static function initialize()
    {
        if (self::$registered) {
            return true;
        }

        try {
            // initialize the connection to memcached
            if (is_null(self::cache())) {
                return false;
            }
            // register the wrapper
            stream_wrapper_register(self::PROTOCOL, 'Shpasser\GaeSupportL5\Storage\CacheFs');
            self::$registered = true;
        } catch (\RuntimeException $ex) {
            return false;
        }

        return true;
    }
public static function initialize()
    {
        if (self::$registered) {
            return true;
        }

        try {
            // initialize the connection to memcached
            if (is_null(self::cache())) {
                return false;
            }
            // register the wrapper
            stream_wrapper_register(self::PROTOCOL, 'Shpasser\GaeSupportL5\Storage\CacheFs');
            self::$registered = true;
        } catch (\RuntimeException $ex) {
            return false;
        }

        return true;
    }
public static function initialize ( ) { if ( self :: $ registered ) { return true ; } try { // initialize the connection to memcached if ( is_null ( self :: cache ( ) ) ) { return false ; } // register the wrapper stream_wrapper_register ( self :: PROTOCOL , 'Shpasser\GaeSupportL5\Storage\CacheFs' ) ; self :: $ registered = true ; } catch ( \ RuntimeException $ ex ) { return false ; } return true ; }
Establishes a connection to memcached server and
registers the Stream Wrapper.

@return boolean 'true' if connection was successful, 'false' otherwise.
Establishes a connection to memcached server and registers the Stream Wrapper .