redis-om-python icon indicating copy to clipboard operation
redis-om-python copied to clipboard

add `default` parametter to `HashModel.get`

Open b-simjoo opened this issue 2 years ago • 0 comments

Hi, I added new constant value __INCOMPLETE as default value for optional parameters and then added a new optional parameter named default to get function. When user pass value to default parameter (including None and Ellipsis) then if key not exist it will return default, otherwise it raises NotFoundError

b-simjoo avatar Aug 06 '23 15:08 b-simjoo