private async Task <long> LInsertBeforeCoreAsync(byte[] key, byte[] before, byte[] value) { using var connection = new RedisConnection(_connectionSettings); var command = new LInsertBefore(connection.GetStream(), key, before, value); return(await command.ExecuteAsync()); }
private long LInsertBeforeCore(byte[] key, byte[] before, byte[] value) { using var connection = new RedisConnection(_connectionSettings); var command = new LInsertBefore(connection.GetStream(), key, before, value); return(command.Execute()); }