private async Task <byte[]> HGetCoreAsync(byte[] key, byte[] field) { using var connection = new RedisConnection(_connectionSettings); var command = new HGet(connection.GetStream(), key, field); return(await command.ExecuteAsync()); }
private byte[] HGetCore(byte[] key, byte[] field) { using var connection = new RedisConnection(_connectionSettings); var command = new HGet(connection.GetStream(), key, field); return(command.Execute()); }