
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
An open source Valkey client library that supports Valkey and Redis open source 6.2, 7.0, 7.2 and 8.0.
Valkey General Language Independent Driver for the Enterprise (GLIDE), is an open-source Valkey client library. Valkey GLIDE is one of the official client libraries for Valkey, and it supports all Valkey commands. Valkey GLIDE supports Valkey 7.2 and above, and Redis open-source 6.2, 7.0 and 7.2. Application programmers use Valkey GLIDE to safely and reliably connect their applications to Valkey- and Redis OSS- compatible services. Valkey GLIDE is designed for reliability, optimized performance, and high-availability, for Valkey and Redis OSS based applications. It is sponsored and supported by AWS, and is pre-configured with best practices learned from over a decade of operating Redis OSS-compatible services used by hundreds of thousands of customers. To help ensure consistency in application development and operations, Valkey GLIDE is implemented using a core driver framework, written in Rust, with language specific extensions. This design ensures consistency in features across languages and reduces overall complexity.
Refer to the Supported Engine Versions table for details.
The release of Valkey GLIDE was tested on the following platforms:
Linux:
macOS:
Python Version |
---|
3.9 |
3.10 |
3.11 |
3.12 |
3.13 |
To install Valkey GLIDE using pip
, follow these steps:
$ pip install valkey-glide
$ python3
>>> import glide
>>> import asyncio
>>> from glide import GlideClusterClientConfiguration, NodeAddress, GlideClusterClient
>>> async def test_cluster_client():
... addresses = [NodeAddress("address.example.com", 6379)]
... config = GlideClusterClientConfiguration(addresses)
... client = await GlideClusterClient.create(config)
... set_result = await client.set("foo", "bar")
... print(f"Set response is {set_result}")
... get_result = await client.get("foo")
... print(f"Get response is {get_result}")
...
>>> asyncio.run(test_cluster_client())
Set response is OK
Get response is bar
>>> import asyncio
>>> from glide import GlideClientConfiguration, NodeAddress, GlideClient
>>> async def test_standalone_client():
... addresses = [
... NodeAddress("server_primary.example.com", 6379),
... NodeAddress("server_replica.example.com", 6379)
... ]
... config = GlideClientConfiguration(addresses)
... client = await GlideClient.create(config)
... set_result = await client.set("foo", "bar")
... print(f"Set response is {set_result}")
... get_result = await client.get("foo")
... print(f"Get response is {get_result}")
...
>>> asyncio.run(test_standalone_client())
Set response is OK
Get response is bar
For complete examples with error handling, please refer to the cluster example and the standalone example.
Visit our wiki for examples and further details on TLS, Read strategy, Timeouts and various other configurations.
Development instructions for local building & testing the package are in the DEVELOPER.md file.
FAQs
An open source Valkey client library that supports Valkey and Redis open source 6.2, 7.0, 7.2 and 8.0.
We found that valkey-glide demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.