public function check($driver)
    {
        switch ($driver) {
            case self::DRIVER_MEMCACHE:
                return extension_loaded('memcache');
            case self::DRIVER_MEMCACHED:
                return extension_loaded('memcached');
        }
        return false;
    }