Skip to content

setEx method doesn't accept Buffer as value type #1650

Closed
@maximelafarie

Description

@maximelafarie

Issue

Normally, redis is able to handle key-buffer storage (and not only key-string storage). As I want to store a buffer, typescript returns an error if I try to provide the to the setEx or set methods something else than a string.

So my question is: Is there any (documented) way to store and retrieve (neatly) a buffer in redis?

Regards! 🖖


Environment

  • Node.js Version: @next
  • Redis Server Version: 6.2.4
  • Platform: Mac OSX 11.2.3

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