Skip to content

Maximum call stack size exceeded when calling mset with an array bigger than 103,000 #2522

Open
@omer727

Description

@omer727

Description

When passing an array to mset bigger than 103000 I get

const arr = new Array(103000).fill('1');
cacheRepo.multiSetObject(arr); 

will throw a Maximum call stack size exceeded exception on

if (Array.isArray(toSet)) {
        args.push(...toSet.flat());
    }

Node.js Version

v18.14.2

Redis Server Version

aws redis

Node Redis Version

1.5.7

Platform

macOS

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions