Modules API
Valkey Modules extend Valkey’s core commands and functionality. Starting in GLIDE 1.2, commonly used modules, like JSON and Vector Search, are supported through a dedicated wrapper interface.
General Concept
Section titled “General Concept”The Modules API provides convenient wrapper methods for commonly used Valkey modules. These wrappers are built on top of the Custom Command API, automatically constructing and executing the appropriate module commands. This allows for type-safe methods, parameter validation, and IDE autocomplete support. Under the hood, each wrapper method translates your call into the corresponding module command and executes it via the Custom Commands API.
Currently, GLIDE supports dedicated API for JSON and Search modules.
Requirements
Section titled “Requirements”Before using a module, including the supported modules, it will need to be loaded into Valkey. See Modules Introduction on how to load modules into your Valkey service.
GLIDE Version Requirements
Section titled “GLIDE Version Requirements”Below are the supported Valkey Modules and their minimum required GLIDE client versions:
| Module | Python | Node | Java | Go | C# | PHP |
|---|---|---|---|---|---|---|
| JSON | 0.3+ | 1.2+ | 1.2+ | 2.4+ | 1.1+ | N/A |
| SEARCH | 1.2+ | 1.2+ | 1.2+ | 2.4+ | 1.1+ | N/A |
What’s Next
Section titled “What’s Next”For examples on how to use the support modules, check out the following pages: