Adds setnx support and some accompanying tests.

- Adds a function to support mocking setnx
- Adds tests for setnx
- Updates README with setnx entry