Skip to content

Instantly share code, notes, and snippets.

@msarchet
Created February 12, 2013 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msarchet/4760231 to your computer and use it in GitHub Desktop.
Save msarchet/4760231 to your computer and use it in GitHub Desktop.
pseudo code for redis retry
public static TResult Retry(this IRedisClient client, Func<TResult> Retry)
{
try
{
return (TResult)Retry.Invoke();
}
catch(RedisException RedisException)
{
//Do Something Here To Wait
return (TResult)Retry.Invoke();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment