public static CountSetBits ( RedisKey key, long start, long end = -1 ) : long | ||
key | RedisKey | /// The key. /// |
start | long | /// The start. /// |
end | long | /// The end. /// |
return | long |
public static long CountSetBits(RedisKey key, long start = 0, long end = -1)
{
long result = SharedCache.Instance.GetWriteConnection(key)
.GetDatabase(SharedCache.Instance.Db)
.StringBitCount(key, start, end);
return result;
}