Skip to content

Add ReadOnlySequence to RedisValue #3113

Description

@pairbit

Please consider adding a ReadOnlySequence buffer to RedisValue. #3112

This will allow:

  1. Reading a Stream of unknown length without allocating a finite-size buffer;

  2. Using the same buffers from RequestBufferPool;

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions