public bool Set(string key, byte[] value, bool exists, int expirySeconds = 0, long expiryMs = 0)
{
var entryExists = exists ? Commands.Xx : Commands.Nx;
if (expirySeconds > 0)
return SendExpectString(Commands.Set, key.ToUtf8Bytes(), value, Commands.Ex, expirySeconds.ToUtf8Bytes(), entryExists) == OK;
if (expiryMs > 0)
return SendExpectString(Commands.Set, key.ToUtf8Bytes(), value, Commands.Px, expiryMs.ToUtf8Bytes(), entryExists) == OK;
return SendExpectString(Commands.Set, key.ToUtf8Bytes(), value, entryExists) == OK;
}