You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
For forced delete:
The client API library returns true if operation is successfully returned
from server (status code from device/simulator == SUCCESS).
Device/simulator does not check if entry exists in store.
For versioned delete:
The client API library returns true if entry is found and deleted (status
code from device/simulator == SUCCESS). Otherwise, returns false (status
code from device/simulator == NOT_FOUND). The device/simulator DOES check
if entry exists in store.
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
—
Reply to this email directly or view it on GitHub #31.
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?
The text was updated successfully, but these errors were encountered: