Skip to content

Commit

Permalink
check the result of simple commands to improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Aug 16, 2014
1 parent 56533c6 commit 0fad4d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions redis-sharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -540,29 +540,29 @@ public int DbSize {
}
}

public string Save ()
public void Save ()
{
return SendGetString ("SAVE\r\n");
SendExpectSuccess ("SAVE\r\n");
}

public void BackgroundSave ()
{
SendGetString ("BGSAVE\r\n");
SendExpectSuccess ("BGSAVE\r\n");
}

public void Shutdown ()
{
SendGetString ("SHUTDOWN\r\n");
SendExpectSuccess ("SHUTDOWN\r\n");
}

public void FlushAll ()
{
SendGetString ("FLUSHALL\r\n");
SendExpectSuccess ("FLUSHALL\r\n");
}

public void FlushDb ()
{
SendGetString ("FLUSHDB\r\n");
SendExpectSuccess ("FLUSHDB\r\n");
}

const long UnixEpoch = 621355968000000000L;
Expand Down

0 comments on commit 0fad4d2

Please sign in to comment.