Please consider adding a ReadOnlySequence buffer to RedisValue. #3112
This will allow:
-
Reading a Stream of unknown length without allocating a finite-size buffer;
-
Using the same buffers from RequestBufferPool;
-
Slicing a large ReadOnlySequence into multiple RedisValue's.
For example:
I read Json from RequestBody.
Using Utf8JsonReader, i read the array of strings through the ValueSequence property. Save all strings to redis with one command.
Please consider adding a ReadOnlySequence buffer to RedisValue. #3112
This will allow:
Reading a Stream of unknown length without allocating a finite-size buffer;
Using the same buffers from RequestBufferPool;
Slicing a large ReadOnlySequence into multiple RedisValue's.
For example:
I read Json from RequestBody.
Using Utf8JsonReader, i read the array of strings through the ValueSequence property. Save all strings to redis with one command.