private async Task <long> HLenCoreAsync(byte[] key) { using var connection = new RedisConnection(_connectionSettings); var command = new HLen(connection.GetStream(), key); return(await command.ExecuteAsync()); }
private long HLenCore(byte[] key) { using var connection = new RedisConnection(_connectionSettings); var command = new HLen(connection.GetStream(), key); return(command.Execute()); }