Commit 6fc43b6f authored by Marc Gravell's avatar Marc Gravell

Merge pull request #34 from bapti/has-value

RedisValue HasValue property
parents 20d6a7b6 3abd0254
...@@ -60,6 +60,17 @@ public bool IsNullOrEmpty ...@@ -60,6 +60,17 @@ public bool IsNullOrEmpty
} }
} }
/// <summary>
/// Indicates whether the value is greater than zero-length
/// </summary>
public bool HasValue
{
get
{
return valueBlob != null && valueBlob.Length > 0;
}
}
/// <summary> /// <summary>
/// Indicates whether two RedisValue values are equivalent /// Indicates whether two RedisValue values are equivalent
/// </summary> /// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment