@@ -8,15 +8,15 @@ namespace audio_tools {
8
8
9
9
/* *
10
10
* @brief Buffer implementation that stores and retrieves data from a Redis
11
- * server using Arduino Client.
11
+ * server using the Arduino Client.
12
12
*
13
13
* This buffer uses a Redis list as a circular buffer and batches read/write
14
14
* operations for efficiency. Individual write/read calls are buffered locally
15
15
* using SingleBuffer and only sent to Redis in bulk when writeArray/readArray
16
16
* is called or when the buffer is full/empty. This reduces network overhead and
17
17
* improves performance for streaming scenarios.
18
18
*
19
- * - Uses RPUSH for writing and LRANGE/LTRIM for reading from Redis.
19
+ * - Uses RPUSH for writing and LPOP for reading from Redis.
20
20
* - All Redis commands are constructed using the RESP protocol and sent via the
21
21
* Arduino Client API.
22
22
* - The buffer size for local batching can be configured via the constructor.
@@ -35,12 +35,12 @@ class RedisBuffer : public BaseBuffer<T> {
35
35
* EthernetClient).
36
36
* @param key Redis key to use for the buffer (list).
37
37
* @param max_size Maximum number of elements in the buffer.
38
- * @param local_buf_size Size of the local buffer for batching (default: 32 ).
38
+ * @param local_buf_size Size of the local buffer for batching (default: 512 ).
39
39
* @param expire_seconds Number of seconds after which the Redis key should
40
40
* expire (0 = no expiration).
41
41
*/
42
42
RedisBuffer (Client& client, const char * key, size_t max_size,
43
- size_t local_buf_size = 512 , int expire_seconds = 10 * 60 )
43
+ size_t local_buf_size = 512 , int expire_seconds = 60 * 60 )
44
44
: client(client),
45
45
key (key),
46
46
max_size(max_size),
0 commit comments