You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command enables the tracking feature of the Redis server, that is used
78
-
for [server assisted client side caching]({{< relref "/develop/use/client-side-caching" >}}).
78
+
for [server assisted client side caching]({{< relref "/develop/connect/clients/client-side-caching#tracking" >}}).
79
79
80
80
When tracking is enabled Redis remembers the keys that the connection
81
81
requested, in order to send later invalidation messages when such keys are
@@ -85,7 +85,7 @@ when the RESP3 protocol is used) or redirected in a different connection
85
85
available where clients participating in this protocol receive every
86
86
notification just subscribing to given key prefixes, regardless of the
87
87
keys that they requested. Given the complexity of the argument please
88
-
refer to [the main client side caching documentation]({{< relref "/develop/use/client-side-caching" >}}) for the details. This manual page is only a reference for the options of this subcommand.
88
+
refer to [the main client side caching documentation]({{< relref "/develop/reference/client-side-caching" >}}) for the details. This manual page is only a reference for the options of this subcommand.
Copy file name to clipboardExpand all lines: content/commands/client-trackinginfo/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ syntax_fmt: CLIENT TRACKINGINFO
29
29
syntax_str: ''
30
30
title: CLIENT TRACKINGINFO
31
31
---
32
-
The command returns information about the current client connection's use of the [server assisted client side caching]({{< relref "/develop/use/client-side-caching" >}}) feature.
32
+
The command returns information about the current client connection's use of the [server assisted client side caching]({{< relref "/develop/connect/clients/client-side-caching" >}}) feature.
33
33
34
34
Here's the list of tracking information sections and their respective values:
Because adding a `try-with-resources` block for each command can be cumbersome, consider using `JedisPooled` as an easier way to pool connections. `JedisPooled`, added in Jedis version 4.0.0, provides capabilities similar to `JedisPool` but with a more straightforward API.
System.out.println(jedis.get("foo")); // prints "bar"
359
+
```
318
360
319
-
As mentioned in the previous section, use `JedisPool` or `JedisPooled` to create a connection pool.
320
-
`JedisPooled`, added in Jedis version 4.0.0, provides capabilities similar to `JedisPool` but with a more straightforward API.
321
361
A connection pool holds a specified number of connections, creates more connections when necessary, and terminates them when they are no longer needed.
322
362
323
363
Here is a simplified connection lifecycle in a pool:
The following sections explain how to handle situations that may occur
409
+
in your production environment.
410
+
366
411
### Timeouts
367
412
368
413
To set a timeout for a connection, use the `JedisPooled` or `JedisPool` constructor with the `timeout` parameter, or use `JedisClientConfig` with the `socketTimeout` and `connectionTimeout` parameters:
A typical approach with Lettuce is to create a single `RedisClient` instance and reuse it to establish connections to your Redis server(s).
236
236
These connections are multiplexed; that is, multiple commands can be run concurrently over a single or a small set of connections, making explicit pooling less practical.
237
+
See
238
+
[Connection pools and multiplexing]({{< relref "/develop/connect/clients/pools-and-muxing" >}})
239
+
for more information.
237
240
238
241
Lettuce provides pool config to be used with Lettuce asynchronous connection methods.
0 commit comments