kiddouk / redisco

A Python Library for Simple Models and Containers Persisted in Redis
MIT License
438 stars 78 forks source link

Feature Request: get_or_create could return tuple #55

Open stuaxo opened 8 years ago

stuaxo commented 8 years ago

In Django get_or_create returns p, created this is useful as you can do different operations in the case a record was created.

Any chance a future version of redisco could do this ?

kiddouk commented 8 years ago

yes, if we were using SETNX for example.