Skip to content

Memory optimization for ScriptEvaluate #2843

Closed

Description

@pairbit

Please add method overloads.
This will allow using ArrayPool.Rent and reuse buffers

Task<RedisResult> ScriptEvaluateMemoryAsync(string script, ReadOnlyMemory<RedisKey> keys, ReadOnlyMemory<RedisValue> values, 
CommandFlags flags = CommandFlags.None)

Task<Lease<byte>?> ScriptEvaluateMemoryLeaseAsync(string script, ReadOnlyMemory<RedisKey> keys, ReadOnlyMemory<RedisValue> values, 
CommandFlags flags = CommandFlags.None)

Activity

  1. atakavci commented on Mar 5, 2025

    @atakavci
    Contributor

    hey @mgravell , @NickCraver , would you like to see a PR for this ?? i can go for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions