Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite wird beschrieben, wie Sie Clientbibliotheken für die Memorystore for Redis API installieren, damit Sie eine Verbindung zur API in der Sprache Ihrer Wahl herstellen können.
Diese Plug-ins bieten zusätzliche Funktionen, wie z. B. die Schlüsselverwaltung für Dienstkonten. Einzelheiten finden Sie in der Dokumentation der einzelnen Plug-ins.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-19 (UTC)."],[],[],null,["# Setting up client libraries\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis page shows how to install client libraries for the Memorystore for Redis API\nso you can connect to the API with the language of your choice.\n\nInstalling the client library\n-----------------------------\n\n### C++\n\nSee [Setting up a C++ development environment](/cpp/docs/setup)\nfor details about this client library's requirements and install dependencies.\n\n### C#\n\nInstall the Google.Cloud.Redis.V1 package in Visual Studio\n\n### Go\n\n```sh\ngo get cloud.google.com/go/redis/apiv1\n```\n\n### Java\n\nIf you are using Maven, add this to your pom.xml file:\n\n\u003cbr /\u003e\n\n```java\n\u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003egoogle-cloud-redis\u003c/artifactId\u003e\n \u003cversion\u003e0.62.0-alpha\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nIf you are using Gradle, add this to your dependencies: \n\n```java\ncompile 'com.google.cloud:google-cloud-redis:0.62.0-alpha'\n```\n\nIf you are using SBT, add this to your dependencies: \n\n```java\nlibraryDependencies += \"com.google.cloud\" % \"google-cloud-redis\" % \"0.62.0-alpha\"\n```\n\nIf you're using VS Code, IntelliJ, or Eclipse, you can add client libraries\nto your project using these IDE plugins:\n\n- [Cloud Code for VS Code](/code/docs/intellij/client-libraries)\n- [Cloud Code for IntelliJ](/code/docs/vscode/client-libraries)\n- [Cloud Tools for Eclipse](/eclipse/docs/libraries)\n\nThe plugins provide additional functionality, such as key management for\nservice accounts. Refer to each plugin's documentation for details.\n\n### Node.js\n\n```sh\nnpm install @google-cloud/redis\n```\n\n### PHP\n\n```sh\ncomposer require google/cloud-redis\n```\n\n### Python\n\nFor more on setting up your Python development environment, refer to [Python Development Environment Setup Guide](/python/docs/setup). \n\n```sh\npip install --upgrade google-cloud-redis\n```\n\n### Ruby\n\n```sh\ngem install google-cloud-redis\n```\n\n\u003cbr /\u003e\n\nSetting up authentication\n-------------------------\n\n1.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n2.\n\n If you're using a local shell, then create local authentication credentials for your user\n account:\n\n ```bash\n gcloud auth application-default login\n ```\n\n You don't need to do this if you're using Cloud Shell.\n\n\n If an authentication error is returned, and you are using an external identity provider\n (IdP), confirm that you have\n [signed in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\n A sign-in screen appears. After you sign in, your credentials are stored in the\n [local credential file used by ADC](/docs/authentication/application-default-credentials#personal).\n\nAdditional Resources\n--------------------\n\n### C++\n\n- [API Reference Documentation](/cpp/docs/reference/redis/latest)\n- [Source Code](https://github.com/googleapis/google-cloud-cpp)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-cpp/issues)\n- [Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-memorystore%5D%5Bc%2B%2B%5D)\n\n### C#\n\n- [API Reference Documentation](http://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Redis.V1/#googlecloudredisv1)\n- [Source Code](https://github.com/googleapis/google-cloud-dotnet/tree/master/apis/Google.Cloud.Redis.V1)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-dotnet/issues)\n- [Stack Overflow](http://stackoverflow.com/search?q=%5Bgoogle-cloud-memorystore%5D+%5Bc%23%5D)\n\n### Go\n\n- [API Reference Documentation](https://godoc.org/cloud.google.com/go/redis/apiv1)\n- [Source Code](https://github.com/GoogleCloudPlatform/google-cloud-go/tree/master/redis/apiv1)\n- [GitHub Issue Tracker](https://github.com/GoogleCloudPlatform/google-cloud-go/issues)\n- [Stack Overflow](http://stackoverflow.com/search?q=%5Bgoogle-cloud-memorystore%5D+%5Bgo%5D)\n\n### Java\n\n- [API Reference Documentation](https://cloud.google.com/java/docs/reference/google-cloud-redis/latest/overview)\n- [Source Code](https://github.com/googleapis/google-cloud-java/tree/main/java-redis)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-java/issues)\n- [Stack Overflow](http://stackoverflow.com/search?q=%5Bgoogle-cloud-memorystore%5D+%5Bjava%5D)\n\n### Node.js\n\n- [API Reference Documentation](https://googleapis.dev/nodejs/redis/latest)\n- [Source Code](https://github.com/googleapis/nodejs-redis)\n- [GitHub Issue Tracker](https://github.com/googleapis/nodejs-redis/issues)\n- [Stack Overflow](http://stackoverflow.com/search?q=%5Bgoogle-cloud-memorystore%5D+%5Bnode.js%5D)\n\n### PHP\n\n- [API Reference Documentation](/php/docs/reference/cloud-redis/latest)\n- [Source Code](https://github.com/GoogleCloudPlatform/google-cloud-php/tree/master/Redis)\n- [GitHub Issue Tracker](https://github.com/GoogleCloudPlatform/google-cloud-php/issues)\n- [Stack Overflow](http://stackoverflow.com/search?q=%5Bgoogle-cloud-memorystore%5D+%5Bphp%5D)\n\n### Python\n\n- [API Reference Documentation](/python/docs/reference/redis/latest)\n- [Source Code](https://github.com/googleapis/python-redis)\n- [GitHub Issue Tracker](https://github.com/GoogleCloudPlatform/google-cloud-python/issues)\n- [Stack Overflow](http://stackoverflow.com/search?q=%5Bgoogle-cloud-memorystore%5D+%5Bpython%5D)\n\n### Ruby\n\n- [API Reference Documentation](https://googleapis.dev/ruby/google-cloud-redis/latest/Google/Cloud/Redis/V1.html)\n- [Source Code](https://github.com/GoogleCloudPlatform/google-cloud-ruby)\n- [GitHub Issue Tracker](https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues)\n- [Stack Overflow](http://stackoverflow.com/search?q=%5Bgoogle-cloud-memorystore%5D+%5Bruby%5D)\n\n\u003cbr /\u003e"]]