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