1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Commit Graph

2112 Commits

Author SHA1 Message Date
Nikolay Karadzhov
ab399a8a22 Release redis@5.1.0 redis@5.1.0 2025-05-20 16:20:35 +03:00
Nikolay Karadzhov
78c6d603f2 Updated the Redis package to use client@5.1.0 2025-05-20 16:17:43 +03:00
Nikolay Karadzhov
8d34ee207e Release time-series@5.1.0 time-series@5.1.0 2025-05-20 16:12:49 +03:00
Nikolay Karadzhov
7fca460305 Updated the Timeseries package to use client@5.1.0 2025-05-20 16:07:45 +03:00
Nikolay Karadzhov
2cc68647fe Release search@5.1.0 search@5.1.0 2025-05-20 16:06:45 +03:00
Nikolay Karadzhov
4bb23283c3 Updated the Search package to use client@5.1.0 2025-05-20 16:05:08 +03:00
Nikolay Karadzhov
a485936a9f Release json@5.1.0 json@5.1.0 2025-05-20 16:03:59 +03:00
Nikolay Karadzhov
a1b41e2dbc Updated the Json package to use client@5.1.0 2025-05-20 16:03:07 +03:00
Nikolay Karadzhov
f2a3c1bf5c Release entraid@5.1.0 entraid@5.1.0 2025-05-20 16:01:52 +03:00
Nikolay Karadzhov
e938bda0d9 Updated the Entraid package to use client@5.1.0 2025-05-20 16:01:04 +03:00
Nikolay Karadzhov
3d53e254d4 Release bloom@5.1.0 bloom@5.1.0 2025-05-20 15:59:14 +03:00
Nikolay Karadzhov
4f7f83478b Updated the Bloom package to use client@5.1.0 2025-05-20 15:57:45 +03:00
Nikolay Karadzhov
00845570ac Release client@5.1.0 client@5.1.0 2025-05-20 15:53:24 +03:00
Gary Burgmann
1294b4b8e0 issue/2956 - document disableClientInfo (#2957)
* issue/2956 - document disableClientInfo

* issue/2956 - remove accidental disableOfflineQueue bold
2025-05-20 15:36:40 +03:00
Nikolay Karadzhov
4a5f879ec9 fix(client): bring disableClientInfo option back (#2959)
* fix(client): bring disableClientInfo option back

It disappeared in v5

fixes #2958
2025-05-20 15:15:09 +03:00
Nikolay Karadzhov
f3d1d3352e feat(client): expose socketTimeout option (#2965)
The maximum duration (in milliseconds) that the socket can remain idle (i.e., with no data sent or received) before being automatically closed. Default reconnectionStrategy will ignore the new SocketTimeoutError, but users are allowed to have custom strategies wich handle those errors in different ways
2025-05-20 14:28:15 +03:00
Hristo Temelski
d0a5c4c945 Fix sentinel csc tests (#2966)
Co-authored-by: H. Temelski <hristo.temelski@redis.com>
2025-05-20 11:04:11 +03:00
Bobby I.
f01f1014cb Client Side Caching (#2947)
* CSC POC ontop of Parser

* add csc file that weren't merged after patch

* address review comments

* nits to try and fix github

* last change from review

* Update client-side cache and improve documentation

* Add client side caching RESP3 validation

* Add documentation for RESP and unstableResp3 options

* Add comprehensive cache statistics

The `CacheStats` class provides detailed metrics like hit/miss counts,
load success/failure counts, total load time, and eviction counts.
It also offers derived metrics such as hit/miss rates, load failure rate,
and average load penalty. The design is inspired by Caffeine.

`BasicClientSideCache` now uses a `StatsCounter` to accumulate these
statistics, exposed via a new `stats()` method. The previous
`cacheHits()` and `cacheMisses()` methods have been removed.

A `recordStats` option (default: true) in `ClientSideCacheConfig`
allows disabling statistics collection.

---------

Co-authored-by: Shaya Potter <shaya@redislabs.com>
2025-05-19 15:11:47 +03:00
Nikolay Karadzhov
6f961bd715 fix(client): cache subsequent clients (#2963)
* fix(client): cache subsequent clients

we dont need to recreate a client if
its config hasnt changed

fixes #2954

* handle circular structures

* make cache generic
2025-05-14 17:23:22 +03:00
Bobby I.
ebd03036d6 revert the 'total' count logic in AGGREGATE response introduced in #2952 (#2955)
> FT.AGGREGATE returns an array reply where each row is an array reply and represents a single aggregate result.
The integer reply at position 1 does not represent a valid value.

https://redis.io/docs/latest/commands/ft.aggregate/#return
2025-05-09 10:13:32 +03:00
Bobby I.
5e9fea1fd3 Update Redis version to 8.0.1-pre (#2952)
> FT.AGGREGATE returns an array reply where each row is an array reply
and represents a single aggregate result.
> The integer reply at position 1 does not represent a valid value.

We now calculate the result length bazed on the number of results
instead of the integer reply at pos 1
2025-05-08 15:14:30 +03:00
Hristo Temelski
bb7845dfe3 Disable readOnly for cluster s/pubsub client (#2950) 2025-05-08 10:29:05 +03:00
Clubsandwich
86480aaa74 fix cluster.sUnsubscribe - make listener optional (#2946) 2025-05-07 16:11:09 +03:00
Nikolay Karadzhov
73d7ae71cc update package-lock.json (#2943) 2025-05-07 16:10:50 +03:00
Nikolay Karadzhov
7b737821b2 fix: fix various command import issues (#2944)
* fix: fix various command import issues

there was some sort of a circular dependency
in <module>/lib/commands/index.ts for various modules

fixes #2937 fixes #2941

* remove redundant definition
2025-05-07 16:10:35 +03:00
Orgad Shaneh
bc4b2101ee Export CommandParser from client index file and fix doc (#2945)
* Export CommandParser from client index file

* Tidy up long export line in client index file

Wrap and sort entries.

* Adapt and fix wrong examples in programmability doc
2025-05-07 16:10:03 +03:00
Nikolay Karadzhov
87b77e3e5f fix(client): add type annotations (#2949)
Fix type parameter for transformTuplesReply in CONFIG_GET and HGETALL commands

fixes #2933
2025-05-07 13:47:23 +03:00
Nikolay Karadzhov
52e5562356 Release redis@5.0.1 redis@5.0.1 2025-05-05 12:28:40 +03:00
Nikolay Karadzhov
fd069641f3 Updated the Redis package to use client@5.0.1 2025-05-05 12:21:02 +03:00
Nikolay Karadzhov
71ab009ef8 Release time-series@5.0.1 time-series@5.0.1 2025-05-05 12:03:48 +03:00
Nikolay Karadzhov
1e976d24cc Updated the Timeseries package to use client@5.0.1 2025-05-05 12:03:17 +03:00
Nikolay Karadzhov
17179ddb35 Release search@5.0.1 search@5.0.1 2025-05-05 12:02:20 +03:00
Nikolay Karadzhov
cc13ae298e Updated the Search package to use client@5.0.1 2025-05-05 12:01:39 +03:00
Nikolay Karadzhov
e99cd073b6 Release json@5.0.1 json@5.0.1 2025-05-05 12:00:46 +03:00
Nikolay Karadzhov
84680d6e5a Updated the Json package to use client@5.0.1 2025-05-05 12:00:10 +03:00
Nikolay Karadzhov
67cde227cc Release entraid@5.0.1 entraid@5.0.1 2025-05-05 11:59:07 +03:00
Nikolay Karadzhov
57e5daab98 Updated the Entraid package to use client@5.0.1 2025-05-05 11:58:23 +03:00
Nikolay Karadzhov
6714ad109d Release bloom@5.0.1 bloom@5.0.1 2025-05-05 11:57:11 +03:00
Nikolay Karadzhov
2c9faad2d9 Updated the Bloom package to use client@5.0.1 2025-05-05 11:55:40 +03:00
Nikolay Karadzhov
404db30837 Release client@5.0.1 client@5.0.1 2025-05-05 11:51:15 +03:00
Nikolay Karadzhov
f6912b03da Update packages/redis/README.md (#2935)
* copy root readme into redis readme

* fix links

* update supported versions

* update supported versions
2025-05-05 11:38:51 +03:00
Nikolay Karadzhov
2c9ad2e772 chore(examples): fix examples for v5 (#2938) 2025-05-05 11:35:41 +03:00
Nikolay Karadzhov
bd5c230c62 fix: update package-lock.json (#2939) 2025-05-05 11:29:59 +03:00
Nicholas Wilson
bab1211ad4 Updated CHANGELOG.md, fix typo(s) (#2861) 2025-05-03 16:34:15 +03:00
Aryan Pandey
964b8de06d docs: clarify connection pooling in createClient and fix broken link in isolationPoolOptions (#2896)
- Added a Connection Pooling section in `createClient` documentation to clarify that a single connection is typically sufficient and to provide guidance on when to use a connection pool.
- Updated `isolationPoolOptions` description with a more precise explanation and replaced the broken link with a reference to `createClientPool`.
- Changes made based on issue #2845.
2025-05-03 16:32:56 +03:00
H. Temelski
47e297077a Release redis@5.0.0 redis@5.0.0 2025-04-30 17:20:34 +03:00
Nikolay Karadzhov
1daf0f02da Updated the Redis package to use client@5.0.0 2025-04-30 17:17:15 +03:00
Nikolay Karadzhov
16fb7e02da Release time-series@5.0.0 time-series@5.0.0 2025-04-30 17:15:15 +03:00
Nikolay Karadzhov
912e0d8170 Updated the Timeseries package to use client@5.0.0 2025-04-30 17:14:39 +03:00
Nikolay Karadzhov
30cecc4b48 Release search@5.0.0 search@5.0.0 2025-04-30 17:13:28 +03:00