繁花如伊
您可以使用Python Client for Google Cloud Memorystore for Redis API来创建它。您可以使用Python客户端库的create_instance方法,该方法根据指定的层和内存大小创建Redis实例async create_instance(request: google.cloud.redis_v1.types.cloud_redis.CreateInstanceRequest = None, *, parent: str = None, instance_id: str = None, instance: google.cloud.redis_v1.types.cloud_redis.Instance = None, retry: google.api_core.retry.Retry = <object object>, timeout: float = None, metadata: Sequence[Tuple[str, str]] = ())