
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@valkey/valkey-glide
Advanced tools
General Language Independent Driver for the Enterprise (GLIDE) for Valkey
Valkey General Language Independent Driver for the Enterprise (GLIDE) is the official open-source Valkey client library, proudly part of the Valkey organization. Our mission is to make your experience with Valkey and Redis OSS seamless and enjoyable. Whether you're a seasoned developer or just starting out, Valkey GLIDE is here to support you every step of the way.
See GLIDE's documentation site.
Visit our wiki for examples and further details on TLS, Read strategy, Timeouts and various other configurations.
Refer to the Supported Engine Versions table for details.
The release of Valkey GLIDE was tested on the following platforms:
Linux with glibc 2.17 or higher.
MacOS Apple Silicon/aarch_64 and x86_64/amd64.
All alpine versions that are using musl libc 1.2.3 (All Alpine non deprecated alpine versions) or higher should be supported. Tests are running on:
Node.js 16 or higher. For npm users on linux it is recommended to use npm >=11 since it support optional download base on libc, yarn users should not be concerned
Development instructions for local building & testing the package are in the DEVELOPER.md file.
npm i @valkey/valkey-glide
import { GlideClient, GlideClusterClient, Logger } from "@valkey/valkey-glide";
// When Valkey is in standalone mode, add address of the primary node, and any replicas you'd like to be able to read from.
const addresses = [
{
host: "localhost",
port: 6379,
},
];
// Check `GlideClientConfiguration/GlideClusterClientConfiguration` for additional options.
const client = await GlideClient.createClient({
addresses: addresses,
// if the server uses TLS, you'll need to enable it. Otherwise, the connection attempt will time out silently.
// useTLS: true,
// It is recommended to set a timeout for your specific use case
requestTimeout: 500, // 500ms timeout
clientName: "test_standalone_client",
});
// The empty array signifies that there are no additional arguments.
const pong = await client.customCommand(["PING"]);
console.log(pong);
const set_response = await client.set("foo", "bar");
console.log(`Set response is = ${set_response}`);
const get_response = await client.get("foo");
console.log(`Get response is = ${get_response}`);
import { GlideClient, GlideClusterClient, Logger } from "@valkey/valkey-glide";
// When Valkey is in cluster mode, add address of any nodes, and the client will find all nodes in the cluster.
const addresses = [
{
host: "localhost",
port: 6379,
},
];
// Check `GlideClientConfiguration/GlideClusterClientConfiguration` for additional options.
const client = await GlideClusterClient.createClient({
addresses: addresses,
// if the cluster nodes use TLS, you'll need to enable it. Otherwise the connection attempt will time out silently.
// useTLS: true,
// It is recommended to set a timeout for your specific use case
requestTimeout: 500, // 500ms timeout
clientName: "test_cluster_client",
});
// The empty array signifies that there are no additional arguments.
const pong = await client.customCommand(["PING"], { route: "randomNode" });
console.log(pong);
const set_response = await client.set("foo", "bar");
console.log(`Set response is = ${set_response}`);
const get_response = await client.get("foo");
console.log(`Get response is = ${get_response}`);
client.close();
Currently, the package is tested on:
Operation systems | C lib | Architecture |
---|---|---|
Linux | glibc , musl libc | x86_64 , arm64 |
macOS | Darwin | x86_64 , arm64 |
We encourage you to join our community to support, share feedback, and ask questions. You can approach us for anything on our Valkey Slack: Join Valkey Slack.
2.0.1 (2025-07-19)
opentelemetry
protocols support (#3191)opentelemetry
metrics support (#3466)opentelemetry
moved, retry attemps counters and set_status (#3944)+inf
and -inf
as score (#3370)ZUNION
(#3119)ZUNIONSTORE
(#3136)XINFO CONSUMERS
(#3120)XINFO GROUPS
(#3106)ZInterCard
(#3078)ZLEXCOUNT
(#3140)ZInterCard
(#3232)runtime.Pinner
or cgo.Handle
(#3208)BZPOPMAX
and ZMPOP
#3257sync.Mutex
and a channel map (#3236)GeoAdd
and the Geospatial interface (#3366)LOLWUT
(#3355)BITPOS
(#3407)FLUSHALL
(#3117)FLUSHDB
(#3117)PFMERGE
(#3082)GlideClient
and GlideClusterClient
and for factory constructor for all clients (#3418)BITOP
(#3384)GeoHash
(#3439)GeoPos
(#3409)GeoDist
(#3446)ClientId
(#3077)LastSave
(#3086)Config Reset Stat
(#3121)GeoSearch
and GeoSearchStore
(#3385)ConfigSet
& ConfigGet
for cluster client (#3274, #3594)ClientSetName
& ClientGetName
(#3302)Move
(#3369)Scan
(#3378)LCS
(#3475)Publish
(#3417)PubSubChannels
(#3665)PubSubNumPat
(#3666)PubSubNumSub
(#3667)Sharded Publish
(#3692)PubSub ShardChannels
(#3695)PubSub ShardNumSub
(#3708)Config Rewrite
(#3156)Random Key
(#3358)ExpirySet
(#3554)WATCH
and UNWATCH
(#4054)Transaction
and ClusterTransaction
(#3561)ZRangeWithScores
to return an ordered result (#3694)BZMPOP
and ZMPOP
to return Map<String, Object>
and Map<GlideString, Object>
instead of Object[]
(#3733)context
(#3802)EchoWithOptions
to be more user-friendly (#3806)requestTimeout
and connectionTimeout
to be of type time.Duration
(#3857)PFADD
to return a boolean rather than an integer (#4094)time.Duration
for timeouts (#4086)time.Duration
(check PR for list of commands modified) (#4105)XAdd
without optional arguments (#4141)ZAddIncr
Return Type to be float64
(#4190)LMPop
and related commands (#4166)ZRankWithScore
and ZRevRankWithScore
update response type (#4196)customCommand
API for cluster client (#3593)netty
version (#3804)GeoHash
's return type to allow for both strings and null (#4098)ClientGetName
returns a nullable string (#4088)FAQs
General Language Independent Driver for the Enterprise (GLIDE) for Valkey
The npm package @valkey/valkey-glide receives a total of 23,389 weekly downloads. As such, @valkey/valkey-glide popularity was classified as popular.
We found that @valkey/valkey-glide demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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 Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.