Skip to content

How do I set expiry? #71

@bansalnaman15

Description

@bansalnaman15
obj = {
    "id": 1,
    "uname": "abc"
}

rj.jsonset('key1', Path.rootPath(), obj)

Activity

gkorland

gkorland commented on Dec 18, 2021

@gkorland
Contributor

EXPIRE is the commanf you're looking for see: https://redis.io/commands/expire.

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

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

        Participants

        @gkorland@bansalnaman15

        Issue actions

          How do I set expiry? · Issue #71 · RedisJSON/redisjson-py