Skip to content

Delete a non-existent key #31

@pareshpp

Description

@pareshpp

I wanted a clarification on behavior of delete operation on a non-existent key. When delete operates on a non-existent key, the simulator returns True if force=True and false otherwise.

Why is the difference in behavior because of force=True while deleting a non-existent key if force=True has to do with db version?

c = Client('localhost', 8123)
c.connect()
c.delete('kfsdfdsfdbskljfdskfs9000000', force=True)
True
c.delete('kfsdfdsfdbskljfdskfs9000000')
False

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