Reference documentation and code samples for the Cloud Memorystore for Memcached v1 API class CloudMemcache.
Configures and manages Cloud Memorystore for Memcached instances.
The memcache.googleapis.com service implements the Google Cloud Memorystore
for Memcached API and defines the following resource model for managing
Memorystore Memcached (also called Memcached below) instances:
The service works with a collection of cloud projects, named: /projects/*
Each project has a collection of available locations, named: /locations/*
Each location has a collection of Memcached instances, named:
/instances/*
As such, Memcached instances are resources of the form:
/projects/{project_id}/locations/{location_id}/instances/{instance_id}
Note that location_id must be a GCP region; for example:
public static void BindService(ServiceBinderBase serviceBinder, CloudMemcache.CloudMemcacheBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the CloudMemcache API is 2.5.0, and the documentation covers multiple versions, ranging from 1.0.0 to 2.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe CloudMemcache class provides methods for configuring and managing Cloud Memorystore for Memcached instances within Google Cloud projects.\u003c/p\u003e\n"],["\u003cp\u003eMemcached instances are organized within projects and locations, with the resource format being \u003ccode\u003e/projects/{project_id}/locations/{location_id}/instances/{instance_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService\u003c/code\u003e method allows creating a service definition for server-side handling logic, and another overload of \u003ccode\u003eBindService\u003c/code\u003e enables registering service methods with a service binder.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace of this library is \u003ccode\u003eGoogle.Cloud.Memcache.V1\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud Memorystore for Memcached v1 API - Class CloudMemcache (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.CloudMemcache)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.4.0/Google.Cloud.Memcache.V1.CloudMemcache)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.3.0/Google.Cloud.Memcache.V1.CloudMemcache)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.2.0/Google.Cloud.Memcache.V1.CloudMemcache)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.1.0/Google.Cloud.Memcache.V1.CloudMemcache)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.0.0/Google.Cloud.Memcache.V1.CloudMemcache)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.2.0/Google.Cloud.Memcache.V1.CloudMemcache)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.1.0/Google.Cloud.Memcache.V1.CloudMemcache)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.0.0/Google.Cloud.Memcache.V1.CloudMemcache) \n\n public static class CloudMemcache\n\nReference documentation and code samples for the Cloud Memorystore for Memcached v1 API class CloudMemcache.\n\nConfigures and manages Cloud Memorystore for Memcached instances.\n\nThe `memcache.googleapis.com` service implements the Google Cloud Memorystore\nfor Memcached API and defines the following resource model for managing\nMemorystore Memcached (also called Memcached below) instances:\n\n- The service works with a collection of cloud projects, named: `/projects/*`\n- Each project has a collection of available locations, named: `/locations/*`\n- Each location has a collection of Memcached instances, named: `/instances/*`\n- As such, Memcached instances are resources of the form: `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`\n\nNote that location_id must be a GCP `region`; for example:\n\n- `projects/my-memcached-project/locations/us-central1/instances/my-memcached` \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CloudMemcache \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Memcache.V1](/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Memcache.V1.dll\n\nMethods\n-------\n\n### BindService(CloudMemcacheBase)\n\n public static ServerServiceDefinition BindService(CloudMemcache.CloudMemcacheBase serviceImpl)\n\nCreates service definition that can be registered with a server\n\n### BindService(ServiceBinderBase, CloudMemcacheBase)\n\n public static void BindService(ServiceBinderBase serviceBinder, CloudMemcache.CloudMemcacheBase serviceImpl)\n\nRegister service method with a service binder with or without implementation. Useful when customizing the service binding logic.\nNote: this method is part of an experimental API that can change or be removed without any prior notice."]]